【问题标题】:ld: warning: ignoring file [path], missing required architecture i386 in fileld:警告:忽略文件 [路径],文件中缺少所需的体系结构 i386
【发布时间】:2011-04-25 07:24:19
【问题描述】:

我在尝试运行 iPhone 模拟器时收到此错误消息。我使用 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

【问题讨论】:

    标签: iphone xcode4 i386


    【解决方案1】:

    由于某种原因,链接器正在/Users/Marius/Documents/AppSchool/Telefonbok/ 中查找 AddressBook.framework 和 AddressBookUI.framework,而不是在 SDK 文件夹中。您应该检查您是否将这些框架正确添加到您的项目中。

    【讨论】:

      【解决方案2】:

      如果您确定已正确添加了框架,请查看项目文件夹内是否有一些框架文件夹(例如 AddressBookUI)的副本(在 Xcode 中右键单击您的项目并选择在 Finder 中显示)。如果是这样,只需将它们从 finder 中删除,然后再次尝试构建。

      【讨论】:

        【解决方案3】:

        你需要添加AddressBookUI.framework

        【讨论】:

          猜你喜欢
          • 2013-03-17
          • 2012-01-08
          • 2011-07-29
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多