{ "id": "168835", "key": "TIMOB-24939", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-07-06T16:14:17.000+0000", "created": "2017-07-06T02:14:02.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios11", "xcode9" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-08-06T17:41:06.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": "When running a fresh app with master (6.2.0.v20170705124957), the app immediately crashes with the following error:\r\n\r\n{code}\r\n/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:5174\r\n callback.apply(null, [null].concat(args));\r\n ^\r\nTypeError: Cannot read property 'forEach' of undefined\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simulator.js:230:24\r\n at Array.forEach (native)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simulator.js:198:16\r\n at Array.forEach (native)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simulator.js:192:25\r\n at Array.forEach (native)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simulator.js:191:31\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simctl.js:223:4\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:906:16\r\n at next (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:5174:18)\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simctl.js:581:20\r\n at Object.whilst (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:5176:5)\r\n at trySimctl (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simctl.js:575:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simctl.js:177:4\r\n at Object.whilst (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:5176:5)\r\n at Object.list (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simctl.js:172:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/simulator.js:179:11\r\n at fireCallbacks (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:122:5)\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:449:23\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3060:16\r\n at eachOfArrayLike (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:1003:9)\r\n at eachOf (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:1051:5)\r\n at Object.eachLimit (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3122:5)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:441:12\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:100:8\r\n at ChildProcess. (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:60:3)\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at find (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:96:14)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:4025:5\r\n at process (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2332:17)\r\n at Immediate. (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2136:16)\r\n at runCallback (timers.js:672:20)\r\n at tryOnImmediate (timers.js:645:5)\r\n at processImmediate [as _immediateCallback] (timers.js:617:5)\r\n---------------------------------------------\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2135:9\r\n at apply (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:21:25)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:56:12\r\n at _insert (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2248:9)\r\n at Object.push (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2294:13)\r\n at Object.findExecutable (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:113:8)\r\n at findTeams (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:431:21)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3830:24\r\n at replenish (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:946:17)\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:415:22\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3060:16\r\n at replenish (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:946:17)\r\n at iterateeCallback (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:931:17)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:906:16\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:425:7\r\n at ChildProcess. (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:60:3)\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:415:22\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3060:16\r\n at replenish (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:946:17)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:950:9\r\n at eachLimit$1 (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3146:24)\r\n at Object. (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:980:16)\r\n at loadXcodeInfo (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:276:11)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3830:24\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/xcode.js:239:22\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/env.js:98:4\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3838:9\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:421:16\r\n at iterateeCallback (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:928:24)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:906:16\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/node_modules/async/dist/async.js:3835:13\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/ioslib/lib/env.js:76:6\r\n---------------------------------------------\r\n at Object.run (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at find (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/node-appc/lib/subprocess.js:96:14)\r\n at /Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:4025:5\r\n at process (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2332:17)\r\n at Immediate. (/Users/hknoechel/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.v20170705124957/node_modules/async/dist/async.js:2136:16)\r\n at runCallback (timers.js:672:20)\r\n at tryOnImmediate (timers.js:645:5)\r\n at processImmediate [as _immediateCallback] (timers.js:617:5)\r\n{code}\r\n\r\nI think I had a related error a few weeks before, but not sure if I filed a ticket back then. Feel free to mark as duplicate if so. Thx!\r\n\r\nTo reproduce:\r\n1. Create a new app with {{appc new -p ios}}\r\n2. Run the app\r\n3. Build crashes", "attachment": [], "flagged": false, "summary": "iOS 11: Build crashes with \"Cannot read property 'forEach' of undefined\"", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "423580", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This error is no longer valid... or at least it's no longer valid once you finish reviewing and merging https://github.com/appcelerator/titanium_mobile/pull/9173 and resolve TIMOB-24798.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-07-06T16:08:03.000+0000", "updated": "2017-07-06T16:08:03.000+0000" }, { "id": "423601", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This issue is not resolved with the mentioned PR, getting the same error when building the SDK from that branch.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-06T18:01:24.000+0000", "updated": "2017-07-06T18:01:24.000+0000" }, { "id": "423604", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "After looking at it again, I do not believe it's possible to receive the error you are seeing with ioslib@1.4.8.\r\n\r\nMake sure you are scons'ing the correct branch and set the correct {{}} in the {{tiapp.xml}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-07-06T18:06:59.000+0000", "updated": "2017-07-06T18:06:59.000+0000" }, { "id": "423605", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Trying again now, using your latest commits!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-06T18:07:54.000+0000", "updated": "2017-07-06T18:07:54.000+0000" }, { "id": "439978", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as a duplicate. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:41:06.000+0000", "updated": "2018-08-06T17:41:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }