我最近开始使用配备 M1 芯片的 MacBook Pro,该芯片来自旧款 MacBook Pro,运行此应用程序没有任何问题。现在,当我尝试构建并运行我的应用程序时,我遇到以下问题:
'FirebaseCore/FirebaseCore.h' file not found
Run Code Online (Sandbox Code Playgroud)
和
Could not build Objective-C module 'Firebase'
Run Code Online (Sandbox Code Playgroud)
我尝试过的:
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.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
end
end
end
target 'Pikit' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks! …Run Code Online (Sandbox Code Playgroud)