iOS应用程序OTA安装失败,出现错误Domain = MIInstallerErrorDomain Code = 11 Bundle缺失或CFBundleExecutable无效

时间:2017-02-06 10:56:24

标签: ios swift xcode installation ota

我无法理解为什么我的ipa无法在测试设备上安装OTA。

我的项目是纯粹的Swift,只有一个Swift框架(Alamofire)通过Carthage添加(我也尝试删除它并使用相同的安装结果重建应用程序)。

我使用Xcode 8.2.1在macOS 10.12.3上构建,部署目标是iOS 10.0。

我存档应用程序,然后在获取ipa文件时导出Ad Hoc分发 我使用BetaBuilder用于iOS应用程序制作清单文件等等,然后我将BetaBuilder提供的所有文件上传到我的Web服务器。我有一个有效的域名和有效的comodo ssl证书。我转到我的网页,获取BetaBuilder生成的标准页面,按下安装链接,获取iOS警报,询问我是否要安装该应用程序,按"安装"然后什么也没发生。

我已经成功地以这种方式分发了以前版本的应用程序。

我从设备获得的日志是(我删除了不必要的信息):

iPhone itunesstored(AppStoreDaemon)[95] <Info>: [<private>]: We have the entitlement: com.apple.appstored.private result: 1
iPhone MobileSafari(UIKit)[215] <Notice>: app did become active
iPhone appstored[126] <Info>: [<private>]: We have the entitlement: com.apple.appstored.private for pid: 95 result: 1
iPhone appstored[126] <Info>: [<private>]: Installing manifest: <private> for client: <private>
iPhone appstored[126] <Error>: [<private>]: Imported download: 2976036528959945147 for bundle: my.bundle.id
iPhone appstored[126] <Info>: [<private>]: Starting job 2976036528959945147
iPhone appstored[126] <Notice>: [<private>]: Adding download(s): <private>
iPhone appstored[126] <Info>: [<private>]: Preparing download: 2976036528959945147 / <private>
iPhone appstored[126] <Info>: [<private>]: Using media asset: -2790838922200582333, for download: 2976036528959945147 / <private>, is local cache: 0, URL: <private>
iPhone appstored[126] <Info>: [<private>]: Running HEAD operation to get size for asset: -2790838922200582333 for download: 2976036528959945147 / <private>
iPhone appstored[126] <Info>: [<private>]: Loading thumbnail from URL: <private>

iPhone appstored(appstored)[126] <Notice>: TIC TCP Conn Start  - connection logs

iPhone mDNSResponder[101] dns resolving logs

iPhone itunesstored(iTunesStore)[95] <Notice>: Could not load library [21]

iPhone appstored(libsystem_network.dylib)[126] <Info>: nw_endpoint_resolver_update - connection and downloading logs 

iPhone appstored[126] <Info>: [<private>]: Back with icon data for download: 2976036528959945147 / <private>
iPhone appstored[126] <Info>: [<private>]: Updating placeholder icon for download: 2976036528959945147 / <private>
iPhone appstored[126] <Info>: [<private>]: Installing icon for <private>
iPhone appstored[126] <Info>: [<private>]: Generated Info.plist for app placeholder: <private>
iPhone appstored(MobileInstallation)[126] <Notice>: <private>:InstallPlaceholder:1:Success:<private>
iPhone installd(MobileSystemServices)[40] <Notice>: 0x1926a000 -[MIClientConnection _doInstallationForURL:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.appstored/2976036528959945147.app" type Placeholder (LSInstallType = 1) requested by appstored (pid 126)
iPhone installd(MobileSystemServices)[40] <Notice>: 0x1926a000 -[MIInstaller _extractPackageWithError:]: Incoming install at /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.wPzZXY/6528959945147.app had class 3; changing to class 4
iPhone installd(MobileSystemServices)[40] <Notice>: 0x1926a000 -[MIExecutableBundle _validateWithError:]: 81: Bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.wPzZXY/6528959945147.app has missing or invalid CFBundleExecutable in its Info.plist
iPhone installd(MobileSystemServices)[40] <Notice>: 0x1926a000 -[MIInstaller _bundlesAtURL:error:]: Failed to create bundle for file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.wPzZXY/6528959945147.app/ : Error Domain=MIInstallerErrorDomain Code=11 "Bundle at path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.wPzZXY/extracted/2976036528959945147.app has missing or invalid le in its Info.plist" UserInfo={LegacyErrorString=MissingBundleExecutable, FunctionName=-[MIExecutableBundle _validateWithError:], NSLocalizedDescription=Bundle at path /private/var/installd/Library/Caches/.installd.staging/temp.wPzZXY/extracted/2976036528959945147.app has missing or invalid CFBundleExecutable in its Info.plist, SourceFileLine=81}
iPhone appstored(MobileInstallation)[126] <Notice>: <private>:InstallPlaceholder:2:Fail:<private>
iPhone SpringBoard(MobileCoreServices)[48] <Error>: LaunchServices observer: Apps Failed be installed: <private>

我已经仔细检查过,我在Info.plist和bundle中都有CFBundleExecutable名称。我可以在我的本地设备上构建和运行应用程序。我还检查了我正在构建正确的配置文件。

有几个与我有关的未解答的问题:

Has missing or invalid CFBundleExecutable in its Info.plist

CFBundleExecutable missing or invalid

根据第一个,我试图不检查&#34;从bitcode重建的复选标记&#34;没有任何成功。

我将不胜感激。

1 个答案:

答案 0 :(得分:0)

它实际上与网络服务器设置有关。它正在缓存这条路,而这条路又可以下载。

设置适当的缓存(无缓存:)后,一切似乎都恢复正常。