-
Notifications
You must be signed in to change notification settings - Fork 823
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
Use remote-runnable launch actions for Apple Watch schemes #798
Use remote-runnable launch actions for Apple Watch schemes #798
Conversation
@yonaskolb Let me know if there are any changes you think need to be made, stylistic or otherwise. |
fc768d2
to
2761120
Compare
@yonaskolb Is there any interest in getting this bug fixed? My team at Peloton has recently started using XcodeGen and we're loving it ❤️, but we currently have a hack-fix in place for this issue in particular. If this is not the best approach, please let me know. |
|
||
$0.it("generates scheme with remote runnable for watch") { | ||
let xcscheme = try self.makeWatchScheme(appType: .watch2App, extensionType: .watch2Extension) | ||
try expect(xcscheme.launchAction?.runnable).beOfType(XCScheme.RemoteRunnable.self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the opposite check elsewhere? To ensure we only make it a RemoteRunnable
in this case, and a BuildableProductRunnable
elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @daltonclaybrook!
@daltonclaybrook Did you encounter this issue with a standalone watch app? When debugging my schemes, I also noticed the difference between Xcode and XcodeGen regarding |
@tschob I tested this fix with a companion watch app. I will try to test again soon now that it's merged. |
Resolves #736
This PR fixes an issue that prevents a Watch app from being launched using the generated scheme. The
BuildableProductRunnable
launch action has been replaced with aRemoteRunnable
action, and the host app has been added as aBuildActionEntry
. This more closely matches the scheme that Xcode generates when creating a new Apple Watch app target and seems to work correctly when building/running the target from Xcode.