Xcode16 打包报错"error: Signing for “XX” requires a development team."

运行没问题,打包报错“error: Signing for “XXXXX” requires a development team.”

方案一: (推荐)

post_installdo|installer|

      installer.pods_project.targets.eachdo|target|

          target.build_configurations.eachdo|config|

              config.build_settings['CODE_SIGNING_ALLOWED'] ="NO"

          end

      end

  end

方案二: 配置DEVELOPMENT_TEAM

post_installdo|installer|

    installer.pods_project.targets.eachdo|target|

        target.build_configurations.eachdo|config|

              config.build_settings["DEVELOPMENT_TEAM"] = " Your Team ID "

         end

     end

 end


方案三:直接在项目里面修改

选中对应的Target ---> Build Settings ---> User_Defined ---> CODE_SIGNING_ALLOWED = NO

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容