首页 > 其他 > 详细

用CocoaPods集成Reveal不起作用问题记录

时间:2015-09-28 11:48:52      阅读:228      评论:0      收藏:0      [点我收藏+]

某个项目想用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就解决问题了


用CocoaPods集成Reveal不起作用问题记录

原文:http://my.oschina.net/ioslighter/blog/511866

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!