美文网首页
Xcode14三方库签名报错

Xcode14三方库签名报错

作者: 猪猪行天下 | 来源:发表于2022-09-29 17:29 被阅读0次

今天更新升级了一下Xcode14,打开项目运行居然报错了:

Signing for "ESPullToRefresh-ESPullToRefresh" requires a development team. Select a development team in the Signing & Capabilities editor.

这是什么情况,三方库也需要设置一个开发团队了。

如何解决

解决方案1:

修改Podfile文件,在Podfile中添加如下内容:

post_install do |installer|
        installer.generated_projects.each do |project|
            project.targets.each do |target|
                target.build_configurations.each do |config|
                        config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
                end
            end
        end
end

或使用下面这种蒋Sign置为空字符:

installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
        config.build_settings['CODE_SIGN_IDENTITY'] = ''
    end
end

解决方案2:

  1. 终端执行sudo gem install cocoapods-pod-sign

  2. 执行bundle init,此时生成一个Gemfile文件,看输出路径Writing new Gemfile to /Users/xxx/Gemfile

  3. 修改Gemfile文件,将这两行代码复制粘贴到文件末尾

    gem 'cocoapods-pod-sign'
    gem 'cocoapods'
    
    
Gemfile.png
  1. 执行bundle install,让文件的修改生效
  2. cd 到项目目录执行pod install --verbose

相关文章

网友评论

      本文标题:Xcode14三方库签名报错

      本文链接:https://www.haomeiwen.com/subject/ctykartx.html