With the following setup:
XCode to 4.5.1 + Updated simulators (iPhone 6.0 Simulator)
Phonegap 2.1.0
I have used the ./create command from the phonegap tools to create my project.
The problem is that when I try and build the project (either directly in XCode or using the cordova/debug command) I get an error:
/Applications/Cordova/lib/ios/CordovaLib/Classes/CDVContacts.m:82:5: error: 'release' is unavailable: not available in automatic reference counting mode
dispatch_release(workQueue);
The above is what I pulled from the log and its the same that XCode picks up. I'm thinking that iOS 6 requires ARC and using dispatch_release it not allowed.
Anyway, commenting out that line of code in the dealloc method of the CDVContacts.m file:
-(void) dealloc
{
//dispatch_release(workQueue);
}
solves the problem.
I don't to what effect commenting out this line will affect the app, but I thought I should mention this.
XCode to 4.5.1 + Updated simulators (iPhone 6.0 Simulator)
Phonegap 2.1.0
I have used the ./create command from the phonegap tools to create my project.
The problem is that when I try and build the project (either directly in XCode or using the cordova/debug command) I get an error:
/Applications/Cordova/lib/ios/CordovaLib/Classes/CDVContacts.m:82:5: error: 'release' is unavailable: not available in automatic reference counting mode
dispatch_release(workQueue);
The above is what I pulled from the log and its the same that XCode picks up. I'm thinking that iOS 6 requires ARC and using dispatch_release it not allowed.
Anyway, commenting out that line of code in the dealloc method of the CDVContacts.m file:
-(void) dealloc
{
//dispatch_release(workQueue);
}
solves the problem.
I don't to what effect commenting out this line will affect the app, but I thought I should mention this.



