# Xcode 6 + iOS 7.1 sim slowness?

**URL:** <https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242>\
**Category:** Support\
**Created:** [October 31, 2014, 8:13pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242 "2014-10-31T20:13:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vicwomg](https://discuss.appium.io/user_avatar/discuss.appium.io/vicwomg/32/5195_2.png) [@vicwomg](https://discuss.appium.io/u/vicwomg)\
**Post date:** [October 31, 2014, 8:13pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/1 "2014-10-31T20:13:03Z")

</div>

Anyone noticing that Appium 1.3.1 + the iOS 7.1 sim runs tests much slower? When I compare to iOS 8, the same test runs the same test about 2x slower.

You can see the delays between the calls in the appium logs. Seems like the responses are not coming back from instruments as quickly.

Seems like it could be an Apple thing, but I just want to make sure it’s not just me.

---

<div class="post-metadata">

**Author:** ![SquareTheBase](https://discuss.appium.io/user_avatar/discuss.appium.io/squarethebase/32/4312_2.png) [@SquareTheBase](https://discuss.appium.io/u/SquareTheBase)\
**Post date:** [January 6, 2015, 7:37pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/2 "2015-01-06T19:37:12Z")

</div>

Just moved into Xcode6 with Appium 1.3.4 - its very slow with iOS sim 7.1.

Switched back to Xcode5 using the same Appium and its fast again.

Am I missing something with the Appium setup?

---

<div class="post-metadata">

**Author:** ![tmysko](https://discuss.appium.io/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@tmysko](https://discuss.appium.io/u/tmysko)\
**Post date:** [January 14, 2015, 10:04am UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/3 "2015-01-14T10:04:52Z")

</div>

The same situation here.  
The test are running slowly on native part.  
Performance reductions is about 2 times.

Lets hope it will be fixed for IOS 8.2

---

<div class="post-metadata">

**Author:** ![SquareTheBase](https://discuss.appium.io/user_avatar/discuss.appium.io/squarethebase/32/4312_2.png) [@SquareTheBase](https://discuss.appium.io/u/SquareTheBase)\
**Post date:** [February 24, 2015, 10:26pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/4 "2015-02-24T22:26:21Z")

</div>

Has anyone found a workaround to getting iOS7.1 simulators to not be slow when using XCode6?

---

<div class="post-metadata">

**Author:** ![vicwomg](https://discuss.appium.io/user_avatar/discuss.appium.io/vicwomg/32/5195_2.png) [@vicwomg](https://discuss.appium.io/u/vicwomg)\
**Post date:** [February 24, 2015, 10:50pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/5 "2015-02-24T22:50:21Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![SquareTheBase](https://discuss.appium.io/user_avatar/discuss.appium.io/squarethebase/32/4312_2.png) [@SquareTheBase](https://discuss.appium.io/u/SquareTheBase)\
**Post date:** [February 24, 2015, 11:16pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/6 "2015-02-24T23:16:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vicwomg](https://discuss.appium.io/user_avatar/discuss.appium.io/vicwomg/32/5195_2.png) [@vicwomg](https://discuss.appium.io/u/vicwomg)\
**Post date:** [February 24, 2015, 11:46pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/7 "2015-02-24T23:46:22Z")

</div>

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 😄

---

<div class="post-metadata">

**Author:** ![maxmohash](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@maxmohash](https://discuss.appium.io/u/maxmohash)\
**Post date:** [October 9, 2015, 8:37pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/8 "2015-10-09T20:37:19Z")

</div>

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](https://github.com/facebook/FBSimulatorControl) now which I think they use for their tests.

Check the issues list here --\> [https://github.com/facebook/instruments-without-delay/issues](https://github.com/facebook/instruments-without-delay/issues)

I am not sure about workaround that works currently and reliably.

---

<div class="post-metadata">

**Author:** ![vicwomg](https://discuss.appium.io/user_avatar/discuss.appium.io/vicwomg/32/5195_2.png) [@vicwomg](https://discuss.appium.io/u/vicwomg)\
**Post date:** [October 9, 2015, 9:06pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/9 "2015-10-09T21:06:05Z")

</div>

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:

> <https://github.com/facebookarchive/instruments-without-delay/pull/18>

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**:

> <https://gist.github.com/lawrencelomax/03da6538a0cce1b60c47/>

---

<div class="post-metadata">

**Author:** ![DexRobinson](https://discuss.appium.io/letter_avatar_proxy/v4/letter/d/7ba0ec/32.png) [@DexRobinson](https://discuss.appium.io/u/DexRobinson)\
**Post date:** [October 14, 2015, 6:02pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/10 "2015-10-14T18:02:36Z")

</div>

Thank you for these steps. I was able to remove the delay in my scripts. After about 2 weeks of this slowness I was going out of my mind.

---

<div class="post-metadata">

**Author:** ![alangithubtrader](https://discuss.appium.io/user_avatar/discuss.appium.io/alangithubtrader/32/1135_2.png) [@alangithubtrader](https://discuss.appium.io/u/alangithubtrader)\
**Post date:** [October 15, 2015, 9:19pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/11 "2015-10-15T21:19:42Z")

</div>

@vicwomg,

Thank you so much for sharing this with us.

I am giving this a go as I usually run my tests on an actual device.

Any idea if this sort of optimization can be apply to an actual iOS device in the future?

Best Regards,  
Alan

---

<div class="post-metadata">

**Author:** ![alangithubtrader](https://discuss.appium.io/user_avatar/discuss.appium.io/alangithubtrader/32/1135_2.png) [@alangithubtrader](https://discuss.appium.io/u/alangithubtrader)\
**Post date:** [October 22, 2015, 10:35pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/12 "2015-10-22T22:35:58Z")

</div>

Thank you very much for sharing this. This works for me and now my tests are running 3X faster. 🙂

---

<div class="post-metadata">

**Author:** ![lillian\_ymw](https://discuss.appium.io/letter_avatar_proxy/v4/letter/l/e5b9ba/32.png) [@lillian\_ymw](https://discuss.appium.io/u/lillian_ymw)\
**Post date:** [December 22, 2015, 10:48pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/13 "2015-12-22T22:48:12Z")

</div>

> [@vicwomg](#):
>
> LaunchDaemons/com.apple.instruments.deviceservice.plist

can I say you are my life saver!!! thank yo so much!!!

---

<div class="post-metadata">

**Author:** ![appiumfan](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@appiumfan](https://discuss.appium.io/u/appiumfan)\
**Post date:** [January 22, 2016, 10:03am UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/14 "2016-01-22T10:03:03Z")

</div>

Hi, did you try on simulator only or it’s benefit to both simulator and iOS devices? Thanks

---

<div class="post-metadata">

**Author:** ![alangithubtrader](https://discuss.appium.io/user_avatar/discuss.appium.io/alangithubtrader/32/1135_2.png) [@alangithubtrader](https://discuss.appium.io/u/alangithubtrader)\
**Post date:** [January 22, 2016, 11:02pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/15 "2016-01-22T23:02:24Z")

</div>

Simulator only.

Anyone else got this working with no delay on a device? I am always wondering.

---

<div class="post-metadata">

**Author:** ![jitendra\_l](https://discuss.appium.io/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@jitendra\_l](https://discuss.appium.io/u/jitendra_l)\
**Post date:** [January 30, 2016, 6:57am UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/16 "2016-01-30T06:57:43Z")

</div>

My test cases are executing very slow in simulator after updating xcode…

Simulator : 9.2  
Xcode : 7.2  
OS X EI Capitan

Can any one help me on this??

---

<div class="post-metadata">

**Author:** ![jitendra\_l](https://discuss.appium.io/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@jitendra\_l](https://discuss.appium.io/u/jitendra_l)\
**Post date:** [January 30, 2016, 6:58am UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/17 "2016-01-30T06:58:18Z")

</div>

@alangithubtrader  
Is it working for you on simulator ?

---

<div class="post-metadata">

**Author:** ![alangithubtrader](https://discuss.appium.io/user_avatar/discuss.appium.io/alangithubtrader/32/1135_2.png) [@alangithubtrader](https://discuss.appium.io/u/alangithubtrader)\
**Post date:** [February 1, 2016, 6:08pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/18 "2016-02-01T18:08:41Z")

</div>

> [@Running test very slow using ios simulator?](https://discuss.appium.io/t/running-test-very-slow-using-ios-simulator/7920/7):
>
> My Setup: iOS 9.2 Xcode 7.2 Appium 1.4.13 When you build, did you point to the right version of simluator? i.e. 9.2 in your case? I had the same issue when I pointed to, i.e. 9.1 but i launch a 9.2 simluator and hence I see no increase in test run performance Pay attention to this when you ./build.sh SDKROOT = iphonesimulator9.1

Please refer to this link i recently posted.

---

<div class="post-metadata">

**Author:** ![Jitu1888](https://discuss.appium.io/user_avatar/discuss.appium.io/jitu1888/32/7269_2.png) [@Jitu1888](https://discuss.appium.io/u/Jitu1888)\
**Post date:** [October 26, 2016, 3:04pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/19 "2016-10-26T15:04:53Z")

</div>

[safe.log](https://discuss.appium.io/uploads/default/original/2X/8/815d1c4dddbb26a3ac9dbfda79dbfbd8815c9f58.log) (1.6 MB)

---

<div class="post-metadata">

**Author:** ![Jitu1888](https://discuss.appium.io/user_avatar/discuss.appium.io/jitu1888/32/7269_2.png) [@Jitu1888](https://discuss.appium.io/u/Jitu1888)\
**Post date:** [October 26, 2016, 3:05pm UTC](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242/20 "2016-10-26T15:05:33Z")

</div>

Need a urgent help . I am not able to run the scripts on real device

[Next page](https://discuss.appium.io/t/xcode-6-ios-7-1-sim-slowness/1242.md?page=2)
