Our current workaround is to maintain different versions of Xcode. We install them under /Applications/ using a version suffix (ex. “Xcode-5.1.app”) and switch between them using a script (see below) before relevant CI jobs. Unfortunately, I do not know of a better way.
#switchXcode.sh
version=""
if [ ! -z $1 ] ; then
version="-$1"
fi
cmd="sudo xcode-select -switch /Applications/Xcode$version.app/"
echo $cmd
$cmd
Thanks - but we dont support building our app with Xcode5 so I can’t switch the compiler. I need to be able to run iOS7 simulators from XCode6.
I assume your response means that you also see the delay in iOS7 with Xcode6? This seems like an instruments delay issue that the Appium folks fixed for us a while back.
We build and compile our app in Xcode 6 and it runs in the Xcode 5 simulator when we switch back for appium tests, so if you haven’t tried it yet it’s worth a shot.
And yes, I see the same delay. In fact, I am the original poster of this issue
Facing same issue with XCode 7 and iOS 9 Sims now. This is due to facebook instruments-without-delay not supported for XCode 7. I am not sure if they will continue to support this as they have this --> https://github.com/facebook/FBSimulatorControl now which I think they use for their tests.
Folks, looks like there’s an active pull request for the fix for this, but fb is disowning instruments-without-delay and recommending that someone just forks the project. I have tried the fix and it works, but it’s a bit hairy since new permissions issues in Xcode 7 require some plist editing to work.
Source:
I took notes of my steps to implement it the fix:
cd ~
git clone https://github.com/lawrencelomax/instruments-without-delay.git
cd instruments-without-delay/
git checkout xcode7-quirks
./build.sh
Next, you’re going to want to edit the plist file at: /Applications/Xcode-7.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/LaunchDaemons/com.apple.instruments.deviceservice.plist
And replace it with the one from the url below. Be sure to replace the paths ("/Users/lawrencelomax/src") with your own build dirs: