链接器命令失败,退出代码为1

编程入门 行业动态 更新时间:2024-10-11 21:20:21
本文介绍了链接器命令失败,退出代码为1-Firebase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这是iOS开发的新手,有些将Firebase安装到我的iOS应用程序时遇到了一些麻烦.从本质上讲,该应用程序将要做的是从Firebase数据库中获取有关该国家/地区路径的信息,该信息将输出到一个表格视图中,允许用户选择其中一条路径并回答有关该路径的一些问题.

Fairly new to iOS development and have some had some trouble installing firebase into my iOS application. Essentially what the application will do is take information about trails around the country from a firebase database, this information is to be output to a tableview which will allow users to select one of the trails and answer some questions about the trail.

在尝试安装应用程序时,我经历了Google网站上概述的将Firebase添加到您的iOS应用程序"中列出的步骤.第一阶段一切顺利,直到遇到第四阶段.

While attempting to install the application I went through the steps which are outlined on the google site for "add firebase to your iOS app". The first stages went all fine without a hitch until I encountered stage 4.

当我将导入Firebase输入到app.delegate文件中时,收到错误消息:在app.delegate文件中导入Firebase时出错

When I enter import Firebase into the app.delegate file, I receive an error: Error on import Firebase in app.delegate file

最重要的是,我现在遇到另一个错误,这使我无法构建应用程序,这是错误:

On top of this, I now have another error which is preventing me from building the application, this is the error:

链接器命令失败错误,阻止了应用程序的构建

从本质上讲,我需要知道自己是否犯了任何明显的错误(可能是我刚接触过这个错误),以及在可能的情况下如何解决这些问题.

Essentially, I need to know if I am making any glaring errors, which I probably am as I'm new to this, and also how to resolve these issues if possible.

谢谢.

推荐答案

确保在Xcode中打开.xcworkspace而不是.xcproject文件.关闭项目并打开.xcworkspace

Make sure you're opening the .xcworkspace and not the .xcproject file in Xcode. Close the project and open .xcworkspace

更多推荐

链接器命令失败,退出代码为1

本文发布于:2023-11-13 06:28:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583699.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   代码   链接

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!