Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25320

iOS: CLI errors incorrectly when xcode eula not accepted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: Release 6.2.1
    • Component/s: iOS, Tooling
    • Labels:
      None
    • Environment:

      OSX 10.12.6
      XCode 9
      SDK 6.2.0.GA
      appc cli 6.2.4

      Description

      Description

      I 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

      Error from command

      2017-09-19T19:52:46.288Z | ERROR  | Cannot read property 'forEach' of undefined
      2017-09-19T19:52:46.288Z | TRACE  | TypeError: Cannot read property 'forEach' of undefined
          at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/lib/commands/info.js:620:22
          at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:3853:9
          at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:484:16
          at iteratorCallback (/Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:1082:13)
          at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:988:16
          at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:3850:13
          at apply (/Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:41:25)
          at /Users/awam/.appcelerator/install/6.2.4/package/node_modules/titanium/node_modules/async/dist/async.js:76:12
          at Section.<anonymous> (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/iphone/cli/lib/info.js:43:11)
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/index.js:122:12
      

      Logging err from here gives the below

      err value

      Error: simctl list failed after 4 tries
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/lib/simctl.js:220:21
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/node_modules/async/dist/async.js:906:16
          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)
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/lib/simctl.js:185:13
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/node_modules/async/dist/async.js:906:16
          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)
          at /Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/ioslib/lib/simctl.js:584:13
          at ChildProcess.<anonymous> (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/6.2.0.GA/node_modules/node-appc/lib/subprocess.js:60:3)
      

      Output of simctl list

      /Applications/Xcode.app/Contents/Developer/usr/bin/simctl list --json
      dyld: Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
        Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl
        Reason: image not found
      Abort trap: 6
      

      Steps to reproduce
      1. Update to xcode 9, do not accept the eula
      2. Run a build appc run -p ios
      3. Run info appc ti info -t ios
      Actual

      Errors above

      Expected

      I believe we used to tell people the eula wasn't accepted

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Chris Barber
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • It looks like Backbone Issue Sync is not enabled for your project.

                  Git Source Code