我从10.5更新了系统到10.8,更新了Xcode。然后我导入了项目,然后是Xcode更改项目的设置。然后,由于不正确的构建阶段设置,尝试构建iPhone应用程序失败。我不得不重新添加一堆框架。
然后编译但我得到了200多个Apple Mach-O链接器错误。非常相似的问题,如:After update to Xcode 5 - ld: symbol(s) not found for architecture armv7 or armv7s linker error 唯一的区别是,在遵循所有建议后,我仍然无法构建应用程序。
架构i386的未定义符号:
“_ ABAddressBookAddRecord”,引自:
___20-[CDVContacts save:]_block_invoke_2 in libCordova.a(CDVContacts.o)
“_ ABAddressBookCopyArrayOfAllPeople”,引自:
___22-[CDVContacts search:]_block_invoke_2 in libCordova.a(CDVContacts.o)
“_ ABAddressBookCreate”,引自:
-[CDVContacts peoplePickerNavigationControllerDidCancel:] in libCordova.a(CDVContacts.o) -[CDVAddressBookHelper createAddressBook:] in libCordova.a(CDVContacts.o)
“_ ABAddressBookCreateWithOptions”,引自:
-[CDVContacts peoplePickerNavigationControllerDidCancel:] in libCordova.a(CDVContacts.o) -[CDVAddressBookHelper createAddressBook:] in libCordova.a(CDVContacts.o) -[CDVContacts peoplePickerNavigationControllerDidCancel:] in libCordova.a(CDVContacts.o) -[CDVAddressBookHelper createAddressBook:] in libCordova.a(CDVContacts.o)
“_ ABAddressBookGetPersonWithRecordID”,引自:
___30-[CDVContacts displayContact:]_block_invoke in libCordova.a(CDVContacts.o) -[CDVContacts peoplePickerNavigationControllerDidCancel:] in libCordova.a(CDVContacts.o)
任何帮助表示赞赏
答案 0 :(得分:2)
您的Xcode项目未链接到 AddressBook.framework 。
转到Build Phases并在“Link Binary With Libraries”部分添加缺少的框架。