Nest API iOS Errors

自闭症网瘾萝莉.ら 提交于 2019-12-21 12:19:54

问题


I'm using the Nest Developer https://developer.nest.com/ API to create an iOS app. Does anyone know how to link the Firebase framework into my app? I keep getting linking errors:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_FTransactionResult", referenced from:
      objc-class-ref in NestThermostatManager.o
  "_OBJC_CLASS_$_Firebase", referenced from:
  objc-class-ref in NestThermostatManager.o
  objc-class-ref in NestStructureManager.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

回答1:


Have you checked the 'Link Binary With Libraries' build phase in Xcode? Make sure the Firebase.framework is added there. Here's how to add it:

  1. In the project editor, select the target to which you want to add a library or framework.

  2. Click Build Phases at the top of the project editor.

  3. Open the Link Binary With Libraries section.

  4. Click the Add button (+) to add a library or framework.

  5. Click the "Add Other" button below the list.

  6. Search for Firebase.framework where you downloaded and unzipped it.



来源:https://stackoverflow.com/questions/24378457/nest-api-ios-errors

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!