近期关于 Xcode 10 和 CocoaPods 的 bug

栏目: IOS · 发布时间: 6年前

内容简介:运行就报对我有效的解决方法是:把真机和模拟器需要的文件手动加入其中,具体请参考网络上提供的其他解决方法:方法一、

运行就报 ld: library not found for -lstdc++.6.0.9 clang: error: linker command failed with exit code 1 (use -v to see invocation) ,查了一下原因是缺少 libstdc++6.0.9 导致的,原来是 iOS12 移除了 libstdc++.6.0.9 ,Xcode 10 也不支持了。

对我有效的解决方法是:把真机和模拟器需要的文件手动加入其中,具体请参考 这个链接

网络上提供的其他解决方法:方法一、 方法二

bug 2

在我解决 bug 1 后运行又导致了 bug 2 Command PhaseScriptExecution failed with a nonzero exit code

尝试 网络上类似的问题提供的两种方法:方法一、 方法二方法三 、方法四 都不能解决我遇到的问题。

最终解决方法是: 删除 Cocoapods 导入的第三方库,重新导入就解决了。删除 Cocoapods 库的方法是

$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod clean
$ rm Podfile
复制代码

stackoverflow 上的移除第三库的参考链接


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

C# Primer Plus

C# Primer Plus

Klaus Michelsen / Sams / 2001-12-15 / USD 49.99

C# Primer Plus is a tutorial based introduction to the C# language and important parts of the .Net Framework. Throughout the book the reader will be exposed to proven principles enabling him to write ......一起来看看 《C# Primer Plus》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具