Closed jerrymarino closed 7 years ago
By default, the playground is compiled and executed under OSX. It should be able to build run for both iOS and OSX.
Read in the contents.xcplayground to determine an iOS ish invocation. Execute the program under the simulator for iOS.
contents.xcplayground
xcplayground stores the playground type in it's XML file which can be used to derive a base compiler invocation:
xcplayground
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <playground version='5.0' target-platform='ios'> <timeline fileName='timeline.xctimeline'/> </playground>
Note: simctl spawn will allow execution of the program in the background without booting up a simulator instance, so prefer this to save time
simctl spawn
By default, the playground is compiled and executed under OSX. It should be able to build run for both iOS and OSX.
Read in the
contents.xcplayground
to determine an iOS ish invocation. Execute the program under the simulator for iOS.xcplayground
stores the playground type in it's XML file which can be used to derive a base compiler invocation:Note:
simctl spawn
will allow execution of the program in the background without booting up a simulator instance, so prefer this to save time