ios6 - XCode: Apple Mach-O Linker Error with New iOS 6 while adding self created static library -


i created static library files , added in my project xcode while compile it's throughs apple mach-o linker error,

my static libraries 1.libmathlibrary.a 2.libdineshlibrary.a 

i have checked

  1. target->build phases ->link binary libraries static library added

  2. library_search_paths = $(inherited) "$(srcroot)/staticlb/libmathlibrary" "$(srcroot)/staticlb/libdineshlibrary" add static library path.

how resolve problem. please share ideas, hope me..thank you.

i found solution problem

after created own static .a extension library files

1. **libdevice.a** (device mode compile static library file) 2. **libsimulator.a** (simulator mode compile static library file) 

please convert 2 compile mode static libraries 1 common static .a extension library

in terminal

lipo -create libdevice.a libsimulator.a -output libcommonlibrary.a

the new libcommonlibrary.a common static library file support both simulator , device compilation.

please ref link: http://blog.boreal-kiss.net/2011/03/15/how-to-create-universal-static-libraries-on-xcode-4/


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -