Creating a OS X Cocoa App Web View in Xcode 5.0.1
Posted
by
user1822824
on Stack Overflow
See other posts from Stack Overflow
or by user1822824
Published on 2013-11-01T03:49:52Z
Indexed on
2013/11/01
3:53 UTC
Read the original article
Hit count: 180
I created a HTML5 web app that I’m trying to wrap in a web view and submit to the Mac App Store.
I’ve done the following:
1) Opened Xcode 5.0.1 and selected “Create a new Xcode project”
2) Under “OS X” I selected “Application” then I selected “Cocoa Application” then “Next”
3) I entered a “Product Name” and a “Company Identifier” then selected “Next” (I left all the other settings untouched) then “Create”
4) Under “General” > “Deployment Info” > “Deployment Target” I selected 10.6 — because I want the app to be compatible with all versions of OS X that support the Mac App Store
5) I clicked “MainMenu.xib” and selected “Window - My App”
6) From the “Object library” I drug the “Web View” object into my window and made it fill the window size
7) I saved my project and click the Play button in the upper left corner of Xcode
The app tries to open but freezes. I don’t get an error in Xcode but it does open “main.m” and highlight “return NSApplicationMain(argc, argv);” in green and says “Thread 1: signal SIGABRT”
I was hoping that someone could clarify why this isn’t working? And provide me with the last step to link the web view object? I searched Google and found tutorials for iOS and a few for OS X but for different versions of Xcode.
© Stack Overflow or respective owner