Xcode中的链接错误 [英] Linking Error in Xcode

查看:80
本文介绍了Xcode中的链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

添加libxml2.2.dylib文件后出现此错误

I am getting this error after adding the libxml2.2.dylib file

 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

此错误归因于??

感谢所有建议.

谢谢 比兰奇

推荐答案

即使我已经从项目错误中删除了libxml2,也遇到了同样的错误:)这个X ** y XCode写道:

Got the same error, now even when I`ve deleted libxml2 from project error still here :) This sh**y XCode wrote this:

LIBRARY_SEARCH_PATHS = (
+                    "$(inherited)",
+                    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib,
+                );

进入"MyProj.xcodeproj"中项目的配置文件"project.pbxproj".

into project`s config file "project.pbxproj" in "MyProj.xcodeproj".

您可以手动更改此路径,例如:

You can change this path by hands to something like:

LIBRARY_SEARCH_PATHS = (
+                    "$(inherited)",
+                    /Developer/Platforms/iPhoneSimulatorOS.platform/Developer/SDKs/iPhoneSimulatorOS3.0.sdk/usr/lib,
+                );

但是当编译到设备中时,请不要忘记将其改回. 我将尝试找到更简单的方法来解决此问题.

But do not forget to change it back when compile into device. I`ll try to find more simple way to resolve this problem.

这篇关于Xcode中的链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆