简体   繁体   English

编译构建失败时出现xcode错误

[英]xcode error when compiling build failed

I'm doing an app using firebase, I've already done the set up with pod and today when I re-opened the project after a bit of time I have this problem in the picture, any help on how to fix it? 我正在使用Firebase做一个应用程序,我已经用pod完成了设置,今天当我在一段时间后重新打开该项目时,在图片中遇到了这个问题,如何解决它有帮助吗?

I've already tried to clean and deleting pod files and re-executing a "pod install" but it seems he can no longer see my "import Firebase" 我已经尝试清理和删除Pod文件并重新执行“ pod安装”,但似乎他再也看不到我的“ import Firebase”

在此处输入图片说明

Unfortunately there could be a number of reasons for your error. 不幸的是,您的错误可能有多种原因。 Here are a couple easily overlooked steps when installing Firebase with cocoapods: 使用Cocoapods安装Firebase时,以下是几个容易被忽略的步骤:

  1. The top of your pod file likely looks similar to the snippet below. 您的pod文件的顶部看起来可能与下面的代码段相似。 It appears you're using swift so make sure you uncomment the "use_frameworks!" 看来您正在使用swift,所以请确保取消注释“ use_frameworks!”。 line as I've done here : 行,就像我在这里所做的那样:

     # Uncomment this line to define a global platform for your project # platform :ios, '10.0' # Uncomment this line if you're using Swift use_frameworks! 
  2. Make sure from now on you open your project from the terminal: 从现在开始,请确保从终端打开项目:

     $ open your-project.xcworkspace 
  3. If you still don't have any luck it may be worth carefully reviewing the getting started guide for Firebase: Add Firebase to your iOS Project 如果您仍然没有运气,则值得仔细阅读Firebase入门指南: 将Firebase添加到iOS项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM