如何使用iOS Simulator 7 \ XCode 5测试iOS 7之前的UI(不升级iOS 7的应用程序) [英] How to use iOS Simulator 7 \ XCode 5 to test pre-iOS 7 UI (without upgrading the app for iOS 7)

查看:188
本文介绍了如何使用iOS Simulator 7 \ XCode 5测试iOS 7之前的UI(不升级iOS 7的应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在XCode 4.6.3上编译我的应用程序并在iOS 7上运行它的效果非常好。

Compiling my app on XCode 4.6.3 and running it on iOS 7 works great.

在XCode 5上编译我的应用程序并在iOS 7上运行它UI混乱我不想现在处理。 (iOS 7选取器,标签栏,表格视图等)

Compiling my app on XCode 5 and running it on iOS 7 results a big UI mess I don't want to handle right now. (iOS 7 pickers, tabbars, tableviews etc')

目标:

我想要能够使用XCode 5并在iOS 7模拟器上测试我的应用程序,但仍然使用iOS 6和更低的UI和感觉。

I want to be able to use XCode 5 and test my app on the iOS 7 simulator but still use the iOS 6 and lower UI and feel.

原因:

我不想重新设计我的应用程序到iOS 7,但我想确保它运行良好在iOS 7使用XCode 5 iOS 7模拟器。

I don't want to redesign my app to iOS 7 but I do want to make sure it runs fine on iOS 7 using XCode 5 iOS 7 simulator.

XCode 5上有一个快速切换,强制一切保持不变?

Is there a quick toggle on XCode 5 to force everything to stay the same?

正在执行类似于使用iOS 6 Base SDK XCode 5 可以接受或有点太多黑客?

Is doing something like using iOS 6 Base SDK in XCode 5 acceptable or a bit too much hacky?

编辑

没有帮助。

推荐答案

这是场景:


  • 您的应用程式可在iOS 6及以下版本上正常播放

  • iOS 7

  • 如果您的设备上安装了iOS 7,您需要XCode 5才能对其进行测试。

  • 如果您想测试它在iOS 7模拟器上,你需要为它安装XCode 5

  • 在XCode 5上编译你的工作应用程序将打破所有地狱,并将迫使你重新设计你的应用程序至少iOS 7

  • 到目前为止,这里建议的解决方案将帮助您了解您的应用在iOS 7上的外观,但不会保持您的iOS 6和更低的外观在iOS 7。

  • Your app works fine on iOS 6 and lower
  • You want to test your app on iOS 7
  • If you have iOS 7 on your device you'll need XCode 5 in order to test it on it
  • If you want to test it on the iOS 7 simulator you'll need to install XCode 5 for it
  • Compiling your working app on XCode 5 will break all hell loose and will force you to redesign your app at least for iOS 7
  • The solutions suggested here so far will help you to see how your app will look like on iOS 7 but will not keep your iOS 6 and lower look on iOS 7.

我发现的最佳解决方案:


  1. 将当前的XCode更新为XCode 5

  2. 此处

  3. 将其安装在不同的位置,并将应用程序的名称更改为XCode4,以区分两者。

  4. 查找您的XCode 5应用程序图标,右键单击它并选择显示包内容

  5. 找到MacOS文件夹并将xcode文件移出
    文件夹。最后两个步骤是防止你不小心打开一个
    项目与XCode 5.一个替代方法是更改​​默认的打开方式应用程序
    ,但由于某些原因没有工作
    我加上我想有一个额外的肯定,当我有一个项目打开XCode 5
    和StoryBoard改为只兼容XCode 5。 *

  6. 打开XCode 4.6.3并运行您的项目。在您的模拟器菜单中,
    现在应该可以看到iOS 7.即使在XCode顶部栏中,您会看到 AppName-> iPhone
    6.1 Simulator
    ,在模拟器上选择iOS 7在iOS 7中运行您的应用并保持一切一样。

  1. Update your current XCode to XCode 5
  2. Download XCode 4.6.3 from here
  3. Install it in a different location and Change the name of the app to XCode4 in order to differentiate between the two.
  4. Find your XCode 5 app icon, right click it and select "Show Package Contents"
  5. Locate the folder MacOS and move the xcode file outside of its folder. Those last two steps are to prevent you accidentally opening a project with XCode 5. An alternative is to change the default "Open With" app but for some reason that didn't work for me plus I wanted to be extra sure after I had one project opening with XCode 5 and the StoryBoard changed to be compatible to XCode 5 only. *
  6. Open XCode 4.6.3 and run your project. In your simulator menu you should now See iOS 7. Even if in XCode top bar you'll see AppName->iPhone 6.1 Simulator , selecting iOS 7 on the simulator will run your app in iOS 7 and keep everything the same.

完成上述操作后, 。第6版和第7版包含iOS 7模拟器。

步骤5:

这篇关于如何使用iOS Simulator 7 \ XCode 5测试iOS 7之前的UI(不升级iOS 7的应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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