简体   繁体   English

xcodebuild代码签名错误:未找到匹配的代码签名身份:

[英]xcodebuild Code Sign error: No matching codesigning identity found:

I am currently in process of developing my app and haven't enrolled into App developer program. 我目前正在开发我的应用程序,尚未加入App开发人员计划。 Though have mac, created apple id and developing my app with simulator. 虽然有Mac,但创建了Apple ID并使用模拟器开发了我的应用。 Question: 题:

  1. Do you need to enroll (pay $99) to use xcodebuild (the commandline tool to build)? 您是否需要注册(支付$ 99)才能使用xcodebuild(要构建的命令行工具)?
  2. I have created a starter app and was able to build successfully with XCode (IDE) but while building the same with xcodebuild -target -sdk iphoneos -configuration debug I was getting 我已经创建了一个入门应用程序,并且能够使用XCode(IDE)成功构建,但是在使用xcodebuild -target -sdk iphoneos -configuration debug进行构建时却得到了

     Code Sign error: No matching codesigning identity found: No codesigning identities (ie certificate and private key pairs) matching “XXXXXX” were found. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'* 

And then I changed "Code signing identity" and updated with "Don't code sign" 然后,我更改了“代码签名身份”,并更新为“不要代码签名”

Now I am only getting 现在我只得到

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'*

Any idea how to fix this? 任何想法如何解决这个问题?

In order to build for the device you need pay $99 to enroll in the iOS developer program. 为了构建该设备,您需要支付99美元才能注册iOS开发人员计划。 Without doing that you can only compile for the simulator 否则,您只能为模拟器编译

So the two issues are that you are telling it to build for device with -sdk iphoneOS there should be a different parameter you can pass for that flag which will represent the simulator. 因此,有两个问题是您要告诉它使用-sdk iphoneOS为设备构建,应该为该标志传递一个不同的参数,该标志将表示模拟器。

You can also help guide it by adding the -destination flag and telling it you want to build with the intention of the simulator. 您还可以通过添加-destination标志并告诉您要根据模拟器的意图进行构建来帮助指导它。

This information can be found on the xcodebuild manual page 此信息可以在xcodebuild手册页上找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM