iOS 应用程序 OTA 安装失败,出现错误 Domain=MIInstallerErrorDomain Code=11 Bundle 缺少或无效的 CFBundleExecutable
iOS app OTA installation fails with error Domain=MIInstallerErrorDomain Code=11 Bundle has missing or invalid CFBundleExecutable
我无法理解为什么我的 ipa 无法在测试设备上安装 OTA。
我的项目是纯粹的Swift,只有一个Swift框架(Alamofire)是通过Carthage添加的(我也尝试过删除它并重建应用程序,但安装结果相同).
我正在使用 Xcode 8.2.1 在 macOS 10.12.3 上构建,部署目标是 iOS 10.0.
我存档应用程序,然后在获得 ipa 文件时导出以进行临时分发
我为 iOS 应用程序使用 BetaBuilder 来制作清单文件等,然后我将 BetaBuilder 提供的所有文件上传到我的网络服务器。我有一个有效的域和一个有效的 comodo ssl 证书。我转到我的网页,获取由 BetaBuilder 生成的标准页面,按安装 link,收到询问我是否要安装该应用程序的 iOS 警报,按 "install",然后没有任何反应。
我已经通过这种方式成功分发了应用程序的先前版本。
我从设备上得到的日志是(我已经删除了不必要的信息):
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
根据第一个,我尝试不检查 "Rebuild from bitcode" 的复选标记,但没有成功。
如有任何帮助,我将不胜感激。
其实跟网络服务器设置有关。它正在缓存路径,这反过来又弄乱了可下载的内容。
设置适当的缓存后(无缓存:))一切似乎恢复正常。
我无法理解为什么我的 ipa 无法在测试设备上安装 OTA。
我的项目是纯粹的Swift,只有一个Swift框架(Alamofire)是通过Carthage添加的(我也尝试过删除它并重建应用程序,但安装结果相同).
我正在使用 Xcode 8.2.1 在 macOS 10.12.3 上构建,部署目标是 iOS 10.0.
我存档应用程序,然后在获得 ipa 文件时导出以进行临时分发 我为 iOS 应用程序使用 BetaBuilder 来制作清单文件等,然后我将 BetaBuilder 提供的所有文件上传到我的网络服务器。我有一个有效的域和一个有效的 comodo ssl 证书。我转到我的网页,获取由 BetaBuilder 生成的标准页面,按安装 link,收到询问我是否要安装该应用程序的 iOS 警报,按 "install",然后没有任何反应。
我已经通过这种方式成功分发了应用程序的先前版本。
我从设备上得到的日志是(我已经删除了不必要的信息):
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
根据第一个,我尝试不检查 "Rebuild from bitcode" 的复选标记,但没有成功。
如有任何帮助,我将不胜感激。
其实跟网络服务器设置有关。它正在缓存路径,这反过来又弄乱了可下载的内容。
设置适当的缓存后(无缓存:))一切似乎恢复正常。