MobileNativeFoundation / rules_xcodeproj

Bazel rules for generating Xcode projects.
MIT License
505 stars 77 forks source link

Feature Request: support App Clip invocation URL in custom schemes #2980

Open luispadron opened 3 months ago

luispadron commented 3 months ago

Schemes which have a binary launch target that is also an App Clip can support a new plist property:

appClipInvocationURLString

This is a single URL that will be provided to the app clip during launch. It is useful for teams to set this in their schemes so they do not need to modify the schemes every time the project is generated.

luispadron commented 3 months ago

Planning on implementing this when I get some free time, if someone would prefer to take this up let me know!

adincebic commented 3 months ago

Planning on implementing this when I get some free time, if someone would prefer to take this up let me know!

I would like to give it a shot but need some guidance on where to start.

luispadron commented 3 months ago

Nice!

@adincebic you can take a look at: https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/2785 and https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/2866 which implemented a similar change to the schemes API.

@brentleyjones if you have other suggestions to get them started

luispadron commented 3 months ago

As a workaround for now: using _XCAppClipURL as an environment variable in the run section of the App Clip scheme still works in Xcode 15.x. The scheme UI in Xcode does not show it as the "App Clip Invocation URL" but the app clip still recognized that URL during launch in my testing.