无法添加Firebase邀请SDK

时间:2017-01-28 00:15:36

标签: ios swift xcode firebase

我正在尝试添加firebase邀请sdk for iOS但是在尝试构建时遇到了以下错误。我已将每个框架添加到我的项目以及资源文件中。我的其他firebase框架工作正常。

Undefined symbols for architecture arm64:
  "_ABAddressBookCopyArrayOfAllPeople", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_kABPersonFirstNameProperty", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABAddressBookGetPersonCount", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_kABPersonEmailProperty", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_kABPersonPhoneProperty", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABMultiValueGetCount", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABRecordCopyValue", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABMultiValueCopyValueAtIndex", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABPersonCopyImageDataWithFormat", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABAddressBookCreateWithOptions", referenced from:
      +[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:] in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_kABPersonLastNameProperty", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABPersonHasImageData", referenced from:
      ___82+[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:]_block_invoke in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
  "_ABAddressBookRequestAccessWithCompletion", referenced from:
      +[GPPAddressBook loadDeviceContactsCoalesced:mustHaveEmail:mustHavePhone:handler:] in FirebaseInvites(GPPAddressBook_57390648818180ba012ed5ff31bf3e09.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我的项目导航器,带有框架 here

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

转到构建阶段 - >链接Binary With Libraries并单击“+”以添加AddressBook.framework。

enter image description here