[英]iOS Catalyst Cocoapod framework error - signing requires a development team
我正在更新我的 iOS 应用程序,使其也可以在 Mac 上运行。 选择 Mac 复选框后,我在尝试为 Mac 构建时收到以下屏幕截图中的错误。 它告诉我我需要 select 这个 Cocoapod 框架的开发团队。 但是,我可以在不选择开发团队的情况下构建 iPhone 或 iPad。
我尝试选择一个开发团队,导致错误 go 消失,但是当我将应用程序二进制文件上传到 Apple 时,它被拒绝并出现错误:ITMS-90284: Invalid Code Signing - The executable 'Timestamp.app/Contents/Frameworks/BSImagePicker. framework/Versions/A/Resources/BSImagePicker.bundle' 必须使用配置文件中包含的证书进行签名。
我在想我从 Apple 那里得到了这个错误,因为我为这个 Cocoapod 框架选择了一个开发团队。
有关如何为 Catalyst 应用程序处理此错误的任何建议?
我对 MessageKitAssets 有这个问题,这对我有用:
来自 Pod 目标的 Select MessageKitAssets,
Select 手动组,并设置签名证书“签名以在本地运行”(对于平台 macOS)使用 iOS 捆绑 ID,不需要配置文件。
我解决了这个问题,在pod install
期间将development team
设置为每个pod
,就像CocoaPods
repo 中的这个问题描述: https://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-546636698
您需要在Podfile
的末尾添加以下内容:
def fix_config(config)
if config.build_settings['DEVELOPMENT_TEAM'].nil?
config.build_settings['DEVELOPMENT_TEAM'] = '<YOUR TEAM ID HERE>'
end
end
post_install do |installer|
installer.generated_projects.each do |project|
project.build_configurations.each do |config|
fix_config(config)
end
project.targets.each do |target|
target.build_configurations.each do |config|
fix_config(config)
end
end
end
end
然后,您需要进行pod install
才能工作。
您可以在此处找到您的team id
: https://developer.apple.com/account/#!/membership
将此添加到 podfile 的顶部:
source 'https://github.com/CocoaPods/Specs.git'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.