# Launch delay on iOS

**URL:** <https://forums.fusetools.com/t/launch-delay-on-ios/4148>\
**Category:** Bug Reports\
**Created:** [September 28, 2016, 4:13pm UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148 "2016-09-28T16:13:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![atish](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@atish](https://forums.fusetools.com/u/atish)\
**Post date:** [September 28, 2016, 4:13pm UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148/1 "2016-09-28T16:13:56Z")

</div>

[Running fuse 0.26.0 on iOS 10 on an iPhone 6 (developing on OS X El Capitan)]

I have a small, pretty trivial, two page dummy app ([Attached ZIP file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/Kpvn0CuOu5CO-image-1475078895565.zip). I’ve built it using `fuse build -t=ios -adebug`. I’ve noticed that when I run the app, sometimes there’ll be a non-trivial delay between the time I tap the icon and the time the app loads.

I’ve recorded an example and attached below. You’ll notice the icon going a bit darker about 2.5s into the clip. That’s when I’ve tapped the icon to open the app. There’s like a good 1.5s to 2s delay before the app actually opens. Sometimes that delay is up to 4s. It’s inconsistent, though…sometimes there’s no delay.

- [Attached MOV file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/gFCAl3911gbd-image-1475079130327.mov)

Any idea how to avoid that delay or what’s going on to cause it? Are other users experiencing similar delays?

P.S. - I’ve also tried explicitly adding launch images to the unoproj file, but that doesn’t seem to help. There’s still a delay before bringing up the launch image.

---

<div class="post-metadata">

**Author:** ![Olle\_Fredriksson](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Olle\_Fredriksson](https://forums.fusetools.com/u/Olle_Fredriksson)\
**Post date:** [September 29, 2016, 8:25am UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148/2 "2016-09-29T08:25:08Z")

</div>

Hey Atish, and thanks for your report!

Does the delay disappear if you stop the Xcode debugger, disconnect your device from the computer, and start the app again? I tried your app and that does the trick for me. We’ve seen this problem occasionally in the past, and the solution has been to stop the debugger. See [this post on Stackoverflow](http://stackoverflow.com/questions/9357026/super-slow-lag-delay-on-initial-keyboard-animation-of-uitextfield) for more info.

If that doesn’t solve your problem we’ll have to do a more in-depth investigation.

Cheers!

---

<div class="post-metadata">

**Author:** ![atish](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@atish](https://forums.fusetools.com/u/atish)\
**Post date:** [September 29, 2016, 1:33pm UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148/3 "2016-09-29T13:33:39Z")

</div>

The delay is still there once I’ve disconnected from my computer.

---

<div class="post-metadata">

**Author:** ![Olle\_Fredriksson](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Olle\_Fredriksson](https://forums.fusetools.com/u/Olle_Fredriksson)\
**Post date:** [October 3, 2016, 12:50pm UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148/4 "2016-10-03T12:50:27Z")

</div>

Hey again!

I’m trying to replicate your setup but haven’t been able to reproduce the issue yet.

After some detective work (googling Stackoverflow), I found [this](http://stackoverflow.com/questions/29589285/why-ios-apps-signed-with-development-or-enterprise-certificates-launch-slower). Could that be it? That is, do you have a large number of provisioning profiles installed on your device? Apparently that can cause slowdowns similar to what you describe.

---

<div class="post-metadata">

**Author:** ![atish](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@atish](https://forums.fusetools.com/u/atish)\
**Post date:** [October 3, 2016, 3:24pm UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148/5 "2016-10-03T15:24:52Z")

</div>

Olle,

Awesome find!! I think it was the fact that I had too many provisioning profiles. I just deleted all of them, re-installed the app and consistently get an immediate launch!

I think this can be resolved. However, it would be good to understand why only my Fuse apps were afflicted with this delay. I have other apps I have (or am in the process of developing) that use the same profiles and they launch without delay.

Thanks again for the find!

---

<div class="post-metadata">

**Author:** ![Olle\_Fredriksson](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Olle\_Fredriksson](https://forums.fusetools.com/u/Olle_Fredriksson)\
**Post date:** [October 3, 2016, 3:32pm UTC](https://forums.fusetools.com/t/launch-delay-on-ios/4148/6 "2016-10-03T15:32:09Z")

</div>

That’s great!

I have no idea why it was affecting the Fuse app specifically (I don’t think I’ve even seen an app affected by this), but will mark this as resolved anyway.

Thanks again for the report and see you in the other thread. 🙂
