{ "id": "113186", "key": "TIMOB-13640", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-05-03T01:12:50.000+0000", "created": "2013-04-22T12:03:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "28113", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "113319", "key": "TIMOB-13663", "fields": { "summary": "CLI: iOS \"build only\" option in conjunction with target \"device\" or \"dist-adhoc\" does not produce an ipa", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T20:30:45.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem description\r\n\r\nCannot build ad-hoc using Titanium CLI. The following error is reported:\r\n\r\n{code}\r\nERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CodeSign build/Release-iphoneos/TestApp.app\r\n[ERROR] (1 failure)\r\n{code}\r\n\r\nh2. Steps to reproduce\r\n\r\nCreate a project and build ad-hoc using CLI:\r\n\r\n{code}\r\ntitanium build --build-only --force --log-level=debug --platform=ios --project-dir=. --device-family=iphone --distribution-name=\"[DISTRIBUTION-NAME]\" --ios-version=6.1 --keychain=/Users/[USER]/Library/Keychains/ --target=dist-adhoc --pp-uuid=[PROVISIONING-PROFILE-UUID]\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Cannot build adhoc using Titanium CLI", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.1.0.GA\r\n", "comment": { "comments": [ { "id": "248828", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide the CLI version shown with \"ti -v\"\r\n\r\nThe output above points to a code-signing error. Please verify the provision is in place, and that the identity and provision are correct. Use Xcode to verify both, or use \"ti info -p ios\" and check both are correct. Look specifically for the distribution identity under \"Distribution\" and the provision under \"Adhoc iOS Provisioning Profiles\". For example:\r\n{code}\r\n Distribution = Appcelerator, Inc.\r\n Eric Merriman\r\n...\r\nAdhoc iOS Provisioning Profiles\r\nAny App Adhoc Distribution\r\n UUID = 207QC916-0327-46F8-83E2-FC13B29F9F5S\r\n App Prefix = WZ34J6SL52\r\n App Id = *\r\n{code}\r\n\r\nThere are a few things to clarify here:\r\nYou don't need the \"=\" characters.\r\nYou don't need the \"--project-dir\" if you are going to specify \".\"\r\n\"--force\" is a ti create flag, not a build flag.\r\nWith adhoc target, you must specify output directory for the ipa. Use \"-O\" (or \"--output-dir\")\r\nThe \"--build-only\" flag is designed to prevent a simulator or device build from running the simulator/device install and run. You don't need that in this case.\r\n\r\nUsing the command as presented (but removing the non-functional parts, and adding the required flag \"-O\") I was unable to reproduce. I do not have multiple keychains on my system currently and am unsure if the reporter needs to use another keychain other than the default. Please note however, the -b should not prevent an ipa from being created. I will create a bug for that and link it to this one.\r\n\r\nExample build commands for adhoc:\r\nti build -p ios -T dist-adhoc -F iphone -V \"Eric Merriman\" -P 207TC916-0727-45F8-83E2-FC13B26F9F3S -I 6.1 -K -O /Users/emerriman/Desktop --log-level debug\r\nor:\r\ntitanium build --platform ios --target dist-adhoc --device-family iphone --developer-name \"Eric Merriman\" --pp-uuid 207TC916-0727-45F8-83E2-FC13B26F9F3S --ios-version 6.1 -K --output-dir /Users/emerriman/Desktop --log-level debug\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-23T23:18:02.000+0000", "updated": "2013-04-23T23:20:01.000+0000" }, { "id": "271666", "author": { "name": "ashton.williams", "key": "ashton.williams", "displayName": "Ashton Williams", "active": true, "timeZone": "Australia/Sydney" }, "body": "CLI version 3.1.2, Titanium SDK version 3.1.2.GA\r\n\r\nRan into this problem today, titanium was defaulting to xcode 5 SDK (even after xcode-select), seems to be if you use {{-ios-version=6.1}} and {{-build-only}} you don't get an ipa.", "updateAuthor": { "name": "ashton.williams", "key": "ashton.williams", "displayName": "Ashton Williams", "active": true, "timeZone": "Australia/Sydney" }, "created": "2013-09-18T05:15:54.000+0000", "updated": "2013-09-18T05:15:54.000+0000" }, { "id": "416528", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce this issue, tested with the following environment; \r\niPhone 7 and Simulator (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.2 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T20:30:45.000+0000", "updated": "2017-03-31T20:30:45.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }