Hello Nick,
I am following all your steps but I am stuck in step number 5. When I type UIwebview or uiweb or web view, it says: no matches. I tried to find a solution online and I found someone that had the same problem as me and they told him it was that he had Xcode version 7 and that he had to go back to 6. I went back to 6 but it still says no matches.
I am working on an imac with OS X El capitan version 10.11.3, Hype pro version 3.5.1 and I tried xcode 6.3 and 6.4.
I would really appreciate if you could help me out, or if there is any other way to convert HTML to an app without using Xcode.
Hello Nick,
No, I wasn’t able. Since the beginning I am getting a lot of warning signs like this:
Also, there is a question mark next to my hypeshoursces, I don’t know if that is normal…I am attaching you screenshots of my hypesources, viewcontroller.m, viewcontroller.h and object window:
When copying over your Hype.html file and your hyperesources folder
Do each one of those separately.
XCODE 6x has issues linking supporting files if you try to copy a bunch of them over at once.
Also when you copy the files over you need to make sure that the following buttons are checked.
copy items if needed
Create Folder references
And in your add to target make sure you see your apps name. See image below.
Should I install version 7 then? Because before I had version 7 but I read on forums that it was better to downgrade because most of the tutorials were on version 6
IMHO people who said that need a slap upside the head.
Any tutorial is usually transferable to the later versions of Xcode. Because a lot of the changes that make the tutorial different are mainly UI and where to find things.
The bigger changes right now is translating a Objective - C coded project into a Swift equivalent.
If you are only staying in v6 for the reason you state then you are not really doing yourself any favours in the long run as far as I feel about it…
Thanks to @carla for pointing out the language issue between XCode 7.3 and the original tutorial for XCode 6.2
I have updated the XCode Project template to reflect the changes, and a sample Hype doc and HTML file can be found on GitHub.
The steps in the tutorial are still valid but the way you reference the webview has changed a bit. Take a look at the viewcontroller .m file to see that change.
Once you download the zip file you can find the xCode Project in this directory
Yes…
My first runs with WKWebview were buggy at best when I compiled the app into an iOS app.
Not 100% sure why but I defaulted back to UIWebview.
Using it to access online content seems fine though.
WKWebView is now recommended in Cordova, and is commonly in use as of Cordova 4+ due to the performance boost relative to UIWebView.
Saying that I will add a comparison and test in my Swift tutorial.
Thanks for that question!
So I copied the new code from the xcode template project that you shared, I followed the steps from the old tutorial but when I run it to the simulator, it only shows a white screen with the name of my app and the copyright. And then this message in Xcode pops up: