Reputation: 3545
I'm on Objective-c Xcode 11, macOS not iOS.
I have a small app in objective-c, sandboxed. To make it more accessible i added script support and therefore developed some Automator actions.
I want to embed them in the app bundle so the user doesn't need to install them seperately.
Regarding the documentation this works by placing them in the app bundle like this:
myapp.app/Library/Automator/actionHere
What i tried:
I created an archive and copied the finished product (automator action) to my app folder (in finder) and added it to the project (without copying). Then i added a copy files phase to copy it to the above folder (selected 'Wrapper' + 'Library/Automator'). I tried both with "Sign on copy" and without.
Unfortunately, signing of the app fails with "unsealed contents present in root directory" - without the automator action it builds fine.
Team ID for codesigning and certificates match for both apps. Base identifier is the same e.g. com.mycompany.product and com.mycompany.product.automator.action1
Then i tried to embed the Automator project as subproject. But that failed at all....
How can i either add the Automator project as subproject of the main app project and get the final automator ation in the above mentioned directory OR how can i add the already codesigned Automator action to the app properly so that codesigning doesn't fail.
Regards Pat
Upvotes: 1
Views: 752
Reputation: 5576
A bit better solution than Pat_Morita
${CONTENTS_FOLDER_PATH}/Library/Automator
(example Pixelmator)For correct behaviour app bundle has to be place in /Applications
Upvotes: 0
Reputation: 3545
Automator action
Main App
Test it
Upvotes: 1