[英]iOS Catalyst Cocoapod framework error - signing requires a development team
I'm updating my iOS app to also work on Mac.我正在更新我的 iOS 应用程序,使其也可以在 Mac 上运行。 After selecting the Mac checkbox, I am getting the error in the screenshot below when trying to build for Mac.
选择 Mac 复选框后,我在尝试为 Mac 构建时收到以下屏幕截图中的错误。 It's telling me I need to select a development team for this Cocoapod framework.
它告诉我我需要 select 这个 Cocoapod 框架的开发团队。 However, I can build to an iPhone or iPad without selecting a development team.
但是,我可以在不选择开发团队的情况下构建 iPhone 或 iPad。
I tried selecting a development team which made the error go away but when I uploaded the app binary to Apple, it was rejected with the error: ITMS-90284: Invalid Code Signing - The executable 'Timestamp.app/Contents/Frameworks/BSImagePicker.framework/Versions/A/Resources/BSImagePicker.bundle' must be signed with the certificate that is contained in the provisioning profile.我尝试选择一个开发团队,导致错误 go 消失,但是当我将应用程序二进制文件上传到 Apple 时,它被拒绝并出现错误:ITMS-90284: Invalid Code Signing - The executable 'Timestamp.app/Contents/Frameworks/BSImagePicker. framework/Versions/A/Resources/BSImagePicker.bundle' 必须使用配置文件中包含的证书进行签名。
I am thinking I'm getting this error from Apple because I selected a development team for this Cocoapod framework.我在想我从 Apple 那里得到了这个错误,因为我为这个 Cocoapod 框架选择了一个开发团队。
Any suggestion on how to handle this error for a Catalyst app?有关如何为 Catalyst 应用程序处理此错误的任何建议?
I have this issue with MessageKitAssets, this works for me:我对 MessageKitAssets 有这个问题,这对我有用:
Select MessageKitAssets from pods targets,来自 Pod 目标的 Select MessageKitAssets,
Select a team manually, and set signing certificate 'sign to run locally' (for platform macOS) Use iOS bundle id, provision profile not required. Select 手动组,并设置签名证书“签名以在本地运行”(对于平台 macOS)使用 iOS 捆绑 ID,不需要配置文件。
I solved this issue setting the development team
to each pod
during pod install
like this issue from CocoaPods
repo describes: https://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-546636698我解决了这个问题,在
pod install
期间将development team
设置为每个pod
,就像CocoaPods
repo 中的这个问题描述: https://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-546636698
You need to add the folling at the end of your Podfile
:您需要在
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
Then you need to do a pod install
in order to work.然后,您需要进行
pod install
才能工作。
You can find your team id
here: https://developer.apple.com/account/#!/membership您可以在此处找到您的
team id
: https://developer.apple.com/account/#!/membership
Add this to the top of your podfile:将此添加到 podfile 的顶部:
source 'https://github.com/CocoaPods/Specs.git'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.