I'm creating a Capacitor App with the capacitor-share-extension plugin
As described in the documentation on Github, for iOS I first needed to create a "Share Extension" in Xcode.
When I build the app in Xcode everything works fine.
But when I clean the build folder in Xcode (Product -> Clean build folder), the build is failing. In consequence, I cannot build the app on a fresh machine or in my build pipeline, which blocks me from using the plugin. (For reference I'm using Bitrise Xcode Archive Plugin)
From the error, it looks like Xcode cannot find an appex file that is created in my local cache (but I also failed to include that file in my project folder). The error message is this:
Failed to set unique install ID on plugin <my-bundle>.<my-extension>
Failed to open /Users/<username>/Library/Developer/CoreSimulator/Devices/4A7360A3-D373-4A0A-BB08-AF354F97FFAF/data/Library/Caches/com.apple.mobile.installd.staging/temp.9hhnWo/extracted/Payload/<my-app>.app/PlugIns/<my-share-extension>.appex/<my-share-extension>
Failure Reason: No such file or directory
Is it possible to include all required files in my project folder so that I can build without the cache and without going through Xcode to manually create the Share Extension?
Or can I somehow create the Share Extension through a CLI command so that I can build in my build pipeline (already asked by this SO question Creating iOS share extension through the command line)?