{ "id": "169836", "key": "TIMOB-25320", "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": "19922", "description": "", "name": "Release 6.2.1", "archived": false, "released": true, "releaseDate": "2017-09-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-19T21:29:21.000+0000", "created": "2017-09-19T19:56:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-09-19T22:42:50.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" }, { "id": "10207", "name": "Tooling" } ], "description": "h5.Description\r\n \r\nI updated to the latest xcode and forgot to accept the eula, when building I was met with {{\\[ERROR] simctl list failed after 4 tries}}, I tried to check my info (appc ti info -t ios) and got the below\r\n\r\n{code: title=Error from command}\r\n2017-09-19T19:52:46.288Z | ERROR | Cannot read property 'forEach' of undefined\r\n2017-09-19T19:52:46.288Z | TRACE | TypeError: Cannot read property 'forEach' of undefined\r\n at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/lib/commands/info.js:620:22\r\n at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:3853:9\r\n at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:484:16\r\n at iteratorCallback (/Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:1082:13)\r\n at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:988:16\r\n at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:3850:13\r\n at apply (/Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:41:25)\r\n at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:76:12\r\n at Section. (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/iphone/cli/lib/info.js:43:11)\r\n at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/index.js:122:12\r\n{code}\r\n\r\nLogging err from [here|https://github.com/appcelerator/titanium_mobile/blob/4c4d67515646aa7b26db73013ba306d0dcd19b8d/iphone/cli/lib/info.js#L40] gives the below\r\n{code: title=err value}\r\nError: simctl list failed after 4 tries\r\n at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/lib/simctl.js:220:21\r\n at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/node_modules/async/dist/async.js:906:16\r\n at next (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/node_modules/async/dist/async.js:5174:18)\r\n at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/lib/simctl.js:185:13\r\n at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/node_modules/async/dist/async.js:906:16\r\n at next (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/node_modules/async/dist/async.js:5174:18)\r\n at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/lib/simctl.js:584:13\r\n at ChildProcess. (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/node-appc/lib/subprocess.js:60:3)\r\n{code}\r\n\r\n{code:title=Output of simctl list}\r\n/Applications/Xcode.app/Contents/Developer/usr/bin/simctl list --json\r\ndyld: Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator\r\n Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl\r\n Reason: image not found\r\nAbort trap: 6\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Update to xcode 9, do not accept the eula\r\n# Run a build {{appc run -p ios}} \r\n# Run info {{appc ti info -t ios}}\r\n\r\nh5.Actual\r\n\r\nErrors above\r\n\r\nh5.Expected\r\n\r\nI believe we used to tell people the eula wasn't accepted", "attachment": [], "flagged": false, "summary": "iOS: CLI errors incorrectly when xcode eula not accepted", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "OSX 10.12.6\r\nXCode 9\r\nSDK 6.2.0.GA\r\nappc cli 6.2.4", "comment": { "comments": [ { "id": "428104", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I was able to go back to the old behaviour by changing to {{if (!xcodeInfo.selectedXcode || !xcodeInfo.selectedXcode.eulaAccepted) {}} here https://github.com/appcelerator/ioslib/blob/ea1ac3e29fba551413b9b7ccad9ee3ad69913dff/lib/simulator.js#L174", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-19T20:07:17.000+0000", "updated": "2017-09-19T20:07:32.000+0000" }, { "id": "428110", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Just in case the above is correct and Barber approved https://github.com/appcelerator/ioslib/pull/67", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-19T21:07:39.000+0000", "updated": "2017-09-19T21:07:39.000+0000" }, { "id": "428131", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/9457\r\nTi SDK 6_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/9455\r\nTi SDK 6_2_1 PR https://github.com/appcelerator/titanium_mobile/pull/9456", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-19T22:42:50.000+0000", "updated": "2017-09-19T22:42:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }