requires a provisioning profile

2022-11-27  本文已影响0人  crazyfox

Xcode升级到14后,编译报错:

Showing Recent Errors Only
/Users/user/XXX.ios/XXX.xcodeproj: "XXX" requires a provisioning profile with the App Groups feature. Select a provisioning profile in the Signing & Capabilities editor.

解决办法:

podfile添加

post_install do |installer|
  installer.pods_project.targets.each do |target|
    # 针对Bundle类型的做强制不签名
    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end

https://juejin.cn/post/7143160997459542046

上一篇 下一篇

猜你喜欢

热点阅读