Open max-mapper opened 13 years ago
Hey,
Yeah, it can be a bit fiddly to get an Xcode project set up.
I'm not an expert on Xcode (every time I try to set something up, I seem to have to run around in circles to fix slightly different issues each time), but I worked my way through some instructions I found online. I used this one to guide me: http://groups.google.com/group/mobile-couchbase/msg/b3bce2a9082d61c9?hl=en and did answer to one person's questions here: http://groups.google.com/group/mobile-couchbase/msg/1e8ddb1f5b67aa80?hl=en
To be honest, the way to get couch working on iOS is changing all the time. Around a month ago, the templates were introduced and coming up will be a static library. I've tried to avoid getting into the set up instructions because anything I write up will just get out of date ;-P
What I recommend is that you try to get it working in two steps:
1) First, try following these instructions: http://www.youtube.com/watch?v=GWXGlXRyJdI since it is a nice and short video that will get you all the way to a web view rendering (just with the couch response).
2) Once you have that working, you should be able to drag the .version and .json files into your resources folder, include the CouchMover.h and .m files, include the interesting bits from the app delegate sample for loading into the documents, and hopefully the webview will just work.
If this doesn't work for you, just let me know!
Cheers,
Kevin
On 7/9/11 1:06 AM, maxogden wrote:
howdy,
I've run into a few problems getting the ios portion of this repo to run using XCode4 (please note that I am not Objective-C literate :) )
- When attempting to build + run onto my iOS device Xcode complained that I was missing
~Library/Developer/Xcode/Templates/Couchbase/Couchbase Base.xctemplate
so I installed the template fromhttps://github.com/mschoch/iOS-Couchbase-Xcode-templates
- Needed to add the CoreMedia framework
- XCode complained about
webView
not being defined here so I googled and found a suggestion that I should change it toself.webView
. That seemed to fix the issuewhen launching in the IOS simulator it never renders a webview (just the menu bar with a black screen). Here are the last few lines from the console:
[INFO] CouchDB is ready at serverURL http://0.0.0.0:57355/ [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db/_design/mycouchapp_loaded_version 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db/_design/mydata_loaded_version 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db/_design/mydata_views_loaded_version 200
Would it be possible to document the steps needed to add all of the dependencies to a fresh XCode4 project?
Thanks!
Ahh nica, didn't know about the screencast! I'll give it a shot
Thanks,
Max
howdy,
I've run into a few problems getting the ios portion of this repo to run using XCode4 (please note that I am not Objective-C literate :) )
~Library/Developer/Xcode/Templates/Couchbase/Couchbase Base.xctemplate
so I installed the template fromhttps://github.com/mschoch/iOS-Couchbase-Xcode-templates
webView
not being defined here so I googled and found a suggestion that I should change it toself.webView
. That seemed to fix the issuewhen launching in the IOS simulator it never renders a webview (just the menu bar with a black screen). Here are the last few lines from the console:
[INFO] CouchDB is ready at serverURL http://0.0.0.0:57355/ [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db/_design/mycouchapp_loaded_version 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db/_design/mydata_loaded_version 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db 200 [info] [<0.94.0>] 127.0.0.1 - - 'GET' /mycouchapp_db/_design/mydata_views_loaded_version 200
Would it be possible to document the steps needed to add all of the dependencies to a fresh XCode4 project?
Thanks!