Bir*_*chi 13 xcode linker objective-c
我在添加libxml2.2.dylib文件后收到此错误
Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovies.app/funmovies (1 error)
in /Developer/Platforms/iphoneOS.platform/Developer/SDKs/iphoneOS3.0.sdk/lib/libobjc.A.dylib, missing required architecture i386 in file
Command /XCode3.1.4/platforms/iphoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
这个错误是由于什么?
所有建议表示赞赏.
谢谢Biranchi
小智 2
遇到了同样的错误,现在即使我从项目中删除了 libxml2,错误仍然存在:) 这个 sh**y XCode 写道:
LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib,
+ );
Run Code Online (Sandbox Code Playgroud)
进入“MyProj.xcodeproj”中的项目配置文件“project.pbxproj”。
您可以手动将此路径更改为:
LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ /Developer/Platforms/iPhoneSimulatorOS.platform/Developer/SDKs/iPhoneSimulatorOS3.0.sdk/usr/lib,
+ );
Run Code Online (Sandbox Code Playgroud)
但不要忘记编译到设备时将其改回来。我会尝试找到更简单的方法来解决这个问题。
归档时间: |
|
查看次数: |
56182 次 |
最近记录: |