maxogden/touchdb-phonegap — Issue #1: EXC_BAD_ACCESS
Author: maxogden
Created: 2012-02-11 02:11:46+00:00
State: open

Due to something weird happening between the TouchDB and PhoneGap frameworks there is an EXC_BAD_ACCESS error that gets thrown when the `touchdb:///` protocol is accessed.

1,000,000 bonus points to the first Objective-C developer to figure out how to fix this!

This project is a PhoneGap 1.4 template generated project that has had TouchDB added to it and configured to start. It starts up successfully but then as soon as a request is made to it (from a WebView via PhoneGap) it throws an error.

The code for TouchDB.framework is here: https://github.com/couchbaselabs/TouchDB-iOS/tree/master/Source
The code for PhoneGap iOS is here: https://github.com/apache/incubator-cordova-ios

![](http://i.imgur.com/VCsEU.png)
[full size image](http://i.imgur.com/VCsEU.png)