Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23939] IOS: Packaging IOS modules fails with [xcode-dist] xcodebuild error

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-09-22T18:56:14.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.0.0
ComponentsiOS, Tooling
Labelsqe-6.0.0, regression
ReporterLokesh Choudhary
AssigneeChris Barber
Created2016-09-22T01:09:47.000+0000
Updated2016-09-23T13:32:08.000+0000

Description

Steps to reproduce:

1. Create an IOS module using studio. 2. Package it for any of the 3 packaging options.

Actual Result:

1. Packaging fails with error:
[INFO] :   Project directory: /Users/lchoudhary/Desktop/workspaces/new_test_workspace/z_ios_mod/iphone
[INFO] :   Module ID: com.app.ziosmod
[WARN] :   Please update the LICENSE file with your license text before distributing.
[ERROR] :  [xcode-dist] xcodebuild: error: The directory /Users/lchoudhary/Desktop/workspaces/new_test_workspace/z_ios_mod does not contain an Xcode project.
2. Also we get a studio error dialog attached for reference.

Expected Result:

1. IOS modules should get packaged successfully.

Attachments

FileDateSize
Screen Shot 2016-09-21 at 5.58.54 PM.png2016-09-22T01:10:11.000+000035646

Comments

  1. Chris Barber 2016-09-22

    Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8419 Ti SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8420
  2. Chris Barber 2016-09-22

    To test, build the module from any directory that is NOT the module directory and specify the module directory using the \-\-project\-dir option.
  3. Feon Sua Xin Miao 2016-09-22

    PR merged.
  4. Harry Bryant 2016-09-23

    Verified as fixed, using the latest SDK build: 6.0.0.v20160922165510 I can no longer reproduce the error. - Created an iOS module from Studio. - Packaged it for all 3 options (Titanium SDK, Project, Specified Location) - Ran the targeted project to device and was able to launch successfully. - Built the module from outside the module directory, and ran it on simulator and was able to launch successfully. (the module was zipped without problem). Tested On: iPhone 6 Plus 10.0.1 Device & Simulator iPhone 5S 9.3.5 Device Mac OSX El Capitan 10.11.6 Ti SDK: 6.0.0.v20160922165510 Appc Studio: 4.8.0.201609191928 Appc NPM: 4.2.8-7 App CLI: 6.0.0-48 Xcode 8.0 Node v4.4.7 *Closing ticket.*

JSON Source