packaging Xcode simulators

robertojok
Contributor

Has anyone got a quick method to package Xcode simulators... I relied on a script by erikng (https://github.com/erikng/scripts/tree/master/makexcodesimulators) which worked fine for quite a while but lately it is failing with an error

(Downloading https://devimages-cdn.apple.com/downloads/xcode/simulators/index-8.3.2-DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C.dvtdownloadableindex to index-8.3.2-DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C.dvtdownloadableindex...
Error reading /var/folders/b9/gl4l6xv15vjdly5hmzpwb7jm0000gn/T/tmpGaWXTT/index-8.3.2-DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C.dvtdownloadableindex: not well-formed (invalid token): line 1, column 9)

I am assuming something has changed probably the downloads link... any other way to package the simulators will be great...

1 REPLY 1

mertala
New Contributor II
Hi Robert, after struggling for a long time about the same issue, I found a solution as follows: Xcode positions 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.

Hope this helps,
Mert.