簡體   English   中英

由於 Firebase GoogleService-Info.plist,Codemagic iOS 構建失敗

[英]Codemagic iOS build fails due to firebase GoogleService-Info.plist

我正在使用適用於 iOS 的 codemagic 構建我的 flutter 項目。 android構建按expexted工作。 iOS 構建錯誤:

    Xcode build done.                                           1520.2s
    
    Failed to build iOS app
    Error output from Xcode build:
    ↳
        ** BUILD FAILED **
    
    
    Xcode's output:
    
    [...]

    error: Build input file cannot be found: '/Users/Downloads/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Encountered error while building for device.



Build failed :|
Failed to build for iOS

但是我的 ios/Runner 包含 GoogleService-Info.plist 文件。

我也嘗試創建環境變量來存儲這個文件,但沒有成功。

我被困在這一點上,所以非常感謝任何幫助!

解決了問題! 正如@Paul Beusterien 提到的,構建系統期望文件位於 /Users/Downloads/GoogleServices-Info.plist。

怎么改?

兩種可能的解決方案:

  1. 如果您有 Xcode:只需單擊文件並使用文件檢查器將路徑的位置更改為“相對於項目”。

2.不使用 Xcode:進入您的 project.pbxproj 文件並查找 name="GoogleServices-Info.plist" path="..." 並將該路徑更改為“GoogleServices-Info.plist”,如果該文件是在您的 ios/Runner/ 文件夾中。

暫無
暫無

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

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