How to compile expat with iOS SDK 5.1?

坚强是说给别人听的谎言 提交于 2019-12-22 18:14:09

问题


How to compile expat with iOS SDK 5.1? I tried to adapt/upgrade from all older scripts, but nothing worked... Could anybody do it already?


回答1:


I found it!

I used the following script: https://github.com/x2on/expat-ios

The problem is that the command "xcode-select -print-path", used in the compilation script, is showing "/Developer" instead of the correct full path including "/Applications/Xcode.app/Contents/Developer". I just changed it and then it worked!

The last XCode [SDK 5.1] moved the path of the developer tools and SDK to inside the XCode bundle.




回答2:


When trying to compile for iOS6.1 with the developer tools accompanying XCode 4.6.3, the script at https://github.com/x2on/expat-ios stops after building the iOSSimulator library. The iOSDevice version does not build. It seems the newer developer tools do not support armv6.

Removing armv6 from ARCHS="i386 armv6 armv7" will build the library at least for armv7.



来源:https://stackoverflow.com/questions/10453946/how-to-compile-expat-with-ios-sdk-5-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!