crun: error: unable to find utility "PackageApplication", not a developer tool or in PATH It looks like PackageApplication is removed from Xcode 8.3.
PackageApplication is deprecated, use xcodebuild -exportArchive instead.
Download: PackageApplication
chmod +x PackageApplication mv PackageApplication /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication