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
target->build phases ->link binary libraries static library added
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
Post a Comment