我有一个可以通过S3 Bucket使用Enterprise distribution下载的应用程序,它第一次失败并显示加载但是当我通过将设备连接到计算机使用配置实用程序手动安装证书时,相同的网站链接开始工作.我正在使用Jenkins来创建构建.
证书没有自动安装,我按照苹果标准使用清单.我的清单文件内容如下:
<?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>
解决方法
我通过检查设备日志来解决问题,它说未找到嵌入式配置.
我刚刚打开了使用Jenkins创建的.ipa文件,并将其与使用Xcode创建的.ipa进行了比较.我得到的不同是jenkins没有正确嵌入配置文件.
我通过在jenkins作业中为配置文件提供文件夹路径来做错,只是通过特定的配置文件路径更新了它.