Hello again!
I'm trying to install our company's app to the Xcode iOS simulator via a script that essentially just runs xcrun simctl install booted [Path and App]
however, as I'm finding out Jamf runs every command/script as sudo which is breaking this command. If I run sudo xcrun simctl install booted [Path and App]
just in the command line I'm told No devices are booted.
but the simulator is booted and I'm staring right at it.
I can always create a new package by installing Xcode then our app to the simulator, however that package ends up being over 6GB and at the end of the day not efficient. So we want to install the new version of the app in the existing simulator.
Is there a way to tell Jamf not to run the command with sudo
?
Here's what I've tried so far:
- Write a script that just runs xcrun simctl install booted [Path and App]
- this works in the command line but fails when pushed out via policy.
- Write a non-compiled AppleScript that runs xcrun simctl install booted [Path and App]
- Script Editor runs the script and it works, fails with the No devices are booted.
error via policy.
- Created a policy with the Files and Processes payload with xcrun simctl install booted [Path and App]
as the Execute Command but again, it runs as root and I get No devices are booted.
.
Thanks for any help!