ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Xcode can't find index.html

Open gtzinos opened this issue 9 years ago • 3 comments

Steps to reproduce:

  1. Clone project
  2. npm install
  3. ionic cordova platform add ios
  4. open xcode
  5. run app

It returns me error that can't find index.html. As a workaround i executed:

  1. ionic serve
  2. stop serve
  3. ionic cordova platform rm ios
  4. ionic cordova platform add ios

FInally index.html and assets created successfully.

gtzinos avatar Sep 03 '17 15:09 gtzinos

You're not doing an Ionic (web asset) Build. If you want to use Xcode for running your app, you need to run ionic build each time before running your app in Xcode.

Alternatively, ionic cordova run ios will run an Ionic Build for you.

imhoffd avatar Sep 05 '17 21:09 imhoffd

@gtzinos @dwieeb ionic cordova run ios don't fix for me. bash displays "BUILD SUCCEEDED", but a white screen is displayed after splash with error cannot get [path to] myApp.app/index.html Thanks

VlnRbn avatar Aug 13 '18 09:08 VlnRbn

I'm getting the same error, anyone managed how to fix it?

franciscolopeztamagno avatar Sep 10 '19 16:09 franciscolopeztamagno