v1.0.3
--
Make a local xcodebuild commandline environment
--
-
list schemes, targets
xcodebuild -list -project projectname.xcodeproj -
get device list
xcrun simctl list devices available -
get $BUNDLEID ($BUNDLEPATH specific to local)
mdls -name kMDItemCFBundleIdentifier -r $BUNDLEPATH -
edit _build-schemename with values (one file per scheme)
SCHEME= DEVICEID= DESTINATION= BUNDLEPATH= BUNDLEID= -
make executable
chmod +x _build-schemename -
run
./_build-schemename
--
Other useful xcodebuild commands
--
start simulator
/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID $DEVICEID;
build
xcodebuild -scheme $SCHEME -destination $DESTINATION build
build, stop, install, run
xcodebuild -scheme $SCHEME build
xcrun simctl terminate $DEVICEID $BUNDLEID
xcrun simctl install $DEVICEID $BUNDLEPATH
xcrun simctl launch $DEVICEID $BUNDLEID
--