Comments (4)
What is the exact error message you get when trying to run your app in the simulator?
Wild guess: maybe you should try to build the (fat) libraries with the x86_64 version for macOSX, not the one for iPhoneSimulator. I am doing something like that in my fork of this repo for building Mac Catalyst libraries:
Jan-E@f9f6d1f#commitcomment-49456294
In a Mac Catalyst app (on an Intel Mac) it is a similar case. The app does not run in the simulator, but runs OK on 'My Mac'. Error message:
in /Users/tfr/Documents/myAPP/Pods/NMSSH/NMSSH-iOS/Libraries/lib/libcrypto.a(aes_cbc.o), building for iOS Simulator, but linking in object file built for Mac Catalyst, file '/Users/tfr/Documents/myAPP/Pods/NMSSH/NMSSH-iOS/Libraries/lib/libcrypto.a' for architecture x86_64
from issh2.
Even wilder guess: try linking with the libraries for macOSX.
from issh2.
Or test you app as a Mac Catalyst app on 'My Mac'. That is what I am doing with my own iPad apps that have 3 use cases:
- iPhone
- iPad (9.3.6 - 14.4.1)
- Mac Catalyst
I am testing the app on 'My Mac'. There also is a build target Any Mac (Apple Silicon, Intel)
, which suggests that the Catalyst version should also run on an Apple M1.
For the catalyst apps I am using the libs from my fork of this repo:
% git clone -b catalyst https://github.com/Jan-E/iSSH2 iSSH2-catalyst
% cd iSSH2-catalyst
% ./catalyst.sh
And grab a coffee or two.
from issh2.
Here is a quite elaborate description of the problem you are running into:
https://apontious.com/2020/08/23/arm-wrestling-your-ios-simulator-builds/
Near the end of the article there is this description of a solution:
Instead, don’t build for ARM at all.
Go to your Target build settings, go to Architectures, and then go to the new setting Excluded Architectures (EXCLUDED_ARCHES), which Apple recommends you use instead of the older setting Valid Architectures (VALID_ARCHS).
There, hover over it with your mouse and click the + button that appears, and it will give you the option of adding a subheading called “Any iOS Simulator SDK”. Do that, and add an arm64 entry to the build setting’s list of values.
If this is not feasible for some reason my recommendation would be to add a Mac (Catalyst) build option to your app and test the app on your Mac as Catalyst app.
from issh2.
Related Issues (20)
- Build with Xcode 7.3 HOT 2
- Compiling for Catalyst HOT 30
- Build Failed - Libssh2 1.9.0 HOT 8
- Compiling for Apple Silicon HOT 14
- Libssh2 version fetched 1.9.0 instead of 1.10.0 HOT 2
- Is this script compatible to compile libssh 0.9.6 for ios / macOS? HOT 2
- Libssh2 1.9.0 building failed when trying to build OpenSSL 3.0.1 HOT 1
- build failed for macosx HOT 7
- LibSSH2 1.11.0 and OpenSSL 3.0.12 HOT 5
- Does not seem to work on XCode 8 HOT 4
- macOS 14 (Sonoma) and Xcode 15 support HOT 2
- Upcoming libssh2 1.11.1
- Build with Xcode 8
- No dylib file in lib
- Error on each build of Libssh2, seems to be a non-issue HOT 2
- Missing `iSSH2-commons`
- OpenSSL 1.1.1 HOT 10
- Compile fail on SDK 12.2 HOT 3
- Libssh2 no longer compiling on latest MacOS 10.14.6 with Xcode 10.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from issh2.