I stumbled across this in the documentation - https://developer.apple.com/documentation/foundation/bundle/1411412-url. I can't seem to get it to return anything for me.
In my Mac app Xcode project I added an executable to a copy files phase and set that phase Destination to "Executables". This seemed like the logical place to do it.
This did not get a url when calling Bundle.main.url(forAuxiliaryExecutable)
I want to pass this url to Process.executableURL
I am able to generate the apropriate URL by calling Bundle.main.bundleURL then .appendPathComponent("Contents/MacOS/excutable") but am just curious about this forAuxiliaryExecutable
Am I misunderstanding what this would be for?
Post
Replies
Boosts
Views
Activity
My macOS app (targeting Catalina only) uses camera, mic and screen recording. While developing the app the system asks me permission every time I rebuild and run the app. This does not happen on iOS. Is there anyway to prevent this?
Secondly when I distribute the app to other Macs, every build needs the consent re-affirmed. This doesn't seem like the way it should be.
What could I be doing wrong?