I need to create an universal library of a Cocoa Touch Static library project,
I am using
xcodebuild -target mysdsk ONLY_ACTIVE_ARCH=NO VALID_ARCHS="arm64 armv7 armv7s i386 x86_64" -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"
Even if I split the iphonesimulator as two xcodebuild still I could not get i386 for iphone4 simuator
I am getting error
Undefined symbols for architecture i386
Based on How do I determine the target architecture of static library (.a) on Mac OS X?
I tried to run the file command, it displays
mysdsk.a: Mach-O universal binary with 5 architectures
mysdsk.a (for architecture i386): current ar archive random library
mysdsk.a (for architecture armv7): current ar archive random library
mysdsk.a (for architecture armv7s): current ar archive random library
mysdsk.a (for architecture x86_64): current ar archive random library
mysdsk.a (for architecture arm64): current ar archive random library
But still I am getting error
Undefined symbols for architecture i386