Thanks for your response. It inspired me to start over and create a demo project so that I could give you a simple example of exactly what was happening... and of course the demo project is working fine... dmgs are created and notarized by the post archive script without requiring that Xcode has full disk access.
I'm now in slow process of trying to figure what in the world is different between my real project and demo.
Will report back when I figure more what is going on.
What is /Volumes/Bike in this context?
I'm pretty sure it's something that hdiutil create
is doing. My guess (without much actual knowledge) is that:
- My post archive script has access to /tmp, because it's able to create file/directories there
hdiutil create
creates an empty Bike.dmg file (I see this temporary show in the finder)hdiutil create
then mounts that Bike.dmg file as Volumes/Bike
- When
hdiutil create
tries to copy content to that volume it fails because my script doesn't have access to that mounted volume?