本文介绍了如何使用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')

编辑:

没有帮助。

推荐答案

这是场景:


  • 您的应用程式可在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. 将其安装在不同的位置,并将应用程序的名称更改为XCode4,以区分两者。

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

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

  5. 打开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 itsfolder. Those last two steps are to prevent you accidentally opening aproject with XCode 5. An alternative is to change the default "Open With" appbut for some reason that didn't workfor me plus I wanted to be extra sure after I had one project opening with XCode 5and the StoryBoard changed to be compatible to XCode 5 only. *
  6. Open XCode 4.6.3 and run your project. In your simulator menu youshould now See iOS 7. Even if in XCode top bar you'll see AppName->iPhone6.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的应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 19:22