我如何指定RoboVM Gradle使用的临时配置文件? [英] How do I specify what provisional profile RoboVM Gradle uses?

查看:146
本文介绍了我如何指定RoboVM Gradle使用的临时配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  project(:ios ){
apply plugin:robovm

.....

robovm {
iosSignIdentity =
iosProvisioningProfile =
iosSkipSigning = false
}
}

然而,无论我将哪种格式放在引号内,在调用gradlew ios:createIPA时都会发生错误,表明String错误。我尝试了证书和个人资料的绝对路径,它在Keychain Access中显示的名称,没有任何工作。



有人熟悉这个吗?

解决方案

iosSignIdentity可以在这里找到:



<$ p $ ABC123iPhone Developer:ME(ABC12345)
2)DEF456iPhone Distribution:ME(ABC34578)
2找到的有效身份

您需要指定字符串,例如 iPhone发行版:ME(ABC34578)



您的配置文件是在XCode中出现的'确切'名称(对不起,我不知道该命令点击 XCode - > 首选项 - > 帐户 - >选择您的Apple ID - > 查看详细信息
如果您的供应配置文件不存在,请单击刷新按钮



配置块应该看起来像这样:


robovm {

  iosSignIdentity ='iPhone分配:ME(ABC34578)'
iosProvis ioningProfile ='PROD PROVISIONING PROFILE'

}



I searched around a bit and I found to edit build.gradle to be something like this

project(":ios") {
    apply plugin: "robovm"

    .....

    robovm {
        iosSignIdentity = ""
        iosProvisioningProfile = ""
        iosSkipSigning = false    
    }
 }

However, no matter what format I put inside the quotations, I get an error when calling gradlew ios:createIPA that the String is wrong. I tried absolute path of the certificate and profile, the name of it displayed inside Keychain Access, none work.

Is anyone familiar with this? Thanks!

解决方案

the iosSignIdentity can be found here:

$ security find-identity -v -p codesigning
1) ABC123 "iPhone Developer: ME (ABC12345)"
2) DEF456 "iPhone Distribution: ME (ABC34578)"
 2 valid identities found

You need to specify the string, for example "iPhone Distribution: ME (ABC34578)"

Your provisioning profile is the 'exact' name that appears in XCode (sorry, I don't know the command for this)

Click on XCode -> Preferences -> Accounts -> Select your Apple ID -> View Details If your provisioning profiles aren't there, click the refresh button

So, your configuration block should look something like this:

robovm {

iosSignIdentity = 'iPhone Distribution: ME (ABC34578)'
iosProvisioningProfile = 'PROD PROVISIONING PROFILE' 

}

这篇关于我如何指定RoboVM Gradle使用的临时配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆