在iPhone 5s或64位模拟器上测试32位iOS应用程序 [英] Testing 32 bit iOS app on iPhone 5s or 64 bit simulator

查看:107
本文介绍了在iPhone 5s或64位模拟器上测试32位iOS应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用第三方库的应用。 64位版本的库中存在一个错误,因此我不得不恢复到32位版本的框架。我想在5s上测试这个版本,但是从XCode开始它将尝试构建64位,并且由于这个32位框架,构建将失败。
我需要发布一个版本,但由于我无法在5s或64位模拟器上测试,我不愿意这样做。那么有什么方法可以在iPhone上运行应用程序或在64位模拟器上运行它而无需构建64位版本?

I have an app that uses a third party library. There is a bug in the 64 bit version of the library so I had to revert to the 32 bit version of the framework. I would like to test this release on a 5s but from XCode it will try to build in 64 bit and because of this 32 bit framework the build will fail. I need to release a version but since I'm unable to test on the 5s or 64 bit simulator I'm reluctant to do so. So it there any way to get the app on the iPhone or run it on the 64 bit simulator without having to build the 64 bit version?

iPhone已配置且我已经用它来测试64位,所以这不是问题。

The iPhone is provisioned and I've used it for testing the 64 bit so it is not an issue.

提前致谢

推荐答案

在构建设置中,将架构更改为 $(ARCHS_STANDARD_32_BIT)

In Build Settings, change Architectures to $(ARCHS_STANDARD_32_BIT).

然后为模拟器选择 iPhone Retina(4英寸64位)

它将构建一个32位版本的应用程序,但在64位模拟器上运行它。请注意,模拟器在OS X上运行,OS X不再支持32位,因此我们一直在模拟器中的64位硬件上运行32位应用程序。它工作正常,只要你不需要某些类型为64位(例如:当符合64位时,CGFloat精确到更多小数位)。

It will build a 32 bit version of your app but run it on the 64 bit simulator. Note that the simulator is running on OS X and OS X doesn't support 32 bit anymore, so we have always been running 32 bit apps on 64 bit hardware in the simulator. It works fine, as long as you don't need some types to be 64 bit (eg: CGFloat is accurate to significantly more decimal places when complied for 64 bit).

这篇关于在iPhone 5s或64位模拟器上测试32位iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆