Hm, tried setting the plugin and that didn’t help for me; neither did additionally removing my CSP line. Still no good, here.
Same problem here with the captain. If you start try to execute the project with Xcode you’ll likely get the following error: “Failed to load webpage with error: Not allowed to use restricted network port”
… trying to figure out how to get that sorted now.
I’m now on at this stage: Live Reload Error: Failed to load webpage with error
same problem here… using El Capitan and ios 9.
I’m blocked… I can’t work
I believe I am running into the same thing as people in this thread:
- working code with respect to file handling in Xcode 6.
- under xcode 7 and any simulator or device I can 't view local pictures anymore. Error: “not allowed to load local resource”
I have done everything the internet suggest so far: whitelisting plugin, whitelist in angular, Content-security policy. I can 't work like this. Has anyone come up with a solution yet?
OK, I got it to work by deinstallign a plugin that I used to overcome my IOS 9 problems(https://github.com/Telerik-Verified-Plugins/WKWebView).
what is the steps to do it?
I have the same problem as @RangerRick, except mine fails on both simulator and device when the
-l option is set. The error message is:
Failed to load webpage with error: The operation couldn’t be completed. No such file or directory.
Environment: El Capitan, Xcode 7.0.1 and iOS 9.0.2.
In my case, the “ionic build ios” quits right after JSHINT. Android build work fine. ANY idea of this issue? The cordova/xcode build is not even running for IOS.
And yes, I tried this on 2 different iMac’s and my Macbook Pro.
Same issue here since i installed el capitan… Anybody found the magic solution?
@mib200: Which node version are you using? I had problems with the newest node.js 4.0 but since downgrading to 0.12.7 building works fine again.
I was having the same problems as everyone else. Was working fine when I added to the p.list file, then updated to El Capitan and everything was back to blank screen.
I FOUND A SOLUTION:
Go to Xcode and download the 8.4 version of iOS Simulator
XCode > Preferences > Downloads > select 8.4 simulator
Go to iOS Simulator
Hardware > Device > Manage Devices > remove the devices that use iOS9
I know its not the best solution, but it will do until they find a fix for this iOS9 Simulator issue
Updated to El Capitan and now iOS9 doesn’t work anymore with services running on the local address…
And Ionic is also a service running on the local address.
So one solution could be downgrading the iOS version as suggested by outfitpic till this is fixed.
But a work around (not yet tested since i don’t know if it is possible) could be running Ionic from a different (internal) host.
This is also the reason why Seeni suggested in this topic VPN was working for him.
Because you are connecting to Ionic from a different IP than your own local IP.
To be clear, it is not related to the App Transport Security, and yes you also need to enable this but it will NOT solve connecting to your simulator’s local IP address.
Also, when installing iOS 8.4 you could run into another issue with El Capitan (Failed to install) you can find a solution here.
Hope this helps people who are also searching the Web in frustration
Also, could someone open a Bug report at Apple?
I currently do not own (myself) a dev account @ Apple.
This works, thanks! Alternatively to deleting iOS9 devices, just select Hardware > Devices > iOS 8.4 then tap to launch the app.
It’s working for me as well rather than updating Info.plist file. No need to delete any emulator, but I wonder if it is possible to set a default device/iOS version to emulate or set the right device/iOS version when emulating with livereload.
So far, listing the devices in my system (
OSX 10.10.5) I get:
iPhone-4s, 8.4 iPhone-4s, 9.1 iPhone-5, 8.4 iPhone-5, 9.1 iPhone-5s, 8.4 iPhone-5s, 9.1 iPhone-6, 8.4 iPhone-6, 9.1 iPhone-6-Plus, 8.4 iPhone-6-Plus, 9.1 iPad-2, 8.4 iPad-2, 9.1 iPad-Retina, 8.4 iPad-Retina, 9.1 iPad-Air, 8.4 iPad-Air, 9.1 iPhone-6s, 9.1 iPhone-6s-Plus, 9.1 iPad-Air-2, 9.1 iPad-Pro, 9.1 Apple-TV-1080p, tvOS 9.0 Apple-Watch-38mm, watchOS 2.0
But, if in fact I can successfully run
ionic emulate -l -c --target='iPhone-5s' --debug ios, then changing from 9.1 to 8.4 emulator iOS version, running
ionic emulate -l -c --target='iPhone-5s, 8.4' --debug ios outs:
(...) Running command: /Users/telekosmos/DevOps/phonegap/lodashdb/platforms/ios/cordova/run --emulator --debug "--target=iPhone-5s, 8.4" iPhone-5s, 8.4 is not a valid target for emulator Error: /Users/telekosmos/DevOps/phonegap/lodashdb/platforms/ios/cordova/run: Command failed with exit code 2 at ChildProcess.whenDone (/Users/telekosmos/.nvm/versions/node/v0.12.7/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) (...)
Any chance to set the version along with the device?
Check out the issue here, there may be a way to get Cordova to use the full list from
ios-sim showdevicetypes: https://github.com/driftyco/ionic-cli/issues/317
For anyone still interested, this has been fixed in the newest Cordova iOS platform release (3.9.2).
This did not work I updated my ios as instructed in the link the splash page is still going round and round and app is not coming up