Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8708779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:13:01+00:00 2026-06-13T04:13:01+00:00

System info . Xcode : 4.3.3 OSX : 10.7.4 I have downloaded phonegap 2.1(

  • 0

System info .
Xcode : 4.3.3
OSX : 10.7.4

I have downloaded phonegap 2.1( incubator-cordova-ios). I have successfully created the project using command line code as mentioned in the docs .

$ ./path/to/cordova-ios/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName

I used code like below to build my project.
$ /path/to/my_new_cordova_project/cordova/debug

When i try to debug, i get error following error

/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:252:14: error: use of undeclared identifier ‘ABAddressBookCreateWithOptions’ [3]
if (&ABAddressBookCreateWithOptions != NULL) {
^
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:253:24: warning: implicit declaration of function ‘ABAddressBookCreateWithOptions’ is invalid in C99 [-Wimplicit-function-declaration,3]
addrBook = ABAddressBookCreateWithOptions(NULL, NULL);
^
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:253:22:{253:24-253:66}: warning: incompatible integer to pointer conversion assigning to ‘ABAddressBookRef’ (aka ‘const void *’) from ‘int’ [3]
addrBook = ABAddressBookCreateWithOptions(NULL, NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:326:96:{326:96-326:139}{326:109-326:139}: error: cast of Objective-C pointer type ‘id’ to C pointer type ‘ABRecordRef’ (aka ‘const void ‘) requires a bridged cast [4]
CDVContact
xferContact = [[CDVContact alloc] initFromABRecord:(ABRecordRef)[foundRecords objectAtIndex:k]];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:326:97: note: use __bridge to convert directly (no change in ownership) [4]
CDVContact* xferContact = [[CDVContact alloc] initFromABRecord:(ABRecordRef)[foundRecords objectAtIndex:k]];
^
_bridge
fix-it:”/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m”:{326:97-326:97}:”
_bridge ”
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:326:97: note: use __bridge_retained to make an ARC object available as a +1 ‘ABRecordRef’ (aka ‘const void ‘) [4]
CDVContact
xferContact = [[CDVContact alloc] initFromABRecord:(ABRecordRef)[foundRecords objectAtIndex:k]];
^
__bridge_retained
fix-it:”/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m”:{326:97-326:97}:”__bridge_retained ”
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:338:92:{338:92-338:135}{338:105-338:135}: error: cast of Objective-C pointer type ‘id’ to C pointer type ‘ABRecordRef’ (aka ‘const void ‘) requires a bridged cast [4]
CDVContact
testContact = [[CDVContact alloc] initFromABRecord:(ABRecordRef)[foundRecords objectAtIndex:j]];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:338:93: note: use __bridge to convert directly (no change in ownership) [4]
CDVContact* testContact = [[CDVContact alloc] initFromABRecord:(ABRecordRef)[foundRecords objectAtIndex:j]];
^
_bridge
fix-it:”/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m”:{338:93-338:93}:”
_bridge ”
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:338:93: note: use __bridge_retained to make an ARC object available as a +1 ‘ABRecordRef’ (aka ‘const void ‘) [4]
CDVContact
testContact = [[CDVContact alloc] initFromABRecord:(ABRecordRef)[foundRecords objectAtIndex:j]];
^
__bridge_retained
fix-it:”/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m”:{338:93-338:93}:”__bridge_retained ”
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:560:21:{560:23-560:67}: warning: incompatible integer to pointer conversion assigning to ‘ABAddressBookRef’ (aka ‘const void *’) from ‘int’ [3]
addressBook = ABAddressBookCreateWithOptions(NULL, &error);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/virtusa3/pgt/myproject1/CordovaLib/Classes/CDVContacts.m:562:9: warning: implicit declaration of function ‘ABAddressBookRequestAccessWithCompletion’ is invalid in C99 [-Wimplicit-function-declaration,3]
ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) {
^
4 warnings and 3 errors generated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:13:02+00:00Added an answer on June 13, 2026 at 4:13 am

    Seems to be related to this issue reported by others building on Snow Leopard with older versions of Xcode:
    Running ./cordova/debug / cordova/emulate causes errors”

    It seems that there are plans to fix it but updating to Mountain Lion and Xcode 4.51 will fix it. It did for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System info: Python 2.7.2 MAC OSX 10.7.2 Problem (+background): I have a large '.csv'
Using the Python templates for Xcode, I have a simple project running on one
Is there any method / API defined to collect system info in osx. I
I have and XCode project with a list of supported languages. By default, XCode
using XCode 3.2.6, Base SDK iOS 4.3 I set iOS Deployment Target to iOS
I build a project using XCode 4 and I was running on the simulator
System Info: Mac OSX 10.7, Python 2.6.7, Plone 4.0.7 I'm creating an uninstall profile
I installed openjdk-6-jdk on my ubuntu box using apt-get. In system info jenkins is
I am having problem on installing MYSQL using homebrew My system info are as
I'm trying to make a twitter like system that scrolls through info slowly and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.