Flutter Flatter arkit_插件0.6.0吊舱无法安装
我正在尝试使用arkit_插件0.6.0,但pods安装失败。POD失败是因为“'ARWorldTrackingConfiguration'仅在iOS 11.0中可用”。我需要更新我的AppDelegate.swift文件以便插件工作。下面是我的播客文件。我该如何解决这个问题 播客文件Flutter Flatter arkit_插件0.6.0吊舱无法安装,flutter,augmented-reality,Flutter,Augmented Reality,我正在尝试使用arkit_插件0.6.0,但pods安装失败。POD失败是因为“'ARWorldTrackingConfiguration'仅在iOS 11.0中可用”。我需要更新我的AppDelegate.swift文件以便插件工作。下面是我的播客文件。我该如何解决这个问题 播客文件 尝试更改此行config.build\u设置['IPHONEOS\u DEPLOYMENT\u TARGET']='9.0'如果没有帮助,尝试更改Xcode中的最小目标将尝试更改为config.build\u设置
尝试更改此行
config.build\u设置['IPHONEOS\u DEPLOYMENT\u TARGET']='9.0'
如果没有帮助,尝试更改Xcode中的最小目标将尝试更改为config.build\u设置['IPHONEOS\u DEPLOYMENT\u TARGET']='11.0'。现在可以正常工作,此帖子可以关闭。感谢您的快速回复。请尝试更改此行config.build\u设置['IPHONEOS\u DEPLOYMENT\u TARGET']='9.0'
如果没有帮助,请尝试更改Xcode中的最小目标将尝试更改为config.build\u设置['IPHONEOS\u DEPLOYMENT\u TARGET']='11.0'。现在可以正常工作,此帖子可以关闭。谢谢你的快速回复。
platform :ios, '12.0'
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
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
target 'Runner' do
use_frameworks!
use_modular_headers!
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)
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['OTHER_SWIFT_FLAGS'] = '-DDISABLE_TRUEDEPTH_API'
end
end
end