Ios 如何移除安装在颤振中的不需要的吊舱
我对颤振开发还不熟悉。我在使用Xcode的Flatter iOS时发现问题。我可以看到安装了不需要的POD,这会在我的Xcode构建过程中导致错误。我想知道是否有一种方法可以控制安装的吊舱 下面是我的播客文件的代码:Ios 如何移除安装在颤振中的不需要的吊舱,ios,xcode,flutter,cocoapods,podfile,Ios,Xcode,Flutter,Cocoapods,Podfile,我对颤振开发还不熟悉。我在使用Xcode的Flatter iOS时发现问题。我可以看到安装了不需要的POD,这会在我的Xcode构建过程中导致错误。我想知道是否有一种方法可以控制安装的吊舱 下面是我的播客文件的代码: ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release,
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Firebase/Core'
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
#install! 'cocoapods', :deterministic_uuids => false
target 'Runner' do
#use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
由于GoogleUtilities(不需要的pod),我得到以下错误:
GoogleUtilities
是Firebase吊舱的一个依赖项。生成的Podfile.lock
中的详细信息。
GoogleUtilities/GULAppEnvironmentUtil.h' file not found