我有一个Xcode项目(Xcode 6.3.1),其中设置了以下库搜索路径:
"$(SRCROOT)/ Libraries/ScaleformLib/$ {CURRENT_ARCH}/clang/$ {CONFIGURATION} _NoRTTI""$(SRCROOT)/ Libraries/ScaleformLib/$ {CURRENT_ARCH}/clang /"
在构建时我得到链接器错误,这似乎是由于CURRENT_ARCH变量未正确扩展(为了清楚起见缩短/删除了路径):
Ld Unity-iPhone.build/Objects-normal/armv7/mud normal armv7
cd builds/iOSSubmission
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
clang++ -arch armv7 -isysroot
-L/builds/iOSSubmission/Libraries/ScaleformLib/arm64/clang/Release_NoRTTI
-L/builds/iOSSubmission/Libraries/ScaleformLib/arm64/clang
Run Code Online (Sandbox Code Playgroud)
我不确定为什么arm64会被插入到搜索路径中,看起来它应该是armv7?我错过了什么?
谢谢!