【问题标题】:Distributing Swift iOS applications ad-hoc临时分发 Swift iOS 应用程序
【发布时间】:2014-06-24 17:04:34
【问题描述】:

我有两个通过 Xcode 6 beta 2 编译为 IPA 的空 iOS 单视图应用程序。一个是 Objective-C,第二个是 Swift。它们都具有完全相同的代码签名设置。 当通过试飞或曲棍球分发 ad hoc 时,Objective-C 版本安装没有问题。 Swift 出现“暂时无法下载应用程序”的错误。

我在上面运行了 iPhone 配置实用程序日志,这就是我得到的:

Jun 24 17:36:27  installd[3555] <Notice>: 0x2c1000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/-6680582027007079892/1462391056366119034" requested by itunesstored
Jun 24 17:36:29  installd[3555] <Notice>: 0x2c1000 MobileInstallationInstall_Server: Installing app com.MyApp.sTest
Jun 24 17:36:29  installd[3555] <Error>: 0x2c1000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.HEsTZS/foo_extracted/Payload/sTest.app/sTest: 0xe8008017
Jun 24 17:36:29  installd[3555] <Error>: 0x2c1000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.HEsTZS/foo_extracted/Payload/sTest.app
Jun 24 17:36:29  itunesstored[94] <Error>: 0x1ef7000 MobileInstallationInstallForLaunchServices: failed with -1
Jun 24 17:36:29  itunesstored[94] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jun 24 17:36:29  lsd[3554] <Warning>: LaunchServices: installation failed for app com.MyApp.sTest
Jun 24 17:36:29  itunesstored[94] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.MyApp.sTest.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache
Jun 24 17:36:30  installd[3555] <Error>: 0x2c1000 install_application: Could not preflight application install
Jun 24 17:36:30  installd[3555] <Error>: 0x2c1000 handle_install_for_ls: API failed
Jun 24 17:36:31  lsd[3554] <Warning>: LaunchServices: installation ended for app com.MyApp.sTest

有人知道我可能做错了什么吗?

谢谢

【问题讨论】:

  • 天哪,我也有同样的问题,我担心这可能是苹果阻止了它。
  • 您可以使用电缆部署到设备上吗?
  • 是的,当我直接通过 Xcode 部署到单个设备时,它可以工作。但是在 Testflight 或 Hockey 中无法通过。
  • 哦,可惜了,iOS8 SDK是Beta,Xcode6是Beta,Swift语言目前是只是概念,还没有准备好进行商业开发。

标签: ios swift provisioning-profile adhoc xcode6


【解决方案1】:

我找到了解决方案。这似乎是 Xcode 6 beta 的一个已知问题 (17283374)。

https://devforums.apple.com/message/984530#984530

对我有用的修复是解压缩并重新打包 ipa,剥离导致问题的扩展属性:

ditto -xk /path/to/file.ipa /tmp/my_extract_path
ditto -ck --norsrc /tmp/my_extract_path /path/to/new_file.ipa
rm -r /tmp/my_extract_path

【讨论】:

    【解决方案2】:

    同样的问题,这是我的话题Xcode6 ipa distribution issue

    无法通过 iTunes 或 TestFlight 将 Swift ipa 安装到我的设备上

    我找到了一种解决方法 - 我创建了 *.app 文件并通过 iTunes 成功地将它安装到我的设备上。不确定这是否适用于 TestFlight,但至少您可以将 *.app 和移动配置文件发送给您的客户端

    【讨论】:

    • 嘿igor,看到你已经能够保存你的ipa了。你从来没有遇到过这个问题stackoverflow.com/questions/24263294/…
    • @christopher.ryan.cruz 是的,下面的解决方法就像一个魅力
    猜你喜欢
    • 2012-05-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-25
    相关资源
    最近更新 更多