Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid scheme settings generated for custom watch #764

Closed
nvapp360 opened this issue Jan 30, 2020 · 3 comments
Closed

Invalid scheme settings generated for custom watch #764

nvapp360 opened this issue Jan 30, 2020 · 3 comments

Comments

@nvapp360
Copy link

nvapp360 commented Jan 30, 2020

When i created a watch scheme with different name, the scheme points to the {myApp}.app instead of {MyWatchApp}.app.

I didnt find any option to set the Executable* to point to the right .app file.

Executable* - (Watch) Scheme -> Run -> Info -> Executable

schemes:
  'Apple Watch':
     build:
       targets:
         Development: all
       parallelizeBuild: true
       buildImplicitDependencies: true
     run:
       config: Debug
       targets: MyWatchApp

This created the scheme, but the executable target was {MyApp.app} instead of {MyWatchApp.app}

Can you point out if I am missing anything here?

@nvapp360 nvapp360 changed the title Use xcscheme to generate the project scheme Custom watch scheme generates invalid scheme Feb 21, 2020
@nvapp360 nvapp360 changed the title Custom watch scheme generates invalid scheme Invalid scheme settings generated for custom watch Feb 26, 2020
@jcolicchio
Copy link
Contributor

Seems like a duplicate of #589 , it selects the first executable target using ASCII sorting; for now try changing the target name to ‘zMyApp’ or the watch target name to ‘AMyWatchApp’ — note case sensitivity, any uppercase sorts before any lowercase

@yonaskolb
Copy link
Owner

yonaskolb commented May 31, 2020

Master now has run.executableName that resolves this

@jcolicchio
Copy link
Contributor

🙇‍♂️ 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants