4

iPhone Simulator を実行しようとすると、このエラー メッセージが表示されます。私は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

3 に答える 3

2

/Users/Marius/Documents/AppSchool/Telefonbok/何らかの理由で、リンカーはSDKフォルダーではなく、AddressBook.frameworkとAddressBookUI.frameworkを探しています。これらのフレームワークをプロジェクトに正しく追加したかどうかを確認する必要があります。

于 2011-04-25T07:50:29.290 に答える
2

フレームワークを正しく追加したことを確認したら、プロジェクト フォルダー内にフレームワーク フォルダー (AddressBookUI など) のコピーがあるかどうかを確認します (Xcode でプロジェクトを右クリックし、[Show in Finder] を選択します)。その場合は、ファインダーからそれらを削除して、ビルドを再試行してください。

于 2013-02-15T20:37:45.633 に答える
0

AddressBookUI.frameworkを追加する必要があります

于 2011-08-30T23:24:13.713 に答える