pod package error: Signing for "xxxxx" requires a development team 问题处理

65 阅读1分钟

pod package error: Signing for "xxxxx" requires a development team 问题处理

 /var/folders/69/gy0r1r6934q3n38ms1zv4mlh0000gn/T/cocoapods-cmmetj1k/Pods/Pods.xcodeproj: error: Signing for "xxxxx" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'xxxxx' from project 'Pods')

修改 cocopods-packager 源码

路径 /Library/Ruby/Gems/2.6.0/gems/cocoapods-packager-1.5.0/lib/cocoapods-packager 第33行

static_installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CLANG_MODULES_AUTOLINK'] = 'NO'
      config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
      config.build_settings["DEVELOPMENT_TEAM"] = "xxxx"
    end
    end

xxxx 换成你自己的 teamID