我最近開始使用帶有M1芯片的MacBook pro,該芯片來自于舊的MacBook Pro,運行該應用程式沒有問題。現在,當我試圖構建和運行我的應用程式時,我得到了以下問題:
'FirebaseCore/FirebaseCore.h' file not found
和
無法構建Objective-C module 'Firebase'
我試過的東西:
pod install --repo-update。
這是我的pod檔案:
# Uncomment the next line to define a global platform for your project
platform :ios, '14.0'。
post_install do |pi|
pi.pods_project.target.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'。
結束。
end
end end
目標 'Pikit' do
# Comment the next line if you don't want to use dynamic frameworks?
use_frameworks!
# Pods for Firebase
pod 'Firebase'
pod 'Firebase/Storage'/span>
pod 'Firebase/Auth'/span>
pod 'Firebase/Firestore'/span>
pod 'Firebase/Functions'/span>
pod 'Firebase/Analytics'/span>
pod 'Firebase/Messaging'/span>
pod 'Firebase/DynamicLinks'/span>
pod 'FirebaseUI/Auth'/span>
pod 'FirebaseUI/Email'/span>
pod 'FirebaseUI/Google'/span>
pod 'FirebaseUI/Facebook'/span>
pod 'FirebaseUI/OAuth' # Used for Sign in with Apple, Twitter, etc
pod 'FirebaseUI/Phone'
# 其他Podfiles
pod 'OnboardKit'
pod 'SDWebImage'/span>
pod 'PureLayout'/span>
pod 'IQKeyboardManagerSwift'/span>
pod 'Google-Mobile-Ads-SDK'/span>
end。
uj5u.com熱心網友回復:
使用pod update來更新Pod 使用Cmd sht k清潔專案并開始構建
uj5u.com熱心網友回復:
如果有人仍然面臨這個問題。 如果你已經清理了build檔案夾,洗掉了派生資料,洗掉了pod.lock和pods檔案夾,我的建議是打開終端并
插入: pod deintegrate && pod install
差異是由deintegrate呼叫引起的,它將洗掉構建階段以及框架檔案夾。
還需要考慮: 使用M1芯片的MacBook,我也遇到了這樣的情況:在為模擬器而不是真實設備/Macbook構建專案時,得到了上述錯誤
。轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/331112.html
標籤:
