Xcode-download iOS simulators bypass entering admin password

Andy_Hsu
New Contributor

Hello Guys,
As title ,We encounter this question very similar to this post 
https://community.jamf.com/t5/jamf-pro/xcode-running-as-a-non-admin/m-p/211456
Cus we have to remove admin right form users, so we're using script to solve most issues on Xcode like license agree ,add users to _developers and something like that.
But when we want to download iOS simulators ,it prompt out a window "Xcode is trying to install apple software"and ask for admin password.
We've tried the solution mentioned in that post, but encounter a error when extracting the payload of the .pkg .
Is there any method that we can solved this by script or other way?
Thank you guys for reading and answering this post.
*We're testing with Xcode12 on MacOS 10.15


1 ACCEPTED SOLUTION

honestpuck
Contributor

Andy,

Look at my repo: https://github.com/Honestpuck/developer_tools and there are some useful tools including a way to install the iOS simulators through a Jamf Pro script and policy. The secret is the tool 'xcode-install' which lets you do that sort of stuff.

View solution in original post

3 REPLIES 3

honestpuck
Contributor

Andy,

Look at my repo: https://github.com/Honestpuck/developer_tools and there are some useful tools including a way to install the iOS simulators through a Jamf Pro script and policy. The secret is the tool 'xcode-install' which lets you do that sort of stuff.

Hi Honestpuck,

Thank you for your scripts!
But for some security reason , we're not allowed to use Xcode-install.
And we finally figure out the solution mentioned in this post
https://community.jamf.com/t5/jamf-pro/xcode-running-as-a-non-admin/m-p/211456

mertala
New Contributor II

Hi Andy,

Here is the solution that we use:

Xcode puts the simulators you have installed under /Library/Developer/CoreSimulator/Profiles/Runtimes. You can directly drag and drop the simruntime you want to pack to Jamf Composer. In this way, when you put it in the self-service portal, it will copy the simruntime file to the same directory in the end user and the user will be able to use the simulator.

PS. Since you are copying the opened packages, the process on the self-service may take a little longer. It is worth mentioning this in the self-service description pane.

Hope this helps,

Mert.