Open JakubMazur opened 7 months ago
This is (kind of) working: https://stackoverflow.com/a/61317610/1317394
When I compile with
cmake -G Xcode -B ios \
-DCMAKE_SYSTEM_NAME=iOS \
-DCMAKE_Swift_COMPILER_FORCED=true \
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
I can build on either simulator or device (can't create universal lib with that).
To use this for both iOS and iOS-simulator you'd need to do either:
I have a script for the second that I can share next week when I get back to my build system.
I'm trying to compile for iOS with
make ios
, but when I'm trying to use it with Xcode I'm getting error:build
runningmake ios
libmusicxml2.a
file frombuild/lib
exports.h
andlibmusicxml.h
to Xcode and linking it with bridging headermake
fromiosdir
but doesn't seems to make any differenceI also tried to build for Xcode with
cmake -G Xcode
but then (probably rightfully) schemeALL_BUILD
has also only macOS target.I've tried to integrate then this library build for macOS with separate target in Xcode for macOS and it's working without issues. There is a way to compile this for iOS?