i get this error when i am trying to use my compiled static librari in my iphone aplication. I have no frigging idea what's wrong.

ld: warning: ignoring file /Users/rw/Library/Developer/Xcode/DerivedData/MSTicketingSaaS-gkznscznevvifjesoapzgwycbces/Build/Products/Debug-iphoneos/libMylib.a, file was built for archive which is not the architecture being linked (armv6)
Undefined symbols for architecture armv6:
  "_OBJC_CLASS_$_AppData", referenced from:

It worked before upgrading to Xcode 4.0.2

link|edit|flag

80% accept rate
you getting this in the simulator only? – Grady Player 1 hour ago
i'm testing on the device and simulator , same errors ob bowth – Radu 1 hour ago

1 Answer

Check with lipo which is the architecture your lib has been built for:

lipo -info <path_to_lib>

If it does not contain "arm6" then you should go back to the library project and build it for the proper architecture. If this does not help, please, give more detail about the structure of your project(s).

link|flag

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.