IOS :编译时出现的错误 ,希望可以有所帮助

1、"std::ios_base::Init::~Init()", referenced from

答1: 如果出现这样的编译问题,是需要再加进libstdc++.dylib和libstdc++.6.dylib(为6.1使用)

2、apple Mach-o Linker error

答2: 通常是因为compile source中有相同的.m文件 

3、如果在真机中进行测试时出现failed to get the task for process,

答3:有可能是证书出了问题。

4、如果出现expect a type的错误。

答4: 可能出现了在.h文件中的循环引用

5、这样会报linker command failed with exit code 1 (use -vto see invocation)这个错误。

答5: 以后不能同时有两个一样的.m文件在编译

注:大部分的错误都可以按照上述解答去找答案,仅供参考。。谢谢!!

觉得不错就顶吧。。  欢迎加入Talk iOS 群 : 370624831

原文地址:https://www.cnblogs.com/Wild-orangutans/p/3844716.html