2016-06-08 47 views
7

我有一款应用程序,可以通过S3存储桶使用企业分发下载,它首次失败并显示正在加载,但当我使用配置实用程序手动安装证书时将设备连接到计算机,同一网站链接开始工作。我正在使用Jenkins创建构建。无法在iOS设备上首次安装企业内部分发应用程序

证书没有自动安装,我按照苹果标准使用清单。我的清单文件的内容如下:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"  "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
<key>items</key> 
<array> 
    <dict> 
     <key>assets</key> 
     <array> 
      <dict> 
       <key>kind</key> 
       <string>software-package</string> 
       <key>url</key> 
       <string>https://dev-ios-builds.mycompany.com/AppName-1.0-56-2016-06-07.66.ipa</string> 
      </dict> 
      <dict> 
       <key>kind</key> 
       <string>display-image</string> 
       <key>needs-shine</key> 
       <true/> 
       <key>url</key> 
       <string>https://dev-ios-builds.mycompany.com/images/Icon.png</string> 
      </dict> 
      <dict> 
       <key>kind</key> 
       <string>full-size-image</string> 
       <key>needs-shine</key> 
       <true/> 
       <key>url</key> 
       <string>https://dev-ios-builds.mycompany.com/images/iTunesArtwork.png</string> 
      </dict> 
     </array> 
     <key>metadata</key> 
     <dict> 
      <key>bundle-identifier</key> 
      <string>com.companyname.appname.dev</string> 
      <key>bundle-version</key> 
      <string>1.0</string> 
      <key>kind</key> 
      <string>software</string> 
      <key>title</key> 
      <string>AppName Dev</string> 
     </dict> 
    </dict> 
</array> 

+0

的可能的复制[下载-点播服务应用内从 - 另一个-APP-编程](http://stackoverflow.com/questions/37156632/download-inhouse-app-from-another- APP-编程/ 37157308#37157308) –

回答

2

我通过检查设备日志来发现问题,它说没有找到嵌入式设置。

我只是解压缩了通过使用Jenkins创建的.ipa文件,并将其与通过使用Xcode创建的.ipa进行了比较。我得到了jenkins没有正确嵌入配置文件的区别。

我通过在jenkins作业中为配置文件提供文件夹路径而犯了一个错误,只是通过特定的配置文件路径进行了更新。

enter image description hereenter image description here

1

我有类似的问题,用发展的基础之上。我的Jenkins构建并签署了二进制文件,然后上传到HockeyApp进行分发,但不知何故,使用新设备的人无法安装构建版本,即使他们的设备位于配置文件中。我发现Jenkins正在使用自定义开发配置文件,而不是由Xcode管理的团队配置文件。症状与您描述的完全相同,当我在设备上手动安装该自定义配置文件时,他们可以安装该应用程序。

对我来说,解决的办法是更新Jenkins的工作,使用团队配置文件而不是自定义配置文件。也许你应该检查你的Jenkins用什么来签名应用程序?

相关问题