Reputation: 41
I am trying to run myApp.xcodeproj
in Xcode on my Phone, and I get the following errors:
- ERROR Internal navigation rejected -
<allow-navigation>
not set forurl='about:blank'
- ERROR: Start Page at
'www/index.html'
was not found.
The app builds successfully in VSCode, I just cannot run it on my phone in XCode.
I have already tried the following:
- Installing the latest version of Cordova, Ionic
- Used <allow-navigation href="*" />
in both config.xml
files
I expect this to work properly.
Upvotes: 1
Views: 1290
Reputation: 11
As pointed out in the comments, ionic cordova platform adds ios
will only download the needed tools for iOS.
To build the www directory, run ionic cordova prepare ios
after adding the platform.
According to the docs, ionic cordova prepare ios does the following:
Perform an Ionic build, which compiles web assets to www/. Copy the www/ directory into your Cordova platforms. Transform config.xml into platform-specific manifest files. Copy icons and splash screens from resources/ to into your Cordova platforms. Copy plugin files into specified platforms.
Upvotes: 1