我开发了一个IOS应用程序,可以作为企业应用程序(内部)进行分发。 我已经从xcode导出了应用程序,创建了一个.ipa和manifest.plist文件。
通过互联网从我的服务器测试安装,应用程序询问“你想安装”,点击“是”,过了一会儿,我收到消息“此时无法下载应用程序”
但是,如果我将iPad连接到Mac并运行xcode,则应用程序安装没有任何问题。
版本: xCode 7.2
我检查过“manifest.plist”文件,所有信息看起来都是正确的。
有没有人对我应该看的内容有任何想法?
我的iPad连接到我的Mac,xCode设备窗口打开。当我尝试从我的Web服务器安装应用程序时,这是生成的日志输出:
Feb 23 09:39:11 PKLHR-Syndicate-99 itunesstored[123] <Warning>: LaunchServices: installing placeholder for <LSApplicationProxy: 0x14c785c40> com.mydomain.PK <(null) *Not found in database*>
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e12f000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/5497886380363912570.app" type Placeholder (LSInstallType = 1) requested by itunesstored (pid 123)
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.mydomain.PK; Version=1.0, ShortVersion=(null)>
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.mydomain.PK at /private/var/mobile/Containers/Data/Application/76FEFBD9-65CA-47F3-B47A-1D54721B5D41
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e087000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.mydomain.PK at /private/var/mobile/Containers/Bundle/Application/88A708CB-F525-4A5C-BE5C-FA8D30CB5EB1
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.08s
Feb 23 09:39:11 PKLHR-Syndicate-99 itunesstored[123] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14c6e77d0> com.mydomain.PK (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/88A708CB-F525-4A5C-BE5C-FA8D30CB5EB1/5497886380363912570.app> withPhase:3
Feb 23 09:39:11 PKLHR-Syndicate-99 itunesstored[123] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.mydomain.PK.InstallingPlaceholder - <NSProgress: 0x14c7e36a0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Feb 23 09:39:11 PKLHR-Syndicate-99 itunesstored[123] <Warning>: LaunchServices: updating placeholder for <LSApplicationProxy: 0x14da22000> com.mydomain.PK (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/88A708CB-F525-4A5C-BE5C-FA8D30CB5EB1/5497886380363912570.app> with icons
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e12f000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/5497886380363912570.app" type Placeholder (LSInstallType = 1) requested by itunesstored (pid 123)
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e2d3000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.mydomain.PK; Version=1.0, ShortVersion=(null)>
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e2d3000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for com.mydomain.PK is now at /private/var/mobile/Containers/Data/Application/7C3A1550-1613-488D-B388-DAF4245BC94D
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e2d3000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.mydomain.PK at /private/var/mobile/Containers/Bundle/Application/BB9DDBFB-EE87-440E-B866-08FB0E29D064
Feb 23 09:39:11 PKLHR-Syndicate-99 installd[46] <Notice>: 0x16e2d3000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.02s; Overall: 0.24s
Feb 23 09:39:12 PKLHR-Syndicate-99 nsurlsessiond[114] <Error>: Task 11 for client <CFString 0x19a7bff20 [0x19eebcb68]>{contents = "com.apple.itunesstored"} completed with error - code: -999
Feb 23 09:39:12 PKLHR-Syndicate-99 itunesstored[123] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14d84a8a0> com.mydomain.PK (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/BB9DDBFB-EE87-440E-B866-08FB0E29D064/5497886380363912570.app> withPhase:0
Feb 23 09:39:12 PKLHR-Syndicate-99 itunesstored[123] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.mydomain.PK.Loading - <NSProgress: 0x14db28770> : Parent: 0x0 / Fraction completed: 1.0000 / Completed: 1 of 1 called, removing progress from cache
Feb 23 09:39:12 PKLHR-Syndicate-99 lsd[164] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x15655f420> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 to 0
然后安装挂起,显示消息“无法下载应用程序”此时无法下载“Con1”。 iPad上的应用程序图标显示“正在等待”。
此致
答案 0 :(得分:1)
您要从https下载该网站吗?如果只有http。
,您将收到该错误检查ipa文件是否可由设备实际寻址,方法是在Safari中放置完整路径 - 不会安装它,只需检查文件是否可用。
另一种可能性是设备不在您的配置文件中。您需要将设备的UDID添加到相应的配置文件中,然后清理并重建您的应用程序。要做到这一点,请查看此文档:
注册个人设备&#34;部分,并确保您的设备在那里注册 - 如果没有,添加它。
然后,您需要进入XCode并在“首选项”菜单中选择“帐户”,然后选择“Apple ID”和“查看详细信息”。点击刷新图标,然后将您的应用程序重新导出并部署到您的网站。它应该有希望下载好。
答案 1 :(得分:0)
我已经解决了这个问题。经过几个小时的测试后,我发现在我的ViewController中有一个缺失的&#34; [super viewDidLoad] ;.奇怪的是,当我通过USB将iPad直接连接到Mac时,代码在模拟器中运行并运行。
xcode在任何时候都没有提供或显示任何错误或警告。我应该注意到问题开始时缺少的代码行。
我希望这有助于某人。