Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12190

create.spec tests fail when a device is connected

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • cordova-ios@4.3.1
    • cordova-ios
    • None
    • iOS 10, Xcode 8, macOS Sierra

    Description

      When running tests, and a device is connected, the create and build tests fail.

      Repro:

      npm install && npm test
      

      This is because when a device is connected, it also tried to build for it, when it should only build for the Simulator. In Xcode 8, it requires the --developmentTeam flag value when building for a device.

      Fix:
      Use the

      --emulator

      flag when building.

      Workaround:
      Disconnect your device when testing.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment