question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic 4: Build for ios emulator missing files

See original GitHub issue

Description: Running v4.0.0=alpha 7, when I do ionic cordova emulate ios, the build process appears to occur correctly. The emulator launches, the app is started, splash screen appear, then the white screen of doom.

Connecting Safari and reloading the app, the console reports missing files.

Ionic serve is working fine.

Steps to Reproduce: ionic cordova emulate ios

The ios platform has been removed and readded.

Output:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (runtime.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cordova.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (polyfills.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (styles.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (vendor.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (main.js, line 0)

My ionic info:

cli packages: (/usr/local/lib/node_modules)

   @ionic/cli-utils  : 2.0.0-rc.6
   ionic (Ionic CLI) : 4.0.0-rc.6

global packages:

   cordova (Cordova CLI) : 8.0.0

local packages:

   @angular-devkit/core       : 0.6.0
   @angular-devkit/schematics : 0.6.0
   @angular/cli               : 6.0.1
   @ionic/schematics-angular  : 1.0.0-rc.6
   Cordova Platforms          : android 7.0.0 ios 4.5.4
   Ionic Framework            : @ionic/angular 4.0.0-alpha.7

System:

   Android SDK Tools : 26.1.1
   ios-deploy        : 1.9.1
   ios-sim           : 6.0.0
   NodeJS            : v8.11.1
   npm               : 6.0.1
   OS                : OS X El Capitan
   Xcode             : Xcode 8.0 Build version 8A218a

Environment Variables:

   ANDROID_HOME : /Users/chrisgriffith/Documents/android-sdk-macosx

Other Information:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
dariedorluscommented, Sep 27, 2018

@parthnayak7448 I was having the same issue and scratching my head for 2 days. I ran ionic info and found out that the webview plugin never got updated. I had to remove it and add it again.

Try cordova plugin rm cordova-plugin-ionic-webview then cordova plugin add cordova-plugin-ionic-webview@latest. Run cordova plugin ls and make sure the webview is 2.X

1reaction
parthnayak7448commented, Sep 9, 2018

after adding beta plugin still, I am facing issue is there any solutions to this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic build fails Info.plist not found - Stack Overflow
Info.plist is a file which is a must for an ios app to build, please check manually by going to your project location...
Read more >
Publishing Your Android or iOS App in Google Play & App Store
Now that you have a working Android or iOS app, it's time to publish in the Google Play or iTunes App Store! Follow...
Read more >
ld: building for iOS Simulator, but linking in dylib built for iOS
Hi, I'm trying to compile the app with Xcode version 12.0 beta 6 on a simulator with iOS 14.0 and then I get...
Read more >
The 9 Most Common Mistakes That Ionic Developers Make
Yes, you could commit the platforms and plugins folders, but it is not recommended. When using Ionic CLI to install platforms ionic platform...
Read more >
Xcode 12, building for iOS Simulator, but linking in object file ...
Open your project in Xcode 12 and click on the targets · Navigate to Build Settings of your project. · Add Any iOS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found