簡體   English   中英

使用iOS和Xcode的firebase“鐺:錯誤:鏈接器命令失敗”

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

嘗試在iOS上使用Firebase並且從未處理過Pod

1)我在iOS上使用swift for iPhone在iOS中創建了一個項目。稱為愚蠢2)這是項目所在的位置,並創建了文件:

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

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)我在〜/ 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)我建立項目

現在我得到了這個錯誤。 誰能告訴我為什么?

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

仔細檢查您打開的是工作區而不是xcodeproj。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM