Assertion failure ABPerson

Anthony Arthur brianarthur at nc.rr.com
Tue Sep 11 21:17:32 PDT 2007


I found other posts at various discussion sites indicating a bug with  
this when using vCardData, but nothing for this.  I am trying to  
programmatically load ABPerson records to the logged in user's AB.   
The exception is raised while executing this:

					if ([abKey isEqualToString:kABEmailProperty] || [abKey  
isEqualToString:kABPhoneProperty]) {
						[person setValue:[NSArray arrayWithObject:col] forKey:abKey];
					}else{
						[person setValue:col forKey:abKey];
					}

Several values are successfully loaded, like first/last name, before  
loading an email value spews this:

2007-09-12 00:00:11.381 AddressBookImporter[11891] *** Assertion  
failure in -[ABPerson  
nts_SetValue:forProperty:recordCouldBeInDatabase:], Framework/ 
AddressBook/ABRecord.m:515

Any thoughts?

--Brian


More information about the MacOSX-dev mailing list