ios - 部署到设备时,Xcode 命令 CodeSign 因非零而失败

标签 ios xcode xcode10 codesign

我在尝试将应用程序部署到设备时收到此错误。我正在使用带有免费开发者帐户的 Xcode 10.1。在签名部分,我设置了带有签名证书 iPhone Developer 的个人团队。我可以在 iOS 模拟器中运行该应用程序,但不能在真实设备中运行。 enter image description here

确切的错误信息:

CodeSign /Users/***/Library/Developer/Xcode/DerivedData/****-eqztbodhqkugrwevuvkmzysmcvdj/Build/Products/Debug-iphoneos/****\ Mobile.app (in target: ******)

cd /Users/***/Projects/**********/platforms/ios

export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate



Signing Identity:     "iPhone Developer:******@*****.com (QALD7Y5PCU)"

Provisioning Profile: "iOS Team Provisioning Profile: com.***.****"

                      (7475de4a-3ae3-4798-9c9c-a8e65a1bc1b9)



/usr/bin/codesign --force --sign 55DEB33A3DF3254D66B1AC6CEACB052CABCF3644 --entitlements /Users/***/Library/Developer/Xcode/DerivedData/************-eqztbodhqkugrwevuvkmzysmcvdj/Build/Intermediates.noindex/****\ Mobile.build/Debug-iphoneos/****\ Mobile.build/****\ Mobile.app.xcent --timestamp=none /Users/****/Library/Developer/Xcode/DerivedData/**********-eqztbodhqkugrwevuvkmzysmcvdj/Build/Products/Debug-iphoneos/****\ Mobile.app



/Users/****/Library/Developer/Xcode/DerivedData/********-eqztbodhqkugrwevuvkmzysmcvdj/Build/Products/Debug-iphoneos/**** Mobile.app: errSecInternalComponent

Command CodeSign failed with a nonzero exit code

enter image description here

最佳答案

您的免费帐户代码签名应如下所示 Check this

关于ios - 部署到设备时,Xcode 命令 CodeSign 因非零而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55335808/

相关文章:

ios - 在 xcode 中使用像素而不是点?

ios - 适用于 iOS 应用程序的 CCAvenue 网关集成套件

ios - Swift 4 - 如何从当前 View Controller 设置和显示新的 Root View Controller

cocoa-touch - (Xcode) UIButtons 和页面之间的链接

swift - 错误 : Command CodeSign failed with a nonzero exit code after installing Xcode10 beta 5?

ios - 跨 Xcode 项目中的所有方法设置调试器断点

ios - 我如何在 xcode 构建阶段获取方案名称(shell 脚本)

xcode - Xcode 11.1 GM Seed 附带的 iOS Simulator (11.1) 似乎无法启动 iOS 13.1 设备

ios - 错误 : unable to load standard library for target 'arm64-apple-ios10.0-simulator' ?

ios - 在 ViewController.swift 和 segue 中分配给 UIButton 的属性适用于模拟器,但不适用于设备