ios - 临时分发 Swift iOS 应用程序

标签 ios swift provisioning-profile adhoc xcode6

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

我在上面运行了 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 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

关于ios - 临时分发 Swift iOS 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24392412/

相关文章:

ios - 与 gmail 应用程序共享文件 - 没有附加文件

ios - 当 iOS 应用程序处于后台时,解析查询不返回,由后台获取触发

swift - 为什么0的乘法逆数会导致无穷大?

swift - 任务完成后重定向

ios - Fabric - 无法添加 iPhone Xs Max、iPhone Xs 设备进行 Beta 测试

iphone - 关于对象方法调用的通知

ios - 如何让我的 UISwipeGestureRecognizer 工作?

arrays - 检查值是否与自定义数组元素列表中的键匹配并检索其值

ios - 用于内部开发的 IPA 文件

ios - 推送通知在 Apple Beta 测试 (TestFlight) 中不起作用