Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple iOS Build Script
# Simple iOS build script
# Written by Aron Bury, 29/11/2011
certificate="iPhone Developer: Joe Blogs"
# To use as a fixed script use the first project_dir varirable.
# If you are including it as a build step with Hudson, use the second variable passing in $WORKSPACE as the variable
#Create folder location for build files if they dont exist
if [ ! -d "$build_location" ]; then
mkdir -p "$build_location"
cd "$project_dir"
xcodebuild -target "$appname" OBJROOT="$build_location/obj.root" SYMROOT="$build_location/sym.root"
xcrun -sdk iphoneos PackageApplication -v "$build_location/sym.root/Release-iphoneos/$" -o "$build_location/$appname.ipa" --sign "$certificate"

This comment has been minimized.

Copy link

commented Oct 18, 2017

Getting this Error:

The following build commands failed:
CompileSwift normal armv7
CompileSwiftSources normal armv7
(2 failures)
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.