ssh xcodebuild 没有签名证书
ssh xcodebuild no signing certificate
当我尝试使用 xcodebuild 通过 ssh 构建我的应用程序时
xcodebuild -sdk iphoneos10.1 -target <app_target> -configuration Debug CODE_SIGN_IDENTITY="iPhone Developer" PROVISIONING_PROFILE=<profile> CONFIGURATION_BUILD_DIR=<some_dir>
出现错误
No signing certificate "iOS Development" found: No
"iOS Development" signing certificate matching team ID "team_id"
with a private key was found. Code signing is required for product
type 'Application' in SDK 'iOS 10.1'
如果我 运行 它没有 ssh,它就会构建。
CODE_SIGN_IDENTITY 不同于 "certificate_name"。他们不应该是一样的吗?我要求的是 "iPhone Developer" 构建错误大约是 "iOS Development".
我已经尝试 this answer(如果与我的问题完全相关的话)。
当我尝试 ssh 时 security list-keychains
它列出了系统钥匙串两次。如果我没有 ssh-ed,它也会显示用户登录 keychain-db。
我在 ssh-ed 时解锁了登录钥匙串,看它是否会显示在列表中,但事实并非如此。
CODE_SIGN_IDENTITY
应该是这样的:
iPhone Developer: Your Name (3374ZYXN2A)
您可以在您的钥匙串中找到它:
- 打开钥匙串访问
- 找到您的证书
- 右键单击它并选择 "Get Info"
- 复制 "Common Name"
中的条目
最简单的解决方案是将证书从登录钥匙串复制到系统钥匙串。不知道这有多安全或正确。
当我尝试使用 xcodebuild 通过 ssh 构建我的应用程序时
xcodebuild -sdk iphoneos10.1 -target <app_target> -configuration Debug CODE_SIGN_IDENTITY="iPhone Developer" PROVISIONING_PROFILE=<profile> CONFIGURATION_BUILD_DIR=<some_dir>
出现错误
No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "team_id" with a private key was found. Code signing is required for product type 'Application' in SDK 'iOS 10.1'
如果我 运行 它没有 ssh,它就会构建。 CODE_SIGN_IDENTITY 不同于 "certificate_name"。他们不应该是一样的吗?我要求的是 "iPhone Developer" 构建错误大约是 "iOS Development".
我已经尝试 this answer(如果与我的问题完全相关的话)。
当我尝试 ssh 时 security list-keychains
它列出了系统钥匙串两次。如果我没有 ssh-ed,它也会显示用户登录 keychain-db。
我在 ssh-ed 时解锁了登录钥匙串,看它是否会显示在列表中,但事实并非如此。
CODE_SIGN_IDENTITY
应该是这样的:
iPhone Developer: Your Name (3374ZYXN2A)
您可以在您的钥匙串中找到它:
- 打开钥匙串访问
- 找到您的证书
- 右键单击它并选择 "Get Info"
- 复制 "Common Name" 中的条目
最简单的解决方案是将证书从登录钥匙串复制到系统钥匙串。不知道这有多安全或正确。