更新后 有一些坑,踩到了,这里记录一下
    
     1.部分插件pod下来后需要指定证书签名 默认为none,导致会编译失败
    
   
在Podfile中添加如下代码解决,方案2选1
# pod三方库代码的签名指定-方案1
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
# pod三方库代码的签名指定-方案2
# config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
示例:
post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
          # 关闭BITCODE
          config.build_settings['ENABLE_BITCODE'] = 'NO'
          # 指定SWIFT_VERSION
          config.build_settings['SWIFT_VERSION'] = '5.0'
          # pod三方库代码的签名指定-方案1
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
          config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
          # pod三方库代码的签名指定-方案2
          # config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
        end
  end
end
    
     2.需要添加libswiftCoreGraphics.tbd, 才能兼容ios12.2以下系统
    
   
    
    
    
     3.IOS升级到16后,多了个开发者管理开关,默认是关闭的 运行项目会报:
     
      developer mode disable
     
    
   
设置 => 隐私与安全性 => 开发者模式
   
  
 
版权声明:本文为weixin_38025168原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。