Nest API iOS错误 [英] Nest API iOS Errors

查看:83
本文介绍了Nest API iOS错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Nest Developer https://developer.nest.com/ API创建一个iOS应用.有人知道如何将Firebase框架链接到我的应用程序吗?我不断收到链接错误:

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)

推荐答案

您是否已检查过'

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. 在项目编辑器中,选择要添加目标的目标. 库或框架.

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

单击项目编辑器顶部的构建阶段".

Click Build Phases at the top of the project editor.

打开使用库链接二进制文件"部分.

Open the Link Binary With Libraries section.

单击添加"按钮(+)添加库或框架.

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

单击列表下方的添加其他"按钮.

Click the "Add Other" button below the list.

搜索 Firebase.framework ,并在其中下载和解压缩它.

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

这篇关于Nest API iOS错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆