swift - How to run a previously compiled version (or a previous build) of an Xcode project in ios 10.0 simulator -
i'm trying test 1 of apps on ios 10. have downloaded xcode 8 beta ships ios 10.0 simulator. however, expected, xcode 8 throwing tons of errors on libraries i'm using [like alamofire] preventing me building in xcode 8, don't feel need worry right now. i'm looking easy way run last stable compiled version (which can build within xcode 7 ios 9.3). unable trigger ios 10.0 simulator terminal via xcrun have used achieve similar things in past.
any guidance appreciated!
edit -- solved
i figured out way achieve looking for, interested.
in xcode7 go preferences > locations > , change command line tools xcode 8.0
in terminal, type
xcrun simctl list
see available simulators (ios 10.0 simulators should available now).copy udid of simulator want.
make sure normal simulator app not running, run
open /applications/xcode-beta.app/contents/developer/applications/simulator.app --args -currentdeviceudid <copied udid>
after desired simulator booted, run
xcrun simctl install booted <path project .app file>
(the path .app file can found in xcode on left pane, under main project, under folder "products" copy file path [project-name].app file located there)
this should install app onto desired simulator. did encounter errors first few times tried this. got around them quitting simulator.app , trying again (worked me on fourth try).
Comments
Post a Comment