-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues when using on M1 laptop #14
Comments
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: 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:
|
Even wilder guess: try linking with the libraries for macOSX. |
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:
I am testing the app on 'My Mac'. There also is a build target For the catalyst apps I am using the libs from my fork of this repo:
And grab a coffee or two. |
Here is a quite elaborate description of the problem you are running into:
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. |
I'm trying to test my app in the simulator, but I'm using a newer M1 laptop (arm64). Because Sim build is only executed if the arch is i386 or x86_64 when trying to link my app (sim) it complains about missing architecture of all the libraries.
The problem is that the
platformName
function in iSSH-commons is assumingiPhoneSimulator
for non-arm archs. This was true before Apple introduced the M1 platform.The text was updated successfully, but these errors were encountered: