You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile for iOS with make ios, but when I'm trying to use it with Xcode I'm getting error:
cloning repo
from a build running make ios
getting a libmusicxml2.a file from build/lib
copy exports.h and libmusicxml.h to Xcode and linking it with bridging header
I've also tried to make from iosdir but doesn't seems to make any difference
Showing Recent Messages
Building for 'iOS', but linking in object file (.../libmusicxml/libmusicxml2.a[2](factory.cpp.o)) built for 'macOS'
I also tried to build for Xcode with cmake -G Xcode but then (probably rightfully) scheme ALL_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?
The text was updated successfully, but these errors were encountered:
JakubMazur
changed the title
make iOS creates an macOS librarymake iOS creates a macOS library
Feb 3, 2024
To use this for both iOS and iOS-simulator you'd need to do either:
compile a separate .a for iOS and iOS simulator and in your host Xcode project link separately to the two libs for given platforms (Xcode provides the option)
More modern approach: write a script that compiles both as framework and then make a XCFramework out of it and just add that your project.
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?
The text was updated successfully, but these errors were encountered: