您的位置:首页 > 其它

os x10.10 的pod各种诡异问题解决方案,(覆盖两种错误情况)

2014-12-02 17:10 489 查看
牢骚一下,关于开发,关于百度,每次搜索同一个issue总是标题不通内容千篇一律,C转载B,B转载A,都是出自一个作者,而且好多并没有评论,或者有评论无回复,这是一个操蛋的世界,如果不能解决问题,搜索的答案甚至不能给你提供任何思路,只是千篇一律的告诉你next。忘记百度,选择google吧,无stackoverflow 不编程。
言归正传,还是要告诉你怎么做?
<span style="color:#ff0000;">首先第一种方案,</span>(相信我,你搜到全是这个)现象不用说了到处都是 如果你解决问题了,恭喜你,你的错误情况 还不够复杂,你的项目还很纯洁干净。 报错依旧报错无发运行?你找谁去?
<span style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;">经过一番乱搜,具体的解决步骤如下:</span><p style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;">  1. 打开 Xcode 6  2. 进入 Preferences  3. 点击Locations选项  4. 将 Command Line Tools 版本变成 Xcode 6.0  5. 卸载 cocoapods,在终端中输入 </p><div class="dp-highlighter bg_ruby" style="font-family: Consolas, 'Courier New', Courier, mono, serif; width: 700.90625px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); line-height: 26px; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="padding-left: 45px;"><div class="tools" style="padding: 3px 8px 10px 10px; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><strong>[ruby]</strong> <a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="ViewSource" title="view plain" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="CopyToClipboard" title="copy" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="position: absolute; left: 525px; top: 1072px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" class="dp-rb" style="padding: 0px; border: none; list-style-position: initial; list-style-image: initial; color: rgb(92, 92, 92); margin: 0px 0px 1px 45px !important; background-color: rgb(255, 255, 255);"><li class="alt" style="border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); list-style: decimal-leading-zero outside; color: inherit; line-height: 18px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span style="margin: 0px; padding: 0px; border: none; background-color: inherit;">$ sudo gem uninstall cocoapods  </span></span></li></ol></div><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><span style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;">  6. 安装xcodeproj,在终端中输入</span><div class="dp-highlighter bg_ruby" style="font-family: Consolas, 'Courier New', Courier, mono, serif; width: 700.90625px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); line-height: 26px; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="padding-left: 45px;"><div class="tools" style="padding: 3px 8px 10px 10px; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><strong>[ruby]</strong> <a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="ViewSource" title="view plain" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="CopyToClipboard" title="copy" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="position: absolute; left: 525px; top: 1237px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" class="dp-rb" style="padding: 0px; border: none; list-style-position: initial; list-style-image: initial; color: rgb(92, 92, 92); margin: 0px 0px 1px 45px !important; background-color: rgb(255, 255, 255);"><li class="alt" style="border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); list-style: decimal-leading-zero outside; color: inherit; line-height: 18px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span style="margin: 0px; padding: 0px; border: none; background-color: inherit;">$ sudo gem install xcodeproj  </span></span></li></ol></div><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><span style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;">  7. 安装cocoapods,在终端中输入</span><div class="dp-highlighter bg_ruby" style="font-family: Consolas, 'Courier New', Courier, mono, serif; width: 700.90625px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); line-height: 26px; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="padding-left: 45px;"><div class="tools" style="padding: 3px 8px 10px 10px; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><strong>[ruby]</strong> <a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="ViewSource" title="view plain" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="CopyToClipboard" title="copy" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="position: absolute; left: 525px; top: 1402px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" class="dp-rb" style="padding: 0px; border: none; list-style-position: initial; list-style-image: initial; color: rgb(92, 92, 92); margin: 0px 0px 1px 45px !important; background-color: rgb(255, 255, 255);"><li class="alt" style="border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); list-style: decimal-leading-zero outside; color: inherit; line-height: 18px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span style="margin: 0px; padding: 0px; border: none; background-color: inherit;">$ sudo gem install cocoapods  </span></span></li></ol></div><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><span style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;">  8. 测试pod是否安装成功,在终端中输入</span><br style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;" /><p style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;"></p><p style="color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 26px;"></p><div class="dp-highlighter bg_ruby" style="font-family: Consolas, 'Courier New', Courier, mono, serif; width: 700.90625px; overflow: auto; padding-top: 1px; color: rgb(51, 51, 51); line-height: 26px; margin: 18px 0px !important; background-color: rgb(231, 229, 220);"><div class="bar" style="padding-left: 45px;"><div class="tools" style="padding: 3px 8px 10px 10px; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248);"><strong>[ruby]</strong> <a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="ViewSource" title="view plain" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">view plain</a><a target=_blank href="http://blog.csdn.net/dqjyong/article/details/37958067#" class="CopyToClipboard" title="copy" style="color: rgb(160, 160, 160); text-decoration: none; border: none; padding: 1px; margin: 0px 10px 0px 0px; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;">copy</a><div style="position: absolute; left: 525px; top: 1567px; width: 18px; height: 18px; z-index: 99;"></div></div></div><ol start="1" class="dp-rb" style="padding: 0px; border: none; list-style-position: initial; list-style-image: initial; color: rgb(92, 92, 92); margin: 0px 0px 1px 45px !important; background-color: rgb(255, 255, 255);"><li class="alt" style="border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(108, 226, 108); list-style: decimal-leading-zero outside; color: inherit; line-height: 18px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span style="margin: 0px; padding: 0px; border: none; background-color: inherit;">$ pod --version   </span></span></li></ol></div>
<span style="color:#ff0000;">第二种方案,(建议先尝试第一种方案)</span>
第一种方案,行文思路,就是 pod版本有问题,让你更新一下版本,或者相当于出了问题重启一下系统,就是个卸载重装嘛,理论上 解决问题的可能性很小。</p><p>如果你遇到了类似问题
[!] The `你的项目name [Debug]` target overrides the `HEADER_SEARCH_PATHS` 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.
这一看就不是pod的问题了,怎么解决?贴个连接, http://stackoverflow.com/questions/26070241/cocoapods-no-longer-builds-project-after-update 这个帖子提供了思路,虽然没有正确解决问题,
- Use the `$(inherited)` flag,or - Remove the build settings from the target.
找到 HEADER_SEARCH_PATHS去移除 一些东西 ?移除什么,没说,怎么移除,那就 添加吧,找到target的HEADER_SEARCH_PATHS 添加$(inherited),现在重新执行pod update ,世界一下明朗了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  pod 10.10 update error
相关文章推荐