# Problem compiling with XCode7 and iOS9: White Screen of Death. Please help us

**URL:** <https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644>\
**Category:** uncategorized\
**Created:** [September 17, 2015, 5:45pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644 "2015-09-17T17:45:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 17, 2015, 5:45pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/1 "2015-09-17T17:45:17Z")

</div>

Hello ionicers,

I just updated my iphone to iOS9 and I also upgraded to XCode7.

After reading this post, I applied this patch [https://gist.github.com/IgorMinar/863acd413e3925bf282c](https://gist.github.com/IgorMinar/863acd413e3925bf282c)

I added the JS file to my lib folder and I added the following line in my index.html bellow the Ionic bundle line:

```
<script src="lib/angular-ios9-uiwebview.js"></script>

```

I also added it to my angular module in app.js:

```
angular.module('your_app_name', [
  'ionic',
  'ngCordova',
  'ngIOS9UIWebViewPatch'
])

```

Now the result:

When I run: _ionic run ios -l --device_  
It compiles fine but gives me a big white page and no log, no error.

When I try with XCode the build Failed with the following error:  
_clang: error: linker command failed with exit code 1 (use -v to see invocation)_

Does anyone have the same issues?

Cheers,

Hervé

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [September 17, 2015, 5:51pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/2 "2015-09-17T17:51:12Z")

</div>

You may need to run `ionic platform rm ios && ionic platform add ios` just to be sure

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 17, 2015, 5:54pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/3 "2015-09-17T17:54:49Z")

</div>

Yes I did remove and add the iOS platform.

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 17, 2015, 5:56pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/4 "2015-09-17T17:56:37Z")

</div>

Here is the full error:

```
Ld /Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Products/Debug-iphoneos/Tree\ The\ World.app/Tree\ The\ World normal arm64
    cd /Users/herve76/Desktop/TreeTheWorld/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Products/Debug-iphoneos -F/Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Products/Debug-iphoneos -FTree\ The\ World/Plugins/com.googlemaps.ios -filelist /Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Intermediates/Tree\ The\ World.build/Debug-iphoneos/Tree\ The\ World.build/Objects-normal/arm64/Tree\ The\ World.LinkFileList -miphoneos-version-min=6.0 -dead_strip -fembed-bitcode-marker -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -framework AssetsLibrary /Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework GoogleMaps -framework Accelerate -framework AVFoundation -framework CoreBluetooth -framework CoreData -framework CoreLocation -framework CoreText -framework GLKit -framework ImageIO -lc++ -licucore -lz -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework Security -Xlinker -dependency_info -Xlinker /Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Intermediates/Tree\ The\ World.build/Debug-iphoneos/Tree\ The\ World.build/Objects-normal/arm64/Tree\ The\ World_dependency_info.dat -o /Users/herve76/Library/Developer/Xcode/DerivedData/Tree_The_World-gsvtdwfxmitsjwdbwbgpwumefhzv/Build/Products/Debug-iphoneos/Tree\ The\ World.app/Tree\ The\ World

ld: 'Tree The World/Plugins/com.googlemaps.ios/GoogleMaps.framework/GoogleMaps(GMSBillingPointRecorder.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 17, 2015, 6:05pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/5 "2015-09-17T18:05:37Z")

</div>

UPDATE: I was able to fix my XCode errors and now it compiles fine but act like the ionic run ios command. And it gives me an error:

```
2015-09-17 12:04:01.963 Tree The World[395:70721] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
2015-09-17 12:04:01.983 Tree The World[395:70553] Failed to load webpage with error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [September 17, 2015, 6:06pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/6 "2015-09-17T18:06:18Z")

</div>

Sounds like the google maps plugin is the cause of the problem?  
Try removing the plugin and see if it builds

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 17, 2015, 7:36pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/7 "2015-09-17T19:36:30Z")

</div>

After removing the google map plugins, I am still getting the same error.

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 17, 2015, 8:06pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/8 "2015-09-17T20:06:04Z")

</div>

This is how I fixed those issues.  
Find this file: platforms/ios/[your-app-name]/[your-app-name]-Info.plist

And add the following:

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>NSAppTransportSecurity</key>
    <dict>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
    </dict>

```

But the app is still running kind of slow with the ionic run command and the Xcode is only giving me a blank page with no error. It does not look like ionic is really ready for today’s Apple updates.

H

---

<div class="post-metadata">

**Author:** ![beckson](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@beckson](https://forum.ionicframework.com/u/beckson)\
**Post date:** [September 18, 2015, 12:59pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/9 "2015-09-18T12:59:31Z")

</div>

i also had the problem, added the patch to my project, it stay in the app splash.

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 18, 2015, 2:18pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/10 "2015-09-18T14:18:48Z")

</div>

Even after applying this quick patch, my apps is very slow and very buggy and it’s not because of my plugins. I removed all of them. Sometimes it hangs for no reason. No log, no error. The app never acted this way before the iOS9 update. The update obviously broke more than some $http redirects.

**Does Ionic plan to answer all those issues concerning the update with iOS9?**

**What’s the plan of action?**

H

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 18, 2015, 5:11pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/11 "2015-09-18T17:11:42Z")

</div>

The major issue on my side is the fact that the app is very very slow, randomly with no error. So it’s very hard to pinpoint the problem. For example, my app hangs for a few seconds before it even starts and some simple page like a login page will take forever to load, again for no reason.

**Am I the only one to experience those issues?**

---

<div class="post-metadata">

**Author:** ![colllin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/colllin/32/65111_2.png) [@colllin](https://forum.ionicframework.com/u/colllin)\
**Post date:** [September 18, 2015, 5:22pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/12 "2015-09-18T17:22:57Z")

</div>

I had a similar error (`... does not contain bitcode.`)

I found a solution here: [libGoogleAnalyticsServices.a(TAGDataProvider.o)' does not contain bitcode · Issue #148 · danwilson/google-analytics-plugin · GitHub](https://github.com/danwilson/google-analytics-plugin/issues/148)

> I just found a workaround by setting **Project \> Build Settings \> Build Options \> Enable Bitcode = No** , as mentioned by @aderowbotham in #136.

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 18, 2015, 5:53pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/13 "2015-09-18T17:53:02Z")

</div>

Thanks @colllin but does your app work like usual after fixing all the errors?

---

<div class="post-metadata">

**Author:** ![colllin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/colllin/32/65111_2.png) [@colllin](https://forum.ionicframework.com/u/colllin)\
**Post date:** [September 18, 2015, 7:27pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/14 "2015-09-18T19:27:17Z")

</div>

Yes, it eventually works the same.

I upgraded ionic lib and re-installed angular-resource, and various other upgrades since I haven’t touched this code in 6 months, but I didn’t need to change any of the app code.

---

<div class="post-metadata">

**Author:** ![beckson](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@beckson](https://forum.ionicframework.com/u/beckson)\
**Post date:** [September 19, 2015, 4:19am UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/15 "2015-09-19T04:19:10Z")

</div>

i had already fixed the problem, pls check your path file in your ios platform, perhapse it is not existed but added it.

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 19, 2015, 6:40pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/16 "2015-09-19T18:40:36Z")

</div>

@beckson which path? Which file?

---

<div class="post-metadata">

**Author:** ![beckson](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@beckson](https://forum.ionicframework.com/u/beckson)\
**Post date:** [September 21, 2015, 1:28pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/17 "2015-09-21T13:28:56Z")

</div>

confirm the angular-ios9-uiwebview.patch.js existed in the www folder in your xcode project.

---

<div class="post-metadata">

**Author:** ![herve76](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@herve76](https://forum.ionicframework.com/u/herve76)\
**Post date:** [September 21, 2015, 3:37pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/18 "2015-09-21T15:37:14Z")

</div>

My problem is not the patch. I can confirm it’s well installed and it is fixing the angular problem. But still, my app is much more slower than before I updated to iOS9. For example, after the splash screen, the first page used to take one second to load, now it takes around 10 seconds to load. Am I the only one to experience this slow experience issue?

---

<div class="post-metadata">

**Author:** ![beckson](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@beckson](https://forum.ionicframework.com/u/beckson)\
**Post date:** [September 21, 2015, 3:59pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/19 "2015-09-21T15:59:09Z")

</div>

It runs well in my project after the fixed. You can try to remove the splash plugin, or set the delay time to the default 3000ms.

---

<div class="post-metadata">

**Author:** ![hikumealan](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hikumealan/32/77803_2.png) [@hikumealan](https://forum.ionicframework.com/u/hikumealan)\
**Post date:** [September 22, 2015, 6:32pm UTC](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644/20 "2015-09-22T18:32:10Z")

</div>

I am seeing the same general slowness in the app running on iOS 9.

[Next page](https://forum.ionicframework.com/t/problem-compiling-with-xcode7-and-ios9-white-screen-of-death-please-help-us/32644.md?page=2)
