Unable to start app on ios with Ionic 4

Hi.

Recently I have started a v4 Angular project and it work fine on Android.

My problem is with iOS(emulator and real devices) With cordova-ios@4.5.5 with old build method and also with cordova-ios@5.0.0 If i build without —livereload param the app not starts.

XCode when deploy to emulator/device shows this log on console:

2019-04-03 18:09:06.814364+0200 Andamur Flotas[1198:435969] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/FC7DCC56-24B2-473F-81AE-B9EA7E54EBA1/Library/Cookies/Cookies.binarycookies
2019-04-03 18:09:06.951597+0200 Andamur Flotas[1198:435969] Apache Cordova native platform version 5.0.0 is starting.
2019-04-03 18:09:06.951892+0200 Andamur Flotas[1198:435969] Multi-tasking -> Device: YES, App: YES
2019-04-03 18:09:07.049401+0200 Andamur Flotas[1198:435969] Using UIWebView
2019-04-03 18:09:07.067267+0200 Andamur Flotas[1198:435969] [CDVTimer][console] 0.182033ms
2019-04-03 18:09:07.067756+0200 Andamur Flotas[1198:435969] [CDVTimer][handleopenurl] 0.283957ms
2019-04-03 18:09:07.072527+0200 Andamur Flotas[1198:435969] Unlimited access to network resources
2019-04-03 18:09:07.072765+0200 Andamur Flotas[1198:435969] [CDVTimer][intentandnavigationfilter] 4.910946ms
2019-04-03 18:09:07.073170+0200 Andamur Flotas[1198:435969] [CDVTimer][gesturehandler] 0.326991ms
2019-04-03 18:09:07.109893+0200 Andamur Flotas[1198:435969] [CDVTimer][file] 36.561966ms
2019-04-03 18:09:07.111047+0200 Andamur Flotas[1198:435969] CDVIonicKeyboard: resize mode 1
2019-04-03 18:09:07.112834+0200 Andamur Flotas[1198:435969] CDVIonicKeyboard: WARNING!!: Keyboard plugin works better with WK
2019-04-03 18:09:07.113219+0200 Andamur Flotas[1198:435969] [CDVTimer][keyboard] 2.927065ms
2019-04-03 18:09:07.131216+0200 Andamur Flotas[1198:435969] [CDVTimer][splashscreen] 17.823100ms
2019-04-03 18:09:07.146374+0200 Andamur Flotas[1198:435969] [CDVTimer][statusbar] 14.943004ms
2019-04-03 18:09:07.146529+0200 Andamur Flotas[1198:435969] [CDVTimer][TotalPluginStartup] 80.250025ms
2019-04-03 18:09:09.563758+0200 Andamur Flotas[1198:435969] Resetting plugins due to page load.
2019-04-03 18:09:09.596020+0200 Andamur Flotas[1198:435969] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
2019-04-03 18:09:09.597815+0200 Andamur Flotas[1198:435969] Resetting plugins due to page load.
2019-04-03 18:09:10.343162+0200 Andamur Flotas[1198:436045] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.345631+0200 Andamur Flotas[1198:436046] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.347817+0200 Andamur Flotas[1198:436045] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.350082+0200 Andamur Flotas[1198:436046] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.352304+0200 Andamur Flotas[1198:436054] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.355964+0200 Andamur Flotas[1198:436045] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.359313+0200 Andamur Flotas[1198:436046] NSURLConnection finished with error - code -1100
2019-04-03 18:09:10.371320+0200 Andamur Flotas[1198:435969] Finished load of: file:///var/containers/Bundle/Application/5B8C1194-88B4-441B-9FCA-025C618B1E33/Andamur%20Flotas.app/www/index.html

My ionic-info shows this:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.2
@angular-devkit/build-angular : 0.13.7
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.7
@ionic/angular-toolkit : 1.4.1

Cordova:

cordova (Cordova CLI) : 7.0.1
Cordova Platforms : android 7.1.4, ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 9 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/juanramos/Library/Android/sdk)
ios-deploy : 1.9.2
ios-sim : 7.0.0
NodeJS : v9.9.0 (/usr/local/bin/node)
npm : 5.7.1
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61
``
If i build/run with —livereload works fine


What would be wrong?

Someone has any idea?

have the same error, you fixed it?

I also have this issue which appeared out of nowhere. Any help appreciated

Try remove “cordova-plugin-ionic-webview” plugin:

ionic cordova plugin remove cordova-plugin-ionic-webview --save

same error here (NSURLConnection error 1100 while running ionic app on iOS) … just saw your thread

My project does not have cordova-plugin-ionic-webview installed

Had the same issue and after quite a bit struggle and R&D this is what worked for me.

Seems like relative path is taken by IOS so in your src -> index.html please change this
base href="/"
to
base href="./" (note dot at the beginning of the /)

this will load all the relevant js files (cordova.js, polyfill.js etc.)

the 1100 errors are files not being found due to absolute path.

I tried this, but some of my assets (images) cannot be found. Something must go wrong while building for iOS.

Does someone have any idea?

find this solution: