{ "id": "174679", "key": "AC-6477", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-01-28T22:45:50.000+0000", "labels": [ "ios" ], "versions": [], "issuelinks": [ { "id": "58133", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174620", "key": "TIMOB-27713", "fields": { "summary": "Unable to package for ios adhoc distribution using SDK 8.3.0 but OK with 8.0.0", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-31T22:01:41.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have added the relevant environment for iOS from `appc ti info` in the environment section. I can build the android build fine using this command - \r\n\r\nappc ti build --no-prompt build --platform android --sdk 8.3.1.GA --skip-js-minify --project-dir /Users/omadiadmin/Projects/omadi_mobile/titanium_src --log-level info -T dist-playstore -K /Users/omadiadmin/Projects/omadi_mobile/titanium_src/../omadi.keystore -P -L app_joseandro_version -O /Users/omadiadmin/Builds/Android/4.4.43_8.3.1.GA/4.4.43\r\n\r\nWhen I try to build for iOS which I have been able to do in the past with xcode 10, and 8.0.1.GA I get this error - [ERROR] Invalid \"--distribution-name\" value \"Omadi, Inc. (WSF7G42V5D)\". I know my provisioning profile is correct and I have always used the same --distribution-name in the past, so I am not sure why I am getting failures on newer xcode with 8.3.1.GA.\r\n\r\nappc ti --no-prompt build --log-level info --skip-js-minify --crittercism -F universal -D production -p ios --sdk 8.3.1.GA -d /Users/omadiadmin/Projects/omadi_mobile/titanium_src/Resources -P 3408b5ab-f213-4574-9ae1-bc381d7bc33c -T dist-appstore --distribution-name 'Omadi, Inc. (WSF7G42V5D)'\r\n\r\nCan you please help me figure out what I am missing? The environment has stayed the same other then a new xcode 11 cert, xcode 11, and the new 8.3.1.GA sdk. What needs to be set for the --distribution-name? Where do I get that if not from `appc ti info`?\r\n\r\nThanks,\r\n\r\nClint", "attachment": [], "flagged": false, "summary": "I am trying to build with xcode 11 and sdk 8.3.1.GA and I am getting this message - [ERROR] Invalid \"--distribution-name\" value", "creator": { "name": "coaks", "key": "coaks", "displayName": "Clint Oaks", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "coaks", "key": "coaks", "displayName": "Clint Oaks", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.14.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 10.16.0\r\n npm Version = 6.9.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n node-appc Version = 0.2.44\r\n\r\nTitanium SDKs\r\n 8.3.1.GA\r\n Version = 8.3.1\r\n Install Location = /Users/omadiadmin/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA\r\n Platforms = iphone, android\r\n git Hash = 1e832a6720\r\n git Timestamp = 1/15/2020 18:27\r\n node-appc Version = 0.3.4\r\n\r\nMac OS X\r\n Command Line Tools = installed\r\n\r\nXcode\r\n 11.2.1 (build 11B500) - Xcode default\r\n Install Location = /Applications/Xcode.app/Contents/Developer\r\n iOS SDKs = 13.2.2\r\n iOS Simulators = 13.2.2\r\n Watch SDKs = 6.1\r\n Watch Simulators = 6.1\r\n Supported by TiSDK 8.3.1.GA = yes\r\n EULA Accepted = yes\r\n Teams = none\r\n\r\niOS Keychains\r\n login.keychain-db = /Users/omadiadmin/Library/Keychains/login.keychain-db\r\n System.keychain = /Library/Keychains/System.keychain\r\n\r\niOS App Store Distribution Certificates\r\n/Users/omadiadmin/Library/Keychains/login.keychain-db\r\n Apple Distribution: Omadi, Inc. (WSF7G42V5D)\r\n Not valid before = 1/7/2020 12:45 PM\r\n Not valid after = 1/6/2021 12:45 PM\r\n/Library/Keychains/System.keychain\r\n Apple Distribution: Omadi, Inc. (WSF7G42V5D)\r\n Not valid before = 1/7/2020 12:45 PM\r\n Not valid after = 1/6/2021 12:45 PM\r\n\r\nApple WWDR Certificate\r\n Apple WWDR = installed\r\n\r\nApp Store Distribution iOS Provisioning Profiles\r\n towing_build_machine\r\n UUID = 3408b5ab-f213-4574-9ae1-bc381d7bc33c\r\n App Prefix = WSF7G42V5D\r\n App Id = com.omadi.towing\r\n Date Created = 1/27/2020 4:51 PM\r\n Date Expired = 1/6/2021 12:45 PM\r\n Managed = No", "comment": { "comments": [ { "id": "453872", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~coaks] What SDK were you previously on before updating to 8.3.1.GA?\r\n\r\nIt's possible that this could be triggered by changes in TIMOB-27358. To support the new Apple certificates SDK now accepts the full name of a certificate i.e {{iPhone Distribution: Omadi, Inc. (WSF7G42V5D)}}, but if a short name (i.e. {{Omadi, Inc. (WSF7G42V5D)}}) is provided it will try to lookup the cert but in the case where both an {{iPhone Distribution}} and {{Apple Distribution}} cert exist on the system it's not possible to distinguish between the two so we're forced to error.\r\n\r\nSo I would maybe try the following \r\n\r\n* Ensure 8.3.1.GA is selected as your active SDK {{appc ti sdk select 8.3.1.GA}}\r\n* Run {{appc ti info -t ios}} and look for the full name of the cert you wish to use\r\n* Use this as the value for {{--distribution-name}}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-01-29T11:10:56.000+0000", "updated": "2020-01-29T11:10:56.000+0000" }, { "id": "453881", "author": { "name": "coaks", "key": "coaks", "displayName": "Clint Oaks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the reply @eharris\r\n\r\nIt could be related as I was previously using xcode 10 with sdk 8.0.1.GA. I ran appc ti info -t and tried building with the full certificate name which is - Apple Distribution: Omadi, Inc. (WSF7G42V5D) I still got the same error. Below are the logs, I hid the serial number and session key but let me know if there is anything else that should be hidden from the logs:\r\n\r\n{code}\r\n2020-01-29T17:46:00.882Z | TRACE | executing titanium run plugin with:\r\nARGS: [ '--no-prompt',\r\n 'build',\r\n '--log-level',\r\n 'trace',\r\n '--skip-js-minify',\r\n '--crittercism',\r\n '-F',\r\n 'universal',\r\n '-D',\r\n 'production',\r\n '-p',\r\n 'ios',\r\n '--sdk',\r\n '8.3.1.GA',\r\n '/Users/omadiadmin/Projects/omadi_mobile/titanium_src/Resources',\r\n '-T',\r\n 'dist-appstore',\r\n '-P',\r\n '3408b5ab-f213-4574-9ae1-bc381d7bc33c',\r\n '-R',\r\n 'Apple Distribution: Omadi, Inc. (WSF7G42V5D)' ] \r\nOPTS: { projectDir:\r\n '/Users/omadiadmin/Projects/omadi_mobile/titanium_src/Resources',\r\n logLevel: 'trace',\r\n output: undefined,\r\n version: undefined,\r\n quiet: undefined,\r\n banner: true,\r\n colors: true,\r\n services: true,\r\n progressBars: true,\r\n prompt: false,\r\n promptPort: undefined,\r\n promptType: undefined,\r\n username: undefined,\r\n password: '[HIDDEN]',\r\n env: undefined,\r\n orgId: undefined,\r\n pluginPaths: '3408b5ab-f213-4574-9ae1-bc381d7bc33c',\r\n registry: undefined,\r\n vpcEnv: undefined,\r\n session:\r\n { ipaddress: '[HIDDEN]',\r\n registry: undefined,\r\n username: 'build@omadi.com',\r\n password: '[HIDDEN]',\r\n session:\r\n '[HIDDEN]',\r\n nonce: undefined,\r\n environment:\r\n { name: 'production',\r\n isProduction: true,\r\n acsBaseUrl: 'https://api.cloud.appcelerator.com',\r\n nodeACSEndpoint: 'https://admin.cloudapp-enterprise.appcelerator.com' },\r\n token: undefined,\r\n fingerprint: '[HIDDEN]',\r\n fingerprint_description: 'Mac OSX Serial Number: [HIDDEN]',\r\n org_id: 100000645,\r\n expiry: 1580924760796 } }\r\n2020-01-29T17:46:00.980Z | DEBUG | Titanium Downloads Last Checked: 1580318593399\r\n2020-01-29T17:46:01.009Z | TRACE | No project alloy hook; skipping update to 1.0.1\r\n[ERROR] Invalid \"--distribution-name\" value \"Apple Distribution: Omadi, Inc. (WSF7G42V5D)\"\r\n{code}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-01-29T18:03:56.000+0000", "updated": "2020-01-30T09:16:23.000+0000" }, { "id": "453888", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~coaks], could you provide the full log output from your build and the {{appc ti info -t ios}} output. If you'd prefer to not upload it to jira feel free to send it me via email (in my jira profile) or message me privately on [ti-slack|https://tislack.org/]", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-01-29T23:06:41.000+0000", "updated": "2020-01-29T23:06:41.000+0000" }, { "id": "453889", "author": { "name": "coaks", "key": "coaks", "displayName": "Clint Oaks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ewan,\r\n\r\nI believe I have solved the issue. I was passing this {{-R Apple Distribution: Omadi, Inc. (WSF7G42V5D) and -P 3408b5ab-f213-4574-9ae1-bc381d7bc33c}} to the appc ti build command but it would fail. As soon as I took off the --no-prompt from the command I got prompted with this:\r\n{code}\r\n[ERROR] Unable to determine correct certificate from supplied value\r\nWhich distribution certificate would you like to use?\r\n/Users/omadiadmin/Library/Keychains/login.keychain-db\r\n 1) Apple Distribution: Omadi, Inc. (WSF7G42V5D) (expires Jan 6, 2021 12:45:39 pm)\r\n/Library/Keychains/System.keychain\r\n 2) Apple Distribution: Omadi, Inc. (WSF7G42V5D) (expires Jan 6, 2021 12:45:39 pm)\r\nSelect a certificate by number or name: \r\n{code}\r\n\r\nWhen I selected either one, the build would work. This led me to my keychain, where I had the same certificate with the same name installed in the System.keychain and the login.keychain. I removed the certificate from the System.keychain and re-ran the build and it worked. It worked without supplying a -R with the uuid and cert name as well as running the command with the values specified. It appears that the cli was getting confused with the two certificates in two different keychains and since I had --no-prompt it was failing with a generic --distribution-name error. We can close this issue, it might be worth updating documentation to specify that with xcode 11 and newer appc sdk, there can only be 1 certificate installed in the keychain.\r\n\r\nThank you again for your time.\r\n\r\n", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-01-29T23:47:09.000+0000", "updated": "2020-01-30T09:17:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }