APPROOT="/Applications/Xcode.app/Contents" DEVROOT=$APPROOT//Developer/Platforms/iPhoneOS.platform/Developer SYSROOT=$DEVROOT/SDKs/iPhoneOS7.1.sdk CFLAGS="-arch armv7 -arch armv7s -arch arm64 -isysroot $SYSROOT -miphoneos-version-min=7.1" DEVROOT=$APPROOT//Developer/Platforms/iPhoneSimulator.platform/Developer SYSROOT=$DEVROOT/SDKs/iPhoneSimulator7.1.sdk CFLAGS="-arch i386 -arch x86_64 -isysroot $SYSROOT -miphoneos-version-min=7.1" #CC=$DEVROOT/usr/bin/clang #CXX=$DEVROOT/usr/bin/clang++ CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ CXXFLAGS=$CFLAGS LDFLAGS=$CFLAGS export CC=$CC export CXX=$CXX export CFLAGS=$CFLAGS export CXXFLAGS=$CXXFLAGS export LDFLAGS=$LDFLAGS mkdir BUILD ; cd BUILD ../configure --host=arm-apple-darwin14 ../configure --host=x86_64-apple-darwin13 make clean && make file src/.libs/libGeographic.a ls -lh src/.libs/libGeographic.a cp src/.libs/libGeographic.a ../libGeographic.a-x86 cp src/.libs/libGeographic.12.dylib ../libGeographic.dylib-x86 cp src/.libs/libGeographic.a ../libGeographic.a-arm cp src/.libs/libGeographic.12.dylib ../libGeographic.dylib-arm #lipo -output libGeographic.a-fat -create libGeographic.a-arm -arch i386 libGeographic.a-i386 lipo -output libGeographic.a-fat -create libGeographic.a-arm libGeographic.a-x86 lipo -output libGeographic.dylib-fat -create libGeographic.dylib-arm libGeographic.dylib-x86