我已经将我的颤振包更新到最新版本,现在 IOS 不再工作了。
当我尝试更新pods时,它会显示以下错误:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Firestore (~> 6.0) was resolved to 6.0.0, which depends on
Firebase/CoreOnly (= 6.0.0)
cloud_functions (from `.symlinks/plugins/cloud_functions/ios`) was resolved to 0.0.1, which depends on
Firebase/Functions (~> 5.18) was resolved to 5.18.0, which depends on
Firebase/CoreOnly (= 5.18.0)
以下是我的pubspec.yaml(Firebase相关):
firebase_core: "^0.4.0"
firebase_auth: "^0.11.0"
firebase_analytics: "^3.0.0"
cloud_firestore: "^0.11.0+1"
cloud_functions: "^0.3.0"
firebase_storage: "^3.0.0"
firebase_messaging: "^5.0.1"
我已经采取了各种步骤来尝试修复:
flutter clean
flutter build ios
pod install
pod update
pod repo update
pod install --repo-update
我已经在Podfile和Xcode中设置了平台:ios、12.1作为构建目标,但是没有任何结果。
这是我的podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '12.1'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
end
pods_ary = []
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) { |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
pods_ary.push({:name => podname, :path => podpath});
else
puts "Invalid plugin specification: #{line}"
end
}
return pods_ary
end
target 'Runner' do
use_frameworks!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
# Flutter Pods
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
if generated_xcode_build_settings.empty?
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
end
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
symlink = File.join('.symlinks', 'flutter')
File.symlink(File.dirname(p[:path]), symlink)
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
end
}
# Plugin Pods
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.map { |p|
symlink = File.join('.symlinks', 'plugins', p[:name])
File.symlink(p[:path], symlink)
pod p[:name], :path => File.join(symlink, 'ios')
}
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
编辑podfile中的最低ios版本,然后运行pod安装。
将平台:ios,“9.0”更改为平台:ios,“10.0”然后
运行pod安装
为我修复了它。
尝试调用<code>pod repo update</code>
如果问题没有解决
删除根目录中的Podfile.lock,然后运行< code>pod install
我正在开发react-native应用程序。 我按照firebase的说明将iOS应用程序添加到firebase项目中。 在我的Podfile中,我有: Xcode版本11.7,目标iOS10.1 为什么我会出现这个错误以及如何消除它? (我尝试运行 ,得到: [!] Pod未安装,无法更新)
我正试图在iOS模拟器上运行flatter,当执行flatter run时,出现下一个错误: [!] CocoaPods找不到pod“Firebase/Messaging”的兼容版本:在pod文件中:Firebase\u Messaging(来自)被解析为9.1.3,这取决于Firebase/Messaging(=7.11.0)没有一个规范源包含满足依赖关系的规范:。 有人知道为什么会这样吗? 如
在Google Cloud>Workloads中部署应用程序时,我在日志资源管理器中出错 找不到任何兼容的框架版本 找不到框架“Microsoft.NetCore.App”版本“3.1.0”。 找到了以下框架:5.0.4在[/usr/share/dotnet/shared/microsoft.netcore.app] 您可以通过安装指定的框架和/或SDK来解决此问题。 可在以下网址找到指定的框架:
在项目中更新FireBase SDK后,我得到错误: 由于CocoaPods安装失败,iOS框架添加失败。这将可能导致一个非功能性的Xcode项目。 null null 正在分析依赖项[!]CocoaPods找不到pod“firebase/core”的兼容版本:在podfile中:firebase/analytics(=5.5.0)被解析为5.5.0,这取决于firebase/core(=5.5.
我想安装grunt-phonegap npm安装grunt-phonegap 得到了这个错误 我已经回答了我的问题,但这只是一个暂时的解决办法,不能解释真正的问题。
我正在学习java,我写了这个程序,它在我的大学电脑上编译成功,但在我的家庭电脑上没有编译。有谁能帮助我吗?