我的单触摸应用程序拒绝编译以进行分发,数组索引超出范围

发布于 2024-10-02 23:24:18 字数 624 浏览 6 评论 0原文

当我选择已设置的完整企业发行版配置文件时,我无法在 Monotouch 中编译我的应用程序。所有其他配置文件都工作正常。

具体来说:当我点击构建按钮时,我得到

检测签名身份...

0错误0警告,只是构建失败。数组索引超出范围

我猜这是一个配置问题,我没有做一些重要的事情。

网络上有关于临时发行版构建的指示,但没有关于完整企业发行版的真正文档。

我有以下内容:

Monotouch:企业版

Apple:企业会员资格,已安装公司证书和证书dev 用户证书并下载了 dev、adhoc 和的配置证书。企业并最终创建了App ID。

我花了两天时间在网上搜索类似的问题,但没有发现任何真正接近的问题。有一次,我用 Apple Dev 网站清理了我的所有配置文件并重新导入它们,这解决了我遇到的一些其他问题。

拥有完整的企业权利/证书意味着我不需要UDID,我只需签署我的生命以防止非法传播。除了在配置方面缺少某些内容之外,唯一的事情是 UDID 保存在证书的数组中,并且由于我没有为此构建指定任何内容,因此会出现错误。 (但肯定不应该!)

如果我使用其中指定的 UDID 的临时发行版,我可以将其加载到我的计算机上。

任何指点都会受到极大的欢迎

I am unable to compile my app in Monotouch when I select the full enterprise distribution profile I have setup. All the other profiles work ok.

To be specific: when I hit the build button I get

Detecting signing identity...

0 errors 0 warnings, just Build failed. Array index out of range

I am guessing this is a provisioning issue and I have failed to do something important.

There are pointers on the web to adhoc ditribution builds but no real documentation on full enterprise distribution.

I have the following:

Monotouch : Enterprise edition

Apple : Enterprise membership, have installed the corp certificate & dev user certificate and downloaded the provisioning certificates for dev, adhoc & enterprise and finally created the App ID.

I have spent 2 days scouring the web for similar problems but have found nothing really close. At one point I scrubbed all my profiles with Apple Dev site and re imported them and this resolved some other issues I was having.

Having the full enterprise rights/certificate means I do not need UDIDs, I just have to sign my life away to prevent illegal ditribution. The only thing other than just plain missing something on the provisioning front is that the UDID's are held in an array in the certificates and as I have none specified for this build it errors out. (But it shouldn't surely!)

If I use the adhoc distribution which as UDID's specified in it I can load it on my machine.

Any pointers would be greatly received

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伪装你 2024-10-09 23:24:18

我也有类似的情况。

“mtouch 构建失败”。没有其他消息。

必须寻求技术支持,最终发现这是一个编译器错误,他们给我发送了针对我的特定情况的补丁。我认为它将在下一个版本中出现。

然而,我确实学到了两件事,可能会对你有所帮助。

a) 就我而言,如果我更改了项目的“链接器行为”设置,问题就会消失。项目-> [项目]选项->构建-> iPhone 构建 ->链接器行为

尝试所有可用选项。看看是否有所作为。

b) 在同一个iPhone构建选项页面上,你可以在“额外参数”设置中输入“-v -v -v”。现在检查编译后的构建输出。可能还有其他细节。

最后,我拔了我的头发几天后出现了与您类似的错误,Novell 很快就发现并修复了该错误,然后看看会发生什么

I had a similar situation.

"mtouch failed to build". No other messages.

Had to go through tech support and eventually found it was a compiler bug and they sent me a patch for my particular case. I assume it will come out in the next release.

However, I did learn two things along the way that may help you.

a) in my case the problem went away if I changed the "Linker Behavior" setting for the project. Project-> [project] Options -> Build -> iPhone Build -> Linker Behavior

Try all available options. See if makes a difference.

b) On the same iPhone Build options page you can enter "-v -v -v" to the "extra arguments setting. Now check the build output after compiling. There may be additional details.

Finally, I pulled my hair out for a few days with an error similar to yours. In the end it was a compiler bug. Novell was quite quick to identify and fix the bug. Maybe just log it with them and see what happens.

Good luck

静待花开 2024-10-09 23:24:18

我在“测试”和“发布”版本之间切换时遇到了这个问题,它们具有不同的应用程序标识符 - 我切换到“发布”配置文件,但我忘记修复“构建”下的应用程序显示名称和应用程序标识符/ iPhone 应用程序。怀疑显示名称会有所不同,但应用程序标识符肯定会有所不同。

I had this problem when switching between my "test" and "release" builds, which had different app identifiers -- I'd switched to the "release" provisioning profile, but I forgot to fix the app display name and app identifier under Build / iPhone Application. Doubt the display name makes a difference but the app identifier certainly does.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文