简体   繁体   English

使用iOS和Xcode的firebase“铛:错误:链接器命令失败”

[英]firebase “clang: error: linker command failed” with ios and xcode

Trying to use firebase with iOS and never dealt with pods before 尝试在iOS上使用Firebase并且从未处理过Pod

1) I create a project in ios with swift for iPhone.. called stupid 2) Here is where the project is located and the files created: 1)我在iOS上使用swift for iPhone在iOS中创建了一个项目。称为愚蠢2)这是项目所在的位置,并创建了文件:

~/Documents/swift/stupid$ ls
stupid          stupid.xcodeproj

3) This is what firebase says to do: 3)这是firebase所说的:

Move the GoogleService-Info.plist file you just downloaded into the root of your Xcode project and add it to all targets.

~/Documents/swift/stupid/stupid$ ls
AppDelegate.swift       GoogleService-Info.plist    stupid.xcdatamodeld
Assets.xcassets         Info.plist
Base.lproj          ViewController.swift

4) I run the below in the ~/Documents/swift/stupid dir ~/Documents/swift/stupid$ pod init 4)我在〜/ Documents / swift / stupid dir〜/ Documents / swift / stupid $ pod init中运行以下命令

Google services use CocoaPods to install and manage dependencies. Open a terminal window and navigate to the location of the Xcode project for your app.

Create a Podfile if you don't have one:

pod init
Open your Podfile and add:

pod 'Firebase/Core'
includes Analytics by default help_outline
Save the file and run:

pod install

5) I build the project 5)我建立项目

And now I get this error. 现在我得到了这个错误。 Who can tell me why? 谁能告诉我为什么?

clang: error: linker command failed with exit code 1 (use -v to see invocation)

仔细检查您打开的是工作区而不是xcodeproj。

暂无
暂无

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

相关问题 铛:错误:链接器命令失败,退出代码为1,Xcode链接器错误 - clang: error: linker command failed with exit code 1, Xcode Linker Error Unity 3D iOS游戏构建失败Xcode 8.32:“clang错误链接器命令失败,退出代码为1” - Unity 3D iOS Game Build Fail Xcode 8.32: “clang error linker command failed with exit code 1” 无法构建Xcode项目:clang错误:链接器命令失败 - Unable to build Xcode Project: clang error: linker command failed Unity,Xcode和Clang:错误:链接器命令失败,退出代码为1 - Unity, Xcode and clang: error: linker command failed with exit code 1 铛:错误:链接器命令失败,退出代码为1 iOS9 - clang: error: linker command failed with exit code 1 iOS9 链接器命令失败错误,xcode? - Linker command failed error, xcode? 链接器命令失败,退出代码1 clang:错误 - linker command failed with exit code 1 clang:error xcode中的错误:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - error in xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 5- clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode clang:错误:链接器命令失败,退出代码为 1(UNITY 用于创建) - Xcode clang: error: linker command failed with exit code 1 (UNITY used for creation)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM