对于针对ios 6.1 sdk编译的应用程序,ios 7模拟器不会回退用户界面 [英] ios 7 simulator wouldn't fallback user interface for apps compiled against ios 6.1 sdk

查看:123
本文介绍了对于针对ios 6.1 sdk编译的应用程序,ios 7模拟器不会回退用户界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ios 6.1 iphone 4,4s& 5个设备。当在ios7 iphone 5s上运行应用程序时,用户界面仍然看起来像ios 6(黑色按钮等)但我们对它的大部分都很好,除了我们发现了一个bug。我猜这是因为ios7上的API实现发生了变化。

Our ios6.1-sdk-compiled app has been running fine on ios 6.1 iphone 4, 4s & 5 devices. When running the app on ios7 iphone 5s the user interface still looks like ios 6 (black buttons etc) but we're fine with most of it, except we found a bug. I'm guessing this is because changes on API implementation on ios7.

当我们的应用程序在xcode 5上针对ios7-sdk编译时,一切都崩溃了。 UI对象未对齐,标签无法读取等。因此我们想要针对ios6.1 sdk编译我们的代码,但是在ios 7上运行它。

When our app is compiled against ios7-sdk on xcode 5 everything falls apart. UI objects are misaligned, label's can't be read etc. Hence we want to compile our code against ios6.1 sdk but run it on ios 7.

在Xcode 5上我安装了ios 6.1 sdk 通过在本文中描述的Xcode 4.6.3 dmg复制它,并在构建设置上将Base SDK更新到ios 6.1,但是当在ios 7模拟器上运行应用程序时,用户界面不会回退到ios 6.1 。然而,如果应用程序针对运行ios 7的物理iphone进行测试,它会回退到ios 6.1。

On Xcode 5 I've installed ios 6.1 sdk by copying it from Xcode 4.6.3 dmg as described on this post and updated Base SDK to ios 6.1 on build settings, however when running the app on ios 7 simulator the user interface wouldn't fall back to ios 6.1. It does however fall back to ios 6.1 if the app is tested against a physical iphone running ios 7.

运行ios6时如何让ios 7模拟器回退用户界面-sdk编译的应用程序,以便我们可以在模拟器上重现该错误?

How can I make ios 7 simulator falls back user interface when running ios6-sdk-compiled apps so we can reproduce the bug on simulator?

推荐答案

感谢大家的帮助,但到目前为止最好的解决方法是允许我重现的问题是继续使用xcode 4.6.3并将ios 7模拟器安装到xcode 4.6.3中。

Thanks all for the help but so far best workaround that allows me to reproduce the bug is to keep using xcode 4.6.3 and install ios 7 simulator into xcode 4.6.3.

我是通过同时安装xcode 5和4.6来实现的.3并排(将xcode.app复制到xcode4.6.3.app然后从app store安装xcode 5(将覆盖xcode.app)),然后符号链接

I did so by installing both xcode 5 and 4.6.3 side by side (copy xcode.app into xcode4.6.3.app then install xcode 5 from app store (will overwrite xcode.app)), then symlink

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk

to

/Applications/Xcode4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7。 0.sdk

Mak确保在执行此操作时xcode未打开。如果您已经覆盖4.6.3到5,可以从 https://developer.apple.com下载dmg的4.6.3 / downloads

Make sure xcode isn't open when this is performed. If you already overwritten 4.6.3 to 5 you can download dmg of 4.6.3 from https://developer.apple.com/downloads.

然后我把:

/ Applications / Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app

(即:xcode 5版本我的底座上的模拟器应用程序

(ie: xcode 5 version of the simulator app) on my dock

在测试应用程序时,我不得不首先从扩展坞手动启动模拟器并选择相应的设备版本(转到硬件 - >设备 - >选择iphone 3.5/ 4 - ios6 / 7)因为xcode 4.6.3无法自动执行此操作(可能是因为版本差异/因为我没有将xcode 5模拟器应用程序符号链接到4.6.3 )

When testing the app, I had to manually launch the simulator from the dock first and select corresponding device version (go to Hardware -> Device -> select iphone 3.5"/4" - ios6/7) because xcode 4.6.3 wasn't able to automatically do this (presumably because of version difference / because I didn't symlink the xcode 5 simulator app to 4.6.3)

启动时,确保在xcode 4.6.3 Scheme上选择iPhone 7.0 Simulator。 ios6.1-sdk编译的应用程序然后在ios 7上运行时回退到ios 6.1 UI,我可以重现我的错误。

When launching, ensure 'iPhone 7.0 Simulator' is selected on xcode 4.6.3 Scheme. The ios6.1-sdk compiled app then falls back into ios 6.1 UI when run on ios 7 and I can reproduce my bug.

这篇关于对于针对ios 6.1 sdk编译的应用程序,ios 7模拟器不会回退用户界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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