简体   繁体   English

iOS Catalyst Cocoapod 框架错误 - 签名需要开发团队

[英]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 应用程序处理此错误的任何建议?

Mac 构建错误

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 idhttps://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.

相关问题 Xcode 错误:签署……需要开发团队 - Xcode error: Signing for … requires a development team SDK“iOS 10.0”中的产品类型“应用程序”需要代码签名 - StickerPackExtension 需要开发团队错误 - Code signing is required for product type 'Application' in SDK 'iOS 10.0' - StickerPackExtension requires a development team error CodeName一台服务器错误:签署“ <AppName> ”需要开发团队。 在项目编辑器中选择一个开发团队 - CodeName One server error: Signing for “<AppName>” requires a development team. Select a development team in the project editor 签约“DKPhotoGallery-DKPhotoGallery”需要开发团队 - Signing for "DKPhotoGallery-DKPhotoGallery" requires a development team 签约《Runner》需要一个开发团队。 Select Signing & Capabilities 编辑器中的开发团队 - Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor Xcode存档构建失败。 签名需要开发团队 - Xcode archive build failing. Signing requires a development team Xcode 8构建失败:签署“ ProjectName”需要开发团队 - Xcode 8 build failed: Signing for “ProjectName” requires a development team 签署“ WebDriverAgentRunner”需要开发团队。 在项目编辑器中选择一个开发团队 - Signing for “WebDriverAgentRunner” requires a development team. Select a development team in the project editor 签署“[AppName]”需要开发团队。 在项目编辑器中选择一个开发团队。 - Signing for “[AppName]” requires a development team. Select a development team in the project editor. 签署“appnameTest”需要一个开发团队。 在项目编辑器中选择一个开发团队。 (在目标“appnameTest”中) - Signing for "appnameTest" requires a development team. Select a development team in the project editor. (in target 'appnameTest')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM