Xcode 5 Command Line: invalid deployment target '3.0.0' for architecture 'arm64'

半世苍凉 提交于 2019-12-23 02:30:57

问题


I'm building a fat Crypto++ library from the command line under Xcode 5 with the iOS 7 SDK. The iOS 7 SDK includes the arm64 target. All goes well for the armv7 and armv7s architectures, but arm64 is a different matter:

clang++ -DNDEBUG -g -Os -pipe -fPIC -DCRYPTOPP_DISABLE_ASM -arch arm64
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
-Wno-tautological-compare -Wno-unused-value -c 3way.cpp
error: invalid deployment target '3.0.0' for architecture 'arm64' (requires '7.0.0' or later)
1 error generated.
make: *** [3way.o] Error 1

I've never experienced the error before, and searching produced no hits. Any ideas on how to proceed?

Thanks in advance.


回答1:


Add the command line option:

-mios-version-min=7.0.0

or:

-miphoneos-version-min=7.0.0

See this clang reference.




回答2:


Remove the armv64 from vaild - architure in build setting and run the project




回答3:


Try /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++



来源:https://stackoverflow.com/questions/19087887/xcode-5-command-line-invalid-deployment-target-3-0-0-for-architecture-arm64

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