升级到xcode14之后先遇到的问题:
xcode14 File not found: libarclite_iphoneos.a
解决办法:
修改ios/Podfile文件中的内容:
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
##新加下面来控制所有第三方的最小版本号控制在11
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
编译后遇到一个问题:
Undefined symbol: _SharpYuvConvert
Undefined symbol: _SharpYuvInit
Undefined symbol: _SharpYuvGetConversionMatrix
解决办法,运行之后我电脑解决编译问题:
请运行“pod deintegrate”、“pod install”和“pod update”
之后又遇到一个问题:
Run custom shell script '[CP] Embed Pods Frameworks'
...
...
Command PhaseScriptExecution failed with a nonzero exit code
从网上找了好久,终于在国外网站上找到解决办法:
这个文件中的这个位置增加"-f",以获取绝对链接路径
参考地址:https://github.com/flutter/flutter/issues/123852