igorsantos07 opened a new issue, #1381:
URL: https://github.com/apache/cordova-ios/issues/1381

   # Feature Request
   
   ## Motivation Behind Feature
   <!-- Why should this feature be implemented? What problem does it solve? -->
   The current default, when `npx cordova run ios` is executed without a 
plugged device, is to get the latest iPhone on the available list of simulators 
([code](https://github.com/igorsantos07/cordova-ios/blob/a1f3acea0a59ca270769ff67ac7ff91fcae0d563/lib/build.js#L84)).
 I'm not sure why this decision was taken - since it usually ends up being the 
latest, but also the largest one and the "easiest to have a good experience", 
let's say.
   
   > thanks Norman for the help figuring that out on Slack :)
   
   That said, it's suboptimal to either force the developer to always specify a 
long and complex option (since device identifiers are never small), in case the 
latest and largest isn't the best for them.
   
   
   ## Feature Description
   <!-- 
   Describe your feature request in detail
   Please provide any code examples or screenshots of what this feature would 
look like
   Are there any drawbacks? Will this break anything for existing users? 
   -->
   My suggestion is to either have it read from a CLI variable (e.g. 
`CORDOVA_DEFAULT_IOS_TARGET`) or some other setting baked into the user or 
project config. The CLI variable might be more suitable since different devs 
might have different preferences among the same team, but a project-wide config 
could be useful as well, although I'm not sure where that would go (I'm kinda 
noob about the Cordova inner details).
   
   That said, since I checked the code to see what goes on, I think **I'm able 
to code whatever is agreed upon here**, if this feature seems to makes sense :)
   
   
   
   ## Alternatives or Workarounds
   <!-- 
   Describe alternatives or workarounds you are currently using 
   Are there ways to do this with existing functionality?
   -->
   Just repeating the current `--target` option with a long string, or coding 
yourself a bash alias, which feels out of the workflow, may be forgotten by the 
user if they only run the application every now and then, and is not exactly 
obvious for newcomers on the team.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to