views:

1002

answers:

3

Hi All,

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

What is this error due to ??

All suggestions are appreciated.

Thanks Biranchi

A: 

I am facing the same problem when i include "libsqlite3.0.dylib" framework for sqlite

Uneeb
A: 

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,
+                );

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.

Thoruun
+1  A: 

I had the same problem and I went on checking the target info

In the library search paths there was this entry, "$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/lib"

I removed it and the app WORKED!!!

sukitha