Cross-compile for the iOS platform: "built for macOS" errors
After resolving #689 (closed), I continue in my attempt to run ECL on iOS and Android.
Problem:
Xcode does not accept the compiled libraries
Reproduction steps:
- download the latest ECL
- follow the iOS instructions in the
INSTALL
file (and #689 (closed)) - get
ecl-iOS
andecl-iOS-host
- add
libecl.a
orlibecl.dylib
to a new Xcode iOS project - build the Xcode project
Expected:
The project builds.
Actual:
With .dylib
:
Building for iOS Simulator, but linking in dylib built for macOS,
file '.../AlienTest/libecl.dylib' for architecture arm64
With .a
:
In .../AlienTest/libecl.a(main.o), building for iOS, but linking
in object file built for macOS, file '.../AlienTest/libecl.a'
for architecture arm64
Configuration:
macOS (13.0.1), Xcode (14.2), M1 CPU
Edited by Rudolf Adamkovič