The iPhone SDK 2.2.1, which added Exchange Sync with Google, has broken the ABRecordSet function! I think the use of the Exchange means that the API can't be used to update records, perhaps because of a conflict? Or because the Preferences Bundles can't be found?
The call "didAdd = ABRecordSetValue(person, kABPersonPhoneProperty, multi, &anError);"
Now generates a didAdd=false and these lovely console messages:
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/DataAccessSettings.bundle/DataAccessSettings" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/MobileWirelessSyncSettings.bundle/MobileWirelessSyncSettings" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/MobileMailSettings.bundle/MobileMailSettings" (file not found).
2009-02-24 22:07:25.058 AppName[171:20b] Could not open the lock file at /tmp/DAAccountsLoading.lock. We'll load the accounts anyway, but bad things may happen
If I turn off Exchange (which deletes all contacts but of course I've backed them up) then API calls still work.
Poking about in the iPhone SDK docs and devforums hasn't turned up anything. If you know anything about this, let me know and I'll post updates.
I've created an Apple Bug ID# 6620425
The call "didAdd = ABRecordSetValue(person, kABPersonPhoneProperty, multi, &anError);"
Now generates a didAdd=false and these lovely console messages:
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/DataAccessSettings.bundle/DataAccessSettings" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/MobileWirelessSyncSettings.bundle/MobileWirelessSyncSettings" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/MobileMailSettings.bundle/MobileMailSettings" (file not found).
2009-02-24 22:07:25.058 AppName[171:20b] Could not open the lock file at /tmp/DAAccountsLoading.lock. We'll load the accounts anyway, but bad things may happen
If I turn off Exchange (which deletes all contacts but of course I've backed them up) then API calls still work.
Poking about in the iPhone SDK docs and devforums hasn't turned up anything. If you know anything about this, let me know and I'll post updates.
I've created an Apple Bug ID# 6620425
Hello,
I get this too - my iPod Touch is configured for Exchange, and has 2.2.1 installed (2.2.1 SDK too.) Whenever I pop up a PeoplePicker, it says this:
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/DataAccessSettings.bundle/DataAccessSettings" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/MobileWirelessSyncSettings.bundle/MobileWirelessSyncSettings" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/2.2.1/Symbols/System/Library/PreferenceBundles/AccountSettings/MobileMailSettings.bundle/MobileMailSettings" (file not found).
2009-03-31 21:30:53.491 shortlinks[1519:20b] Could not open the lock file at /tmp/DAAccountsLoading.lock. We'll load the accounts anyway, but bad things may happen
But still works?
Thanks,