$ cd /path/project
$ xcodebuild -showsdks
OS X SDKs:
OS X 10.9 -sdk macosx10.9
OS X 10.10 -sdk macosx10.10
iOS SDKs:
iOS 8.3 -sdk iphoneos8.3
iOS Simulator SDKs:
Simulator - iOS 8.3 -sdk iphonesimulator8.3
$ xcodebuild -arch i386 -sdk iphonesimulator8.3
若用 CocoaPods (碰到 ld: library not found for -lPods-XXX ) 或 xcworkspace 維護的,需要多一點指令:
$ xcodebuild -arch i386 -sdk iphonesimulator8.3 -workspace YourName.xcworkspace -scheme YourName
接著,想執行看看:
$ ios-sim launch /Users/user/Library/Developer/Xcode/DerivedData/YourName-xxxxxx/Build/Products/Debug-iphonesimulator/YourName.app
其中 ios-sim 可以逛一下這邊:https://github.com/phonegap/ios-sim
沒有留言:
張貼留言