Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28207] iOS: Packaging fails when Xcode path contains a space

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-10-27T16:10:23.000+0000
Affected Version/sRelease 9.0.3, Release 9.1.0, Release 9.2.1
Fix Version/sRelease 9.3.0, Release 9.2.2
ComponentsCLI, iOS
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2020-10-23T10:17:14.000+0000
Updated2020-11-02T13:12:13.000+0000

Description

Description

When packaging an iOS app if the Xcode path contains a space then the exportArchive process will fail. The exportArchive process is used when performing any dist-adhoc build or a dist-appstore build with a --output-dir argument

Steps to reproduce

1. Change your Xcode path to contain a space and update the xcode-select path 2. Package for dist-adhoc or dist-appstore with a --output-dir argument

Actual

Error like below
[DEBUG] Running: /Applications/Xcode beta.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath "/Users/awam/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/ticreateapp.xcarchive" -exportPath "/Users/awam/Documents/Appcelerator_Studio_Workspace/ticreateapp/dist" -exportOptionsPlist "/Users/awam/Documents/Appcelerator_Studio_Workspace/ticreateapp/build/iphone/export_options.plist"
[TRACE] /bin/sh: /Applications/Xcode: No such file or directory
[ERROR] Failed to export archive to ipa

Expected

No error, package shoudl work just fine

Comments

  1. Satyam Sekhri 2020-10-23

    FR Passed. Build for iOS device, ad-hoc distribution and appstore distribution successful with and without space in Xcode path. Waiting on Jenkins build
  2. Christopher Williams 2020-10-24

    merged to master for 9.3.0 target, 9_2_X backport merged for 9.2.2 target
  3. Satyam Sekhri 2020-10-27

    Verified on: Mac OS: 10.15.4 SDK: 9.3.0.v20201027065511, 9.2.2.v20201026120850 Appc CLI: 8.1.1 JDK: 11.0.4 Node: 10.17.0 Studio: 6.0.0.202005141803 Xcode: 12.0.1

JSON Source