简体   繁体   中英

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

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.

Add the command line option:

-mios-version-min=7.0.0

or:

-miphoneos-version-min=7.0.0

See this clang reference .

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

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM