andrewgleave / CouchDBAttachmentUploader

Upload attachments straight to a CouchDB database from PhoneGap
36 stars 6 forks source link

XCode4 Support #1

Closed max-mapper closed 12 years ago

max-mapper commented 12 years ago

Hey Andrew,

Finally getting around to kicking the tires on this bad boy and I've run into a couple of speedbumps.

After changing the include files as per https://github.com/phonegap/phonegap-plugins/issues/21, when I call the upload function from Javascript it throws the following error:

ERROR: Class method 'upload:withDict:' not defined in class 'CouchDBAttachmentUploader'

Any idea whats happening internally? Sadly I'm not an Objective-C guy

Thanks,

Max

andrewgleave commented 12 years ago

Hi Max.

Is this on the iOS 5 WWDC beta?

On 10 Jun 2011, at 22:34, maxogden wrote:

Hey Andrew,

Finally getting around to kicking the tires on this bad boy and I've run into a couple of speedbumps.

After changing the include files as per https://github.com/phonegap/phonegap-plugins/issues/21, when I call the upload function from Javascript it throws the following error:

ERROR: Class method 'upload:withDict:' not defined in class 'CouchDBAttachmentUploader'

Any idea whats happening internally? Sadly I'm not an Objective-C guy

Thanks,

Max

Reply to this email directly or view it on GitHub: https://github.com/andrewgleave/CouchDBAttachmentUploader/issues/1

max-mapper commented 12 years ago

Nope it's on iOS4 and XCode4

andrewgleave commented 12 years ago

It sounds like the plugin is not being registered properly – probably due to changes in the project template. If the plugin isn't being compiled with along with your project, you'll probably find this error. Only thing I can suggest is to make sure the plugin is being compiled correctly by checking in Xcode's build log.

max-mapper commented 12 years ago

Nevermind! Found out it's a bug with newer PhoneGap -- should be fixed soon.

https://github.com/phonegap/phonegap-iphone/issues/123#issuecomment-1362582