ban*_*isa 3 static-linking ios xcode6
我根据项目构建设置中的配置有选择地链接库.即
调试:-l libcws_ps发布:-l libcws
在库搜索路径中,我指向包含这两个.a库的目录.
我会指出这适用于Xcode 5,但现在在Xcode 6上,它没有正确链接,我得到了未定义的符号错误.如果我使用通常的方法链接 - '链接二进制文件库',那么它的工作原理 - 但后来我没有基于配置的链接.
任何想法如何解决这个问题,或者至少是一些线索我如何调试呢?
Libtool /Users/dave/Library/Developer/Xcode/DerivedData/FilmFlexMovies-ddwyjuvbhaqgqralpjczhprnltla/Build/Products/Release-iphoneos/libiOSIrdetoLibrary.a normal armv7
cd /Users/dave/Developer/GIT/FilmFlex/iOS/Submodules/iOSModelController/Submodules/iOSIrdetoLibrary
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"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/dave/Library/Developer/Xcode/DerivedData/FilmFlexMovies-ddwyjuvbhaqgqralpjczhprnltla/Build/Products/Release-iphoneos -LCloakwareStreaming/lib/ios -L/Users/dave/Developer/GIT/FilmFlex/iOS/Submodules/iOSModelController/Submodules/iOSIrdetoLibrary/CloakwareStreaming/lib/ios -filelist /Users/dave/Library/Developer/Xcode/DerivedData/FilmFlexMovies-ddwyjuvbhaqgqralpjczhprnltla/Build/Intermediates/iOSIrdetoLibrary.build/Release-iphoneos/iOSIrdetoLibrary.build/Objects-normal/armv7/iOSIrdetoLibrary.LinkFileList -framework MediaPlayer -framework CoreVideo -framework AVFoundation -framework UIKit -framework Foundation -o /Users/dave/Library/Developer/Xcode/DerivedData/FilmFlexMovies-ddwyjuvbhaqgqralpjczhprnltla/Build/Products/Release-iphoneos/libiOSIrdetoLibrary.a
Run Code Online (Sandbox Code Playgroud)
RTFM ...或RTFRN ... Xcode 6发行说明
"在构建静态库时,Xcode将不再将构建设置OTHER_LDFLAGS中的选项传递给libtool,在构建任何其他类型的产品时,它也不会将OTHER_LIBTOOLFLAGS中的选项传递给Mach-O链接器.之前,两个设置中的所有选项都将传递给这两个工具.确保选项在产品类型,静态库或正在构建的其他组件的正确构建设置中.(4285249)"
所以它甚至没有通过我的'其他链接器标志'.我需要将它们移到"其他图书管理员旗帜".
| 归档时间: |
|
| 查看次数: |
1626 次 |
| 最近记录: |