@mgorbach Hey Michael! I'm struggling to localize my App Intents declared in a SPM - could you help? 😅

- My AppIntent is declared in a Swift Package with `AppIntentsPackage` declared
- Localizable.xcstrings in the Swift Package has all the keys correctly extracted and localized. It's also in the package bundle after building the app.
- Metadata.appintents is populated as expected
- Intent is working in the Shortcuts app, but it's using placeholder localization, like it can't find the .xcstrings

@mgorbach It also doesn't find the images for `AppEnum` which are in the Media.xcassets located in the same Swift Package.
@royalisdead Hi, do you have a sample app and FB number by chance? I can make sure it is looked at.

@mgorbach FB19991780, https://github.com/rrroyal/AppIntentsLocalizationBug

Thank you so much, you're a lifesaver ❤️

GitHub - rrroyal/AppIntentsLocalizationBug: FB19991780

FB19991780. Contribute to rrroyal/AppIntentsLocalizationBug development by creating an account on GitHub.

GitHub
@royalisdead Really appreciate you filing this. We'll take a look!
@royalisdead Can you explain point 2 in your Radar a bit more? Are you talking about an app that has Swift packages with app intents content, but has no extension, so the app intents only exist in the resulting app?

@mgorbach I would like to have just a single app target, with App Intents living in a Swift Package. Right now, to make them appear in the system, I need to also create an App Intents extension target with that Swift Package linked.

If I do not create that extension, intents don't show up in the system.

Additionally, if that extension exists, I would expect it to be used to run the intents, so that the main app doesn't need to boot up - that's not what I've observed.

@mgorbach I do not mind having that extension (it would be even better - less startup time), but I can't seem to make it "prefer" running in the extension, instead of the main app.
@royalisdead You shouldn't need to create an app extension just to use a Swift package's app intents with your app. You should be able to use AppIntentsPackage in your app and reference an AppIntentsPackage in the Swift package and that's it. Does that work?

@mgorbach No luck 😕

The only difference is that the broken build (no extension) has "extract.packagedata" file with my Swift Package `AppIntentsPackage`, and the working one doesn't have that file. Other files are fundamentally same.