iOS 应用未安装在测试用户设备上

标签 ios iphone xcode beta

我创建了一个 .ipa 文件以在测试用户设备上启动。用户尝试安装该文件,但在中途停止并且图标变灰。我收到以下错误报告:

itunesstored[100] <Warning>: LaunchServices: installing placeholder for com.TEST.Givr
installd[63] <Notice>: 0x2d5000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-7544261549455945179.app" requested by itunesstored
installd[63] <Notice>: 0x2d5000 MobileInstallationInstall_Server: Installing app com.TEST.Givr
installd[63] <Notice>: 0x2d5000 install_application: Installing placeholder
installd[63] <Notice>: 0x2d5000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.11s; LS Sync: 0.00s; Overall: 0.12s
itunesstored[100] <Warning>: LaunchServices: updating placeholder for com.TEST.Givr with icons
installd[63] <Notice>: 0x2d5000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/-7544261549455945179.app" requested by itunesstored
installd[63] <Notice>: 0x2d5000 MobileInstallationInstall_Server: Installing app com.TEST.Givr
installd[63] <Notice>: 0x2d5000 install_application: Installing placeholder
installd[63] <Notice>: 0x2d5000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.26s; LS Sync: 0.00s; Overall: 0.28s
lsd[77] <Error>: ImageIO: PNG invalid PNG file: iDOT doesn't point to valid IDAT chunk
lsd[77] <Error>: ImageIO: PNG invalid PNG file: iDOT doesn't point to valid IDAT chunk
itunesstored[100] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.TEST.Givr (Placeholder) withPhase:0
lsd[77] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: phase=Loading; state=Waiting; fractionCompleted=0.000000> to 0
SpringBoard[34] <Warning>: Killing com.TEST.Givr for app installation
itunesstored[100] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.TEST.Givr (Placeholder)
itunesstored[100] <Warning>: LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.TEST.Givr (Placeholder) withPhase:1
lsd[77] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: phase=Loading; state=Active; fractionCompleted=0.590000> to 1
installd[63] <Notice>: 0x2d5000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/-7544261549455945179/8380994860813698163" requested by itunesstored
installd[63] <Notice>: 0x2d5000 MobileInstallationInstall_Server: Installing app com.TEST.Givr
securityd[84] <Error>: OCSPResponse: latestNextUpdate more than 1:15 ago
installd[63] <Error>: 0x2d5000 do_preflight_verification: Incorrect architecture at /var/tmp/install_staging.uWo8Ig/foo_extracted/Payload/Givr.app
installd[63] <Error>: 0x2d5000 install_application: Could not preflight application install
itunesstored[100] <Error>: 0x341000 MobileInstallationInstallForLaunchServices: failed with -1
itunesstored[100] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
lsd[77] <Warning>: LaunchServices: installation failed for app com.TEST.Givr
itunesstored[100] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.TEST.Givr.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache
lsd[77] <Warning>: LaunchServices: installation failed for app com.TEST.Givr
itunesstored[100] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.TEST.Givr.Loading - <NSProgress: phase=Loading; state=Failed; fractionCompleted=1.000000> called, removing progress from cache
installd[63] <Error>: 0x2d5000 handle_install_for_ls: API failed

知道如何解决这个问题吗?我已经在我的 iPhone 5 手机上测试了该应用程序,它是我用来测试的开发人员设备,该应用程序可以正常启动。但是,它根本不会安装在用户设备上。我曾经收到有关权限的警告,我已经修复但不再存在......所以不知道现在的问题是什么。

最佳答案

此处的错误与您支持的架构有关。编译后的 IPA 必须仅针对某些架构(或仅针对特定架构)构建,并且不包括测试器运行的设备的架构。

installd[63] <Error>: 0x2d5000 do_preflight_verification: Incorrect architecture at /var/tmp/install_staging.uWo8Ig/foo_extracted/Payload/Givr.app

进入您的项目build设置,在“架构”的顶部部分,确保您具有以下“有效架构”值:

arm64 armv7 armv7s

此外,对于用于部署的构建配置,请确保“仅构建事件架构”设置为 No 。对于体系结构,选择 Standard Architectures (armv7, armv7s, arm64)请参阅下面的外观:

example of architecture settings

关于iOS 应用未安装在测试用户设备上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25183215/

相关文章:

ios - Xcode 无法识别已经定义的 Sprite ?

ios - Unity iOS 项目 'FBSDKShareKit/FBSDKShareKit.h' 找不到文件

ios - ABPeoplePickerNavigationController 和 UIImagePickerController 在 iPad iOS7 上无法正确显示

ios - 内存压力在 MonoTouch 中加载一堆 PNG 图像

ios - Xcode 7 iOS9 字体不再被识别

ios - 将 NSMutableDictionary 从一个 View 传递到另一个 View

ios - 从 SKScene 呈现一个 UIViewController

iphone - 如何将ios音频上传到服务器?

ios - 良好的后端方式来存储iOS应用的歌曲(音频)样本?

xcode 语法颜色编码解释?