如何在比 9 旧的 xCode 版本上测试适用于 iOS 11 的应用程序 [英] How to test apps for iOS 11 on an older xCode version than 9

查看:20
本文介绍了如何在比 9 旧的 xCode 版本上测试适用于 iOS 11 的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的 xCode 更新为 9.0 版后,我遇到了自定义导航栏的问题,状态栏和导航栏发生冲突,已解决 此处 是来自 xCode 的错误...

After updating my xCode to be version 9.0, I'm facing an issue with the custom navigationBar, the status bar and navigation bar are colliding which was addressed here as a bug from xCode...

我的问题是:如何使用旧版本为 iOS 11 构建我的项目,这样我就不会遇到这个问题?

My question is: how can build my project for iOS 11 too with an older version so I wouldn't have this issue?

谢谢!

推荐答案

最初修改自 this 答案.

请按照以下步骤操作:

  • 完全关闭/退出 Xcode 8(或任何 8.. 系列).
  • Apple 网站 下载 Xcode 9(如果您已经这样做了,请忽略)
  • Close/Quit Xcode 8 (or any of 8.. series) completely.
  • Download Xcode 9 from Apple site (if you have done this already, ignore)

第一步

  • 右键单击下载的 .dmg 文件并显示包内容

  • Right click on the downloaded .dmg file and show package contents

导航到 Contents/Developer/Platforms/iPhoneOS.platform/Developer/

复制 SDKs 文件夹

Copy the SDKs folder

转到旧版本的 Xcode,例如Xcode 8,在 Finder ->应用程序 ->Xcode

Go to older version of Xcode, e.g. Xcode 8, in the Finder -> Applications -> Xcode

右键单击并显示包内容

导航到 Contents/Developer/Platforms/iPhoneOS.platform/Developer/

将复制的 SDKs 文件夹粘贴到此处

Paste the copied SDKs folder here

第二步

  • 右键单击下载的 .dmg 文件并显示包内容

  • Right click on the downloaded .dmg file and show package contents

导航到 Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

复制11.0 (15A372)文件夹(可能略有不同,但复制最新的11.0(....)文件夹)

转到旧版本的 Xcode,例如Xcode 8,在 Finder ->应用程序 ->Xcode

Go to older version of Xcode, e.g. Xcode 8, in the Finder -> Applications -> Xcode

右键单击并显示包内容

导航到 Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

将复制的11.0 (15A372)文件夹粘贴到这里(可能略有不同,但替换最新的11.0(....)文件夹)

Paste the copied 11.0 (15A372) folder here (Maybe a slight difference, but replace the latest 11.0 (....) folder)

最后重启你的旧 Xcode.

这篇关于如何在比 9 旧的 xCode 版本上测试适用于 iOS 11 的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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