IOS Xcode Static Library (Layout Errors)

I created a static library with Xcode, which I compiled by choosing a device.

I added this to my test library project in Xcode 4.6

but I always have 2 errors when linking ...

I followed this tutorial: Static iOS tutorial for library

if I download the sample code, I get the same errors:

ld: Warning: ignoring file symbols for i386 architecture: "_OBJC_CLASS _ $ _ MathFunctions" referenced from: objc-class-ref in MathTestAppDelegate.o ld: symbols not found for architecture i386 clang: error: linker command failed with code output 1 (use -v to see the call)

0
source share
4 answers

I followed this step by step:

Textbook

in particular, I had to add these flags: -ObjCand-all_load

+1
source

I once did the old lyrics, I had the same problem. The solution was "Run the application on the device", and not on the simulator, it works fine then !!! Hope this helps ...

+1
source

iOS- . iOS, .

+1

, .

character (s) not found for i386 architecture

Thus, there is no compiled code in the i386 library. This means that either it is compiled only for ARM (for real iOS devices, for example iPhone or iPad), or for a 64-bit simulator (x86_64). Use otoolto find out the architectures present in the library.

0
source

All Articles