gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 12:42:36 24 4
gpt4 key购买 nike

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

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

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

当我获得 ipa 文件时,我将应用程序存档,然后导出以进行临时分发我用BetaBuilder让 iOS 应用程序制作 list 文件等,然后我将 BetaBuilder 提供的所有文件上传到我的网络服务器。我有一个有效的域名和有效的 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

根据第一个,我尝试不检查“从位码重建”的复选标记,但没有成功。

如果有任何帮助,我将不胜感激。

最佳答案

这实际上与网络服务器设置有关。它正在缓存路径,这反过来又搞乱了可下载。

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

关于iOS 应用程序 OTA 安装失败,并出现错误 Domain=MIInstallerErrorDomain Code=11 Bundle 缺少或无效 CFBundleExecutable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42066078/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com