[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15983439#comment-15983439 ] Raymond Camden commented on CB-12287: - Oh, I see it is fixed in 4.4.0. When will that be released? > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > Fix For: cordova-ios@4.4.0 > > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15983437#comment-15983437 ] Raymond Camden commented on CB-12287: - I'm sorry to say - but I ran into this again today. Latest cordova CLI and the iOS platform is version 4.3.1. > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > Fix For: cordova-ios@4.4.0 > > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15837182#comment-15837182 ] ASF GitHub Bot commented on CB-12287: - Github user asfgit closed the pull request at: https://github.com/apache/cordova-ios/pull/286 > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15837181#comment-15837181 ] ASF subversion and git services commented on CB-12287: -- Commit 6e1d376a7a093ca958a27178dd036a9331cd5b43 in cordova-ios's branch refs/heads/master from [~kerrishotts] [ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=6e1d376 ] CB-12287: Remove hardcoded sim build destination Edited title as was >50char; original was CB-12287: Remove hardcoded simulator build destination This closes #286 > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15837180#comment-15837180 ] ASF subversion and git services commented on CB-12287: -- Commit 6e1d376a7a093ca958a27178dd036a9331cd5b43 in cordova-ios's branch refs/heads/master from [~kerrishotts] [ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=6e1d376 ] CB-12287: Remove hardcoded sim build destination Edited title as was >50char; original was CB-12287: Remove hardcoded simulator build destination This closes #286 > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15837005#comment-15837005 ] ASF GitHub Bot commented on CB-12287: - Github user shazron commented on the issue: https://github.com/apache/cordova-ios/pull/286 LGTM > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15829341#comment-15829341 ] ASF GitHub Bot commented on CB-12287: - Github user purplecabbage commented on the issue: https://github.com/apache/cordova-ios/pull/286 LGTM! Not a breaking change in my opinion, no major bump required. > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15813995#comment-15813995 ] ASF GitHub Bot commented on CB-12287: - Github user codecov-io commented on the issue: https://github.com/apache/cordova-ios/pull/286 ## [Current coverage](https://codecov.io/gh/apache/cordova-ios/pull/286?src=pr) is 63.26% (diff: 13.04%) > Merging [#286](https://codecov.io/gh/apache/cordova-ios/pull/286?src=pr) into [master](https://codecov.io/gh/apache/cordova-ios/branch/master?src=pr) will decrease coverage by **0.85%** ```diff @@ master #286 diff @@ == Files12 12 Lines 1360 1380+20 Methods 208213 +5 Messages 0 0 Branches229233 +4 == + Hits872873 +1 - Misses 488507+19 Partials 0 0 ``` > Powered by [Codecov](https://codecov.io?src=pr). Last update [7ec3bdb...3c0ba16](https://codecov.io/gh/apache/cordova-ios/compare/7ec3bdb463a5fd806d9d370b294a96f35e361179...3c0ba16324c0892beec1fd4c741714836cd2?src=pr) > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15813961#comment-15813961 ] ASF GitHub Bot commented on CB-12287: - GitHub user kerrishotts opened a pull request: https://github.com/apache/cordova-ios/pull/286 CB-12287: Remove hardcoded simulator build destination ### Platforms affected iOS 4.3.1 and below ### What does this PR do? In `cordova-ios@4.3.1` and below, the Xcode build destination when building for a simulator is hardcoded as "iPhone 5s". This works as long as the user has an iPhone 5s simulator installed, but if they remove it, the build process breaks. This PR follows the same logic as `cordova emulate ios` in choosing a default destination, but also respects `--target` if specified. For example: ``` $ cordova emulate ios # will currently select iPhone SE simulator to build against and emulate $ cordova emulate ios --target="iPhone-7-Plus" # will build against and emulate on the iPhone 7+ ``` If there are no simulators available, the behavior is undefined, but Xcode wouldn't be able to build either. ### What testing has been done on this change? Manual tests and `npm test` ### Checklist - [X] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [X] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB- is the JIRA ID & "android" is the platform affected. - [X] Added automated test coverage as appropriate for this change. - Note: a couple of tests were modified so that they could pass, but they don't actually test this issue. Tests covering the inner logic will come in a separate PR You can merge this pull request into a Git repository by running: $ git pull https://github.com/kerrishotts/cordova-ios CB-12287 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-ios/pull/286.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #286 commit 3c0ba16324c0892beec1fd4c741714836cd2 Author: Kerri ShottsDate: 2017-01-10T05:29:00Z CB-12287: Remove hardcoded simulator build destination > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 4.3.1, 6.4.0 >Reporter: Raymond Camden >Assignee: Kerri Shotts > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15767940#comment-15767940 ] Kerri Shotts commented on CB-12287: --- OK -- I know where the issue is. In {{platforms/ios/cordova/lib/build.js:277}}, we have this: {code} '-destination', customArgs.destination || 'platform=iOS Simulator,name=iPhone 5s' {code} One can override this using {{cordova emulate ios --buildFlag="-destination platform=iOS Simulator,name=iPhone 7 Plus"}}, but ideally Cordova shouldn't break just because the old iPhone 5s sim is no longer installed. Proposal: match {{cordova emulate ios}}'s default behavior by selecting the last device in the simulator list. This way the two would always remain in sync. If a target is specified ({{--target}}), {{destination}} should use the equivalent target. > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 6.4.0 >Reporter: Raymond Camden > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12287) Issues with default simulator target
[ https://issues.apache.org/jira/browse/CB-12287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15767831#comment-15767831 ] Raymond Camden commented on CB-12287: - FYI, I'm speaking with Kerri Shotts on Slack and she can't reproduce the issue. She is on OSX 10.11.6 and I'm on 10.12.2. She is going to test on 10.12.2 later today. > Issues with default simulator target > > > Key: CB-12287 > URL: https://issues.apache.org/jira/browse/CB-12287 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 6.4.0 >Reporter: Raymond Camden > > A few days ago I loaded up the XCode Devices menu and deleted a bunch of > simulators. I wanted to get rid of old ones and try to get both Cordova and > Ionic defaulting to a modern simulator. I didn't delete everything of course, > but I did delete a bunch. > Now I am unable to emulate. When I make a vanilla project, add ios (version > is 4.3.1) and do cordova emulate ios, i get: > xcodebuild: error: Unable to find a destination matching the provided > destination specifier: > { platform:iOS Simulator, OS:latest, name:iPhone 5s } > The requested device could not be found because no available devices > matched the request. > Available destinations for the "HelloCordova" scheme: > I can't even target another emulator. If I open the xcodeproj file though I > can run it just fine from XCode. > I noticed that /cordova/lib/start-emulator has this: > DEFAULT_TARGET="iPhone 5s" > I don't know why. I tried changing it, just for the heck of it, and I *still* > get the same error. > So... any ideas? -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org