标签:
某个项目想用Reveal看一下界面组织,于是用上了Reveal,新建一个Podfile,添加以下代码:
platform :ios, ‘7.0‘
pod ‘Reveal-iOS-SDK‘, :configurations => [‘Debug‘] post_install do |installer_representation| installer_representation.project.targets.each do |target| target.build_configurations.each do |config| config.build_settings[‘ARCHS‘] = ‘armv7 arm64‘ config.build_settings[‘VALID_ARCHS‘] = ‘armv7 arm64‘ config.build_settings[‘ONLY_ACTIVE_ARCH‘] = ‘NO‘ end end end
然后用pod install --verbose更新,再打开.xcworkspace文件,真机调试。未曾想打开Reveal软件,并没有显示出真机界面。
再回看pod install日志,发现下面的提示:
[!] The `test [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig‘. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target.
于是找到Build Settings,找到Other Linker Flags,把里面的-Objc -AllLoads类似的等去掉,替换为$(inherited),再重新pod install就解决问题了
标签:
原文地址:http://my.oschina.net/ioslighter/blog/511866