[英]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.