{ "id": "63224", "key": "TIMOB-2592", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11237", "name": "Release 1.6.0 M04", "archived": true, "released": true, "releaseDate": "2011-01-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:32.000+0000", "created": "2011-04-15T03:23:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "release-1.6.0", "tooling", "xcode" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

If any Xcode errors occur from the iOS builder.py (specifically\nin \"install\" or \"distribute\"), the error itself gets saved to\nbuild/iphone/build/build.log, but is not printed back to the\nconsole. Developer will show an alert dialog of the error output of\nthe process, which ends up being a python stack trace, and not the\nerror itself from Xcode. I can reproduce the problem by using an\nexpired provisioning profile on KitchenSink from the \"Run on\nDevice\" tab in Developer.

\n

The builder.py call looks like (UUID-XXXX is the UUID of my\nprofile, PROFILE_NAME is it's name. You can get both from\nXcode):

\n
\n/Library/Application\\ Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py install 4.0 ~/Code/titanium_mobile/demos/KitchenSink org.apcelerator.titanium.kitchensink KitchenSink UUID-XXXX PROFILE_NAME iphone\n
\n

The python trace looks like:

\n
\n[ERROR] Error: Traceback (most recent call last):\n  File \"/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py\", line 1143, in main\n    execute_xcode(\"iphoneos%s\" % iphone_version,args,False)\n  File \"/Library/Application Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py\", line 925, in execute_xcode\n    output = run.run(args,False,False,o)\n  File \"/Users/marshall/Code/titanium_mobile/dist/mobilesdk/osx/1.5.0/iphone/run.py\", line 31, in run\n    sys.exit(rc)\nSystemExit: 1\n
\n

In Developer just the top part of this is clipped in an alert\ndialog:
\nhttps://skitch.com/marshall.law/rffxp/titanium-developer

\n

And finally, this is a snip of the actual error output of Xcode\nwhich resides in the project's build/iphone/build/build.log:

\n
\n=== BUILD NATIVE TARGET KitchenSink OF PROJECT KitchenSink WITH CONFIGURATION Release ===\nCheck dependencies\nCode Sign error: Provisioning profile 'XXXX' has expired\n[BEROR]Code Sign error: Provisioning profile 'XXXX' has expired\n** BUILD FAILED **\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: Errors from Xcode's build.log should be printed in results from builder.py", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128913", "author": { "name": "davidgouldin", "key": "davidgouldin", "displayName": "David Gouldin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Pull request submitted, fix in [b3480490840a3a6e6418].

{html}", "updateAuthor": { "name": "davidgouldin", "key": "davidgouldin", "displayName": "David Gouldin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:55.000+0000", "updated": "2011-04-15T03:23:55.000+0000" }, { "id": "128914", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ae63849554bd02749b24d9b9759eeb335d8be582])\n[#2592 state:fixed-in-qa] Detect error messages\nin xcode build output. \nhttps://github.com/appcelerator/titanium_mobile/commit/ae63849554bd...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:55.000+0000", "updated": "2011-04-15T03:23:55.000+0000" }, { "id": "128915", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

[INFO] Titanium SDK version: 1.6.0 (01/13/11\n08:11 7ca73a3) sim and device, used mismatched dev cert and\nprovision file to generate errors

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:56.000+0000", "updated": "2011-04-15T03:23:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }