最近我從基于 Intel 的 MacBook 轉移到基于 M1 的 MacBook,自從我無法運行這個專案之后,它只在除錯模式下失敗。
我每次都會收到這條訊息:
<FirebaseCore/FirebaseCore.h> file not found
但是,在發布模式下,它可以正常編譯。
我試過直接從舊機器和 git 復制專案。 我已經嘗試過:
- 從頭開始完全重新安裝 Xcode
- 洗掉派生資料檔案夾
- Cmd Shift K
- 重新安裝 Pod
- 在 Scheme 設定中選中“查找隱式依賴項”
- 我正在處理 .xcworkspace 而不是.xcodeproj
- 嘗試將 modules_header => true 添加到 Podfile
- 嘗試將“arm64”添加到構建設定上的排除架構(在主專案和 pods 專案上)
我正在使用 Mac OS Ventura(在兩臺機器上),以及最新的 Xcode (14.1) Firebase 包是@react-native-firebase/app v15.6.0
謝謝
uj5u.com熱心網友回復:
嘗試在 pod 檔案中添加以下代碼行。
pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
$RNFirebaseAsStaticFramework = true
uj5u.com熱心網友回復:
更新:通過使用Rosetta打開 Xcode,我設法在除錯模式下運行該專案。這不是我想要的解決方案,因為它是在 Apple 處理器上運行的 Apple 軟體,但它現在可以作業。
- 關閉 Xcode
- 右鍵單擊 Applications 檔案夾中的 Xcode
- 點擊“查看資訊”
- 勾選“使用 Rosetta 打開”
- 關閉資訊視窗并重新打開 Xcode
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/529809.html
標籤:Google Cloud Collective 代码火力基地反应式苹果-m1
上一篇:UnityXcode構建失敗-Unityframework錯誤:未定義的符號
下一篇:SQL查詢JOIN,多對多
