Skip to content

altool fails when ipa path contains a space #4

@meehanman

Description

@meehanman

When using the following fastfile (ionic). My app path has a space which causes altool to fail.

ionic(
	provisioning_profile:ENV["sigh_"+AppBundleId+"_appstore"],
	platform:"ios",
	prod: true,
	device: true,
	release: true
)
altool(
	altool_app_type:"ios",
	altool_ipa_path: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH']
)

Altool command:

/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool --upload-app -t ios -f /Users/teamcity/Repos/MobileApps/MobileApp/platforms/ios/build/device/MyApp Name.ipa -u **************** -p *****************--output-format normal

Error Message:

Error Domain=ITunesSoftwareServiceErrorDomain Code=-19066 \"The path '/Users/teamcity/Repos/MobileApps/MobileApp/platforms/ios/build/device/MyApp' does not contain a file.\" UserInfo={NSLocalizedDescription=The path '/Users/teamcity/Repos/MobileApps/MobileApp/platforms/ios/build/device/MyApp' does not contain a file., NSLocalizedFailureReason=Unable to validate your application.}"

This is due to the app file location not being wrapped in quotes when passed into the commandline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions