Ld: warning: ignoring file [path], lack of required i386 architecture in file

I get this error message when I try to start iPhone Simulator. I am using Xcode 4

ld: warning: ignoring file /Users/Marius/Documents/AppSchool/Telefonbok/AddressBook.framework/AddressBook, missing required architecture i386 in file ld: warning: ignoring file /Users/Marius/Documents/AppSchool/Telefonbok/AddressBookUI.framework/AddressBookUI, missing required architecture i386 in file Undefined symbols for architecture i386: "_ABRecordCopyValue", referenced from: -[SecondViewController peoplePickerNavigationController:shouldContinueAfterSelectingPerson:] in SecondViewController.o "_ABMultiValueCopyValueAtIndex", referenced from: -[SecondViewController peoplePickerNavigationController:shouldContinueAfterSelectingPerson:] in SecondViewController.o "_OBJC_CLASS_$_ABPeoplePickerNavigationController", referenced from: objc-class-ref in SecondViewController.o "_kABPersonFirstNameProperty", referenced from: -[SecondViewController peoplePickerNavigationController:shouldContinueAfterSelectingPerson:] in SecondViewController.o "_kABPersonLastNameProperty", referenced from: -[SecondViewController peoplePickerNavigationController:shouldContinueAfterSelectingPerson:] in SecondViewController.o "_kABPersonPhoneProperty", referenced from: -[SecondViewController peoplePickerNavigationController:shouldContinueAfterSelectingPerson:] in SecondViewController.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status 
+4
source share
3 answers

For some reason, the linker is looking for AddressBook.framework and AddressBookUI.framework in /Users/Marius/Documents/AppSchool/Telefonbok/ , and not in the SDK folders. You must verify that you have correctly added this framework to your project.

+2
source

If you are sure that you have correctly added the frameworks, see if there are some framework folders in the project folder (for example, AddressBookUI) (right-click on the project in Xcode and select "Show in Finder"). If so, just remove them from the finder and try building again.

+2
source

You need to add AddressBookUI.framework

0
source

All Articles