简体   繁体   English

为什么我的企业应用程序分发链接不起作用?

[英]Why doesn't my enterprise app distribution link work?

I have an Enterprise-signed iOS app that I wish to distribute to my fellow co-workers. 我有一个企业签名的iOS应用程序,希望分发给我的同事。 I started beta-testing around the end of October, right around when iOS 10 was in beta/released. 我于10月底左右开始进行Beta测试,就在iOS 10处于Beta /发布状态时。 I set up a page that people could download the app from, and everything was great. 我设置了一个页面,人们可以从中下载该应用程序,一切都很棒。

I had to put the app aside for a few months when some other work came up, but now I wish to get back to the app. 当其他工作出现时,我不得不将应用程序搁置几个月,但是现在我希望回到该应用程序。 And, lo and behold, my app link no longer works. 而且,瞧,我的应用程序链接不再起作用。 No error message, nothing. 没有错误信息,什么都没有。

Using a proxy, I can see that when I tap the link, it goes and fetches my plist, but doesn't pop up the dialog. 使用代理,我可以看到,当我点击链接时,它会去并获取我的plist,但不会弹出对话框。

I am running iOS 10.1.1 on an iPhone 6. 我在iPhone 6上运行iOS 10.1.1。

This page has a few links, none of which work for me: https://management.senseilabs.com/appdist/ 该页面具有一些链接,这些链接都不适合我: https : //management.senseilabs.com/appdist/

The plist that gets returned looks like this: 返回的plist如下所示:

<plist>
  <dict>
    <key>items</key>
    <array>
      <dict>
        <key>assets</key>
        <array>
          <dict>
            <key>kind</key>
            <string>software-package</string>
            <key>url</key>
            <string>https://management.senseilabs.com/appdist/Genome_0.9.0.ipa</string>
          </dict>
          <dict>
            <key>kind</key>
            <string>full-size-image</string>
            <key>url</key>
            <string>https://management.senseilabs.com/appdist/iTunesArtwork@2x.png</string>
            <key>needs-shine</key>
            <true />
          </dict>
          <dict>
            <key>kind</key>
            <string>display-image</string>
            <key>url</key>
            <string>https://management.senseilabs.com/appdist/iTunesArtwork@2x.png</string>
            <key>needs-shine</key>
            <true />
          </dict>
        </array>
      </dict>
    </array>
    <key>metadata</key>
    <dict>
      <key>bundle-identifier</key>
      <string>com.klick.sensei.genome2</string>
      <key>bundle-version</key>
      <string>0.9.0</string>
      <key>kind</key>
      <string>software</string>
      <key>subtitle</key>
      <string>Genome</string>
      <key>title</key>
      <string>Genome</string>
    </dict>
  </dict>
</plist>

EDIT: I tested it on 9.2.1, and it's not working there either. 编辑:我在9.2.1上对其进行了测试,并且它也不起作用。 Hm.

In case some poor soul wanders by, I'll answer this question instead of deleting it, even though it's caused by my own incompetence. 万一有些可怜的灵魂徘徊,我将回答这个问题而不是删除它,即使它是由我自己的无能引起的。

The metadata key in the plist exists in the wrong place. plist中的metadata密钥存在于错误的位置。 It needs to be beside assets inside the items array. 它必须在items数组内的assets旁边。 That is, the structure, were it expressed as a plain JSON object, should look like this: 也就是说,该结构以简单的JSON对象表示时,应如下所示:

{
    "items": [
        {
            "assets": { ... },
            "metadata": { ... }
        }
    ]
}

I had it like this: 我有这样的:

{
    "items": [
        {
            "assets": { ... }
        }
    ],
    "metadata": { ... }
}

(We had it set up correctly, but our plist generator got modified inadvertently, which is why it used to work everywhere, but now works nowhere) (我们已经正确设置了它,但是我们的plist生成器无意间被修改了,这就是为什么它曾经在任何地方都可以工作,但现在却无处可用的原因)

This gist was clutch in figuring out what went wrong: https://gist.github.com/hramos/774468 这个要点是找出问题的关键: https : //gist.github.com/hramos/774468

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

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