grame-cncm / libmusicxml

A C/C++ library to support the MusicXML format.
Mozilla Public License 2.0
152 stars 33 forks source link

How to generate the framework for iOS? #30

Closed AliliWl closed 4 years ago

AliliWl commented 5 years ago

Check dependencies warning: The armv7 architecture is deprecated for your deployment target (iOS 12.1). You should update your ARCHS build setting to remove the armv7 architecture. warning: The armv7s architecture is deprecated for your deployment target (iOS 12.1). You should update your ARCHS build setting to remove the armv7s architecture.

PhaseScriptExecution CMake\ Rules ios/libmusicxml2.build/Release-iphoneos/ALL_BUILD.build/Script-7DF70B90500B41DB8E377C36.sh cd /Users/liwang/Desktop/libmusicxml-dev/build /bin/sh -c /Users/liwang/Desktop/libmusicxml-dev/build/ios/libmusicxml2.build/Release-iphoneos/ALL_BUILD.build/Script-7DF70B90500B41DB8E377C36.sh echo ""

echo Build\ all\ projects Build all projects

BUILD SUCCEEDED

cp ios/Release-iphoneos/libmusicxml2.a .

Why can't I call the API when I use it?

dfober commented 5 years ago

Regarding the armv7 and armv7s architectures, it's just a warning. Anyway, the compiler does its job and these architectures are well present in the archive.

Why can't I call the API when I use it?

Could you give more details? What API are you calling? What's exactly the problem?

AliliWl commented 5 years ago

image

arshiacont commented 5 years ago

@AliliWl We use LibMusicXML on iOS with out an issue.

From your screenshot, it seems like there is a problem with your iOS project where the Framework is not found and in return you don't see the headers.

AliliWl commented 5 years ago

In addition to copying the Framework into my project, do I need to make other settings?

lihu3601456 commented 4 years ago

请问你这边弄好了吗,我也需要用到这个,但是不知道怎么弄

dfober commented 4 years ago

in a terminal, just type

$ cd your_libmusicxml_folder/build
$ make ios

Have also a look at the building instructions

lihu3601456 commented 4 years ago

屏幕快照 2019-10-30 下午3 58 49 请问这个怎么处理

arshiacont commented 4 years ago

@lihu3601456 Your error has nothing to do with LibMusicXML. You are programming in ObjectiveC but you are using C++. Your project shouldn't be seeing the C++ file if you prepare it correctly. Look on the web on how to integrate Frameworks into an XCode project.

lihu3601456 commented 4 years ago

屏幕快照 2019-10-30 下午5 10 49 还是会有错