当我切换到使用Xcode 14构建时,我遇到了相同的问题。
Podfile
中的路径可以帮助我解决这个问题。
post_install do |installer|
installer.pods_project.targets.each do |target|
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://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-1201465446
最新的Stripe iOS SDK在Xcode 13.2.1 Public Release上没有任何签名错误。
我建议您退出开发者帐户并重新登录。然后清除构建文件夹并运行全新的构建,以排除缓存或配置问题。
我还建议您尝试使用之前的非测试版(公共)Xcode版本构建应用程序,以确认这可能与Xcode测试版有关。
似乎CocoaPods GitHub仓库中存在类似错误的问题[1]。其中一个评论中提供了一种解决方法,您可以尝试并查看是否解决了错误。