ios - xcode >= 8 cannot compile my objective-c library -
i'm trying compile objective-c library xcode (or xcodebuild) seems xcode taking last 2 numbers of "base sdk" (10.1 in case) build setting :
xcodebuild -scheme mylib -workspace mylib_objc.xcworkspace -sdk "iphonesimulator10.1" build
output error :
/bin/sh -c /users/user/library/developer/xcode/deriveddata/mylib_objc-dcainaehwbdhdeeyoykilqflodnx/build/intermediates/mylib.build/debug-iphonesimulator/mylib.build/script-aedfee9b1b25c0fd00756827.sh xcode has selected sdk: iphonesimulator version: 0.1 (although back-targetting: 7.0) ...therefore, other_sdk_to_build = iphoneos0.1 recursion: root ... recursing missing build targets now... recursion: ...about invoke: xcodebuild -configuration "debug" -project "mylib.xcodeproj" -target "mylib" -sdk "iphoneos0.1" build run_clang_static_analyzer=no build_dir="/users/user/library/developer/xcode/deriveddata/mylib_objc-dcainaehwbdhdeeyoykilqflodnx/build/products" build_root="/users/user/library/developer/xcode/deriveddata/mylib_objc-dcainaehwbdhdeeyoykilqflodnx/build/products" symroot="/users/user/library/developer/xcode/deriveddata/mylib_objc-dcainaehwbdhdeeyoykilqflodnx/build/products" xcodebuild: error: sdk "iphoneos0.1" cannot located. command /bin/sh failed exit code 64
i tried coworker has xcode 8 (and therefore base sdk=10.0), error xcodebuild: error: sdk "iphoneos0.0" cannot located.
any idea how force compilation ?
you buiding library old build script. checkout answer here
build fat static library (device + simulator) using xcode , sdk 4+
and update script should fine.
Comments
Post a Comment