更新XCode14后工程报错:pod的资源文件需要签名

转自:https://github.com/DevDragonLi/iOSInterviewsAndDevNotes/commit/ec98e915311bc6751a30130f287aec9e2d9fd5ef
龙哥的解决方案

Pod工程中的Bundle target签名报错

  • 开启generate_multiple_pod_projects 参数工程
post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGN_IDENTITY'] = ''
         end
    end
  end
end
  • 未开启generate_multiple_pod_projects 参数工程
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
       config.build_settings['CODE_SIGN_IDENTITY'] = ''
    end
  end
end

你可能感兴趣的:(更新XCode14后工程报错:pod的资源文件需要签名)