xcode symbol(s) not found for architecture i386错误解决方法

简介:

  iOS调试过程中出现如题所示编译错误。

  此前,我在finder软件中把一个类定义的一对文件(.h and .cpp)复制到classes文件夹下,又拖动到xcode项目中的classes组中,但是重新编译工程时却出现上述错误。

  网络搜索后发现如下参考文章:

http://www.cnblogs.com/ygm900/p/3179383.html

内容如下:

wKioL1RLmB7RKBVqAANWSOa84K8384.jpg

  其中,在我的情况下,根本没有什么.pbxproj相关问题。但是,在Build Phases中的Compile Sources处确实少了我开始时提到的.cpp文件。用通俗话来说,就是我只是简单加入了.cpp文件,系统编译配置文件并没有自动更新,所以导致如下错误。手工加入吧。

  点击Compile Sources段下部的+号,在弹出对话框中定位到我新加入的.cpp文件加入后再编译,果然OK,问题解决。

  












本文转自朱先忠老师51CTO博客,原文链接:http://blog.51cto.com/zhuxianzhong/1567984 ,如需转载请自行联系原作者











相关文章
|
iOS开发
Xcode报错解决方法:ld: symbol(s) not found for architecture arm64
Xcode报错解决方法:ld: symbol(s) not found for architecture arm64
3979 0
|
iOS开发
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
解决Error (Xcode): File not found:XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
530 0
|
iOS开发 Perl
Xcode 10.2.1 Error:library not found for -lstdc++.6.0.9
Xcode 10.2.1 Error:library not found for -lstdc++.6.0.9
308 0
|
iOS开发 芯片 MacOS
[Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture...
[Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture...
1037 0
|
Java iOS开发
Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config
Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config
273 0
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
542 0
|
iOS开发
未解决:configure: error: XCode tool ‘metal‘ neither found in path nor with xcrunchecking for metal...
未解决:configure: error: XCode tool ‘metal‘ neither found in path nor with xcrunchecking for metal...
321 0
缺少链接库报错:ld: symbol(s) not found for architecture x86_64
缺少链接库报错:ld: symbol(s) not found for architecture x86_64
349 0
|
Perl
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
935 0
Xcode12.x报错: ld: library not found for -lstdc++.6.0.9
错误信息: ld: library not found for -lstdc++.6.0.9 报错原因:Xcode10移除了动态库libstdc
438 0