xcodebuild无法在催化剂支持下构建SPM软件包

时间:2020-02-28 18:39:16

标签: xcode xcodebuild swift-package-manager

我正在尝试使用xcodebuild命令行工具来构建mac催化剂项目。该项目最初是一个iOS应用,现在支持mac催化剂。该项目正在使用Cocoapods和Swift Package Manager,因为我们有一些不支持后者的库。我正在使用以下xcodebuild命令

xcodebuild -workspace 'PROJECT.xcworkspace' -scheme 'MY_SCHEME' -configuration 'MY_CONFIG' CODE_SIGN_IDENTITY='MY_IDENTITY' ENABLE_BITCODE=YES ONLY_ACTIVE_ARCH=NO DEBUG_INFORMATION_FORMAT=dwarf-with-dsym

它失败并出现以下错误

error: Signing for "RealmCore" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'RealmCore' from project 'RealmCore')
error: Signing for "Alamofire" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Alamofire' from project 'Alamofire')
error: Signing for "Realm" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Realm' from project 'Realm')

所有提到的库都是使用SPM添加的。我不明白为什么会失败。快速打包是否需要开发团队?

另外,问题似乎只是添加了mac催化剂靶。我有一个iOS应用程序分支,它不具有相同SPM依赖关系的催化剂支持,并且xcodebuild可以正常工作。

0 个答案:

没有答案