Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

iOS 9 without local webserver #127

Closed
tuomaslaa opened this issue Jul 6, 2015 · 20 comments
Closed

iOS 9 without local webserver #127

tuomaslaa opened this issue Jul 6, 2015 · 20 comments

Comments

@tuomaslaa
Copy link

It seems that iOS 9 will support loadfileURL method so the local webserver will not be needed anymore.

@clauderic
Copy link

I personally can't even build to iOS 9 with the latest XCode 7 beta and WKWebView :/ Had to set ENABLE_BITCODE to no to get it to build, and then it just showed a blank page when I tried launching the app

@LukePulverenti
Copy link

It works fine here in iOS9, although I would also like to see some of the new improvements taken advantage of.

@clauderic
Copy link

The app works fine in iOS9 if it was built with XCode 6.

However, when building with XCode 7, I get an error prompting me to disable ENABLE_BITCODE, otherwise it fails to build. When I do so, it builds, but the app just shows a blank screen when I run it

@nitzanwilnai
Copy link

+1 to what clauderic said. Sometimes I get a blank page, lately I have been getting a crash on Main.

@singhrajvirk
Copy link

Any luck with this? trying to use without local web server.

EddyVerbruggen added a commit that referenced this issue Aug 23, 2015
#127 iOS 9 without local webserver
@EddyVerbruggen
Copy link
Contributor

Hey guys, I've just release 0.5.0 which no longer uses a local webserver for iOS9. It's not really polished yet because I'm not sure if the iOS 9 final release changes things again, but at least the app should work now. When built with XCode 6.

@clauderic XCode 7 builds will still fail. I considered this a lower priority than getting this to run with iOS9 devices of course. Could you be so kind to try 0.5.0 with XCode 7 and point me at the exact thing that needs to be changed to get it to run (ENABLE_BITCODE). That may save me some time when I investigate it.

@clauderic
Copy link

@EddyVerbruggen I'm happy to report that I just built it successfully with XCode 7 beta-5 (latest) without any major hiccups. Builds now pass regardless of the value of the Enable Bitcode setting in Build Settings in XCode.

I did have to run cordova platform remove ios and cordova platform add ios though, otherwise builds failed when I first upgraded to 0.5.0 (even in XCode 6)

@EddyVerbruggen
Copy link
Contributor

Thanks for the info!

@onchainguy-btc
Copy link

Still had to disable Bitcode with XCode 7 beta. Also removing and readding ios platform had no effect.

@LukePulverenti
Copy link

Did anyone have to mess with the whitelist plugin for this? While I'm able to load my initial page just fine, any file:// requests for resources such as js and css fail with "Cross origin requests are only supported over HTTP"

@revolunet
Copy link
Contributor

Note that using file:// protocol with iOS 9, you cannot do local ajax calls anymore : "Cross origin requests are only supported for HTTP."

@EddyVerbruggen
Copy link
Contributor

For folks wondering where bitcode can be disabled in XCode 7:

screen shot 2015-09-10 at 10 05 51

@EddyVerbruggen
Copy link
Contributor

@revolunet That's fixed with 0.6.0 which, ehm, uses the local webserver again.

@revolunet
Copy link
Contributor

thanks @EddyVerbruggen :)

@awebdeveloper
Copy link

@EddyVerbruggen why did u have to use web server again

@EddyVerbruggen
Copy link
Contributor

@awebdeveloper because you can't load files by xhr from the local filesystem. Even on iOS9. So f.i. Ionic template loading won't work unless the files are loaded over http.

@awebdeveloper
Copy link

so is this behavior a bug or apple don't support it

@EddyVerbruggen
Copy link
Contributor

Call it what you want, but it's not supported by Apple's WKWebView.

@ffxsam
Copy link

ffxsam commented Jan 21, 2016

What was the final outcome of this? I've got Xcode 7 and my device is iOS 9.2. Bitcode is disabled, and so it builds without errors, but when it deploys to my phone, it's stuck on the splash screen. I've tried 0.6.0 and 0.6.7.

@revolunet
Copy link
Contributor

works here with the builtin web server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants