热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

使用Xcode8与ios11-UseXcode8withiOS11

IwanttouseXcode8withiOS11.我想在ios11中使用Xcode8。shouldIupgrademyXcode.However,mycode

I want to use Xcode 8 with iOS 11.

我想在ios11中使用Xcode 8。

should I upgrade my Xcode. However, my code can't be built by the new compiler, so I want to stay with Xcode 8.

我应该升级我的Xcode吗?但是,我的代码不能由新的编译器构建,所以我想使用Xcode 8。

enter image description here

How can I achieve that?

我怎么能做到呢?

Apple revealed several new iOS 11 features at WWDC 2017.

苹果在2017年WWDC上发布了几款新的iOS 11功能。

4 个解决方案

#1


55  

Check this out: As of now this is only for Debugging on iOS device not Simulator

检查一下:到目前为止,这只是在iOS设备上进行调试,而不是在模拟器上

  1. Download the SDK from Apple
  2. 从苹果下载SDK。
  3. Copy this iOS 11.0 image file to: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
  4. 将这个ios11.0镜像文件复制到:/ application /Xcode.app/ content /Developer/ platform/ iPhoneOS.platform/DeviceSupport/
  5. Restart Xcode.
  6. 重启Xcode。

#2


62  

As of now this is only for Debugging on iOS device, not Simulator

到目前为止,这只是用于iOS设备上的调试,而不是模拟器

Xcode 8 could not support unless you have the DeviceSupport folder for the iOS 11 version.

Xcode 8不能支持,除非您有ios11版本的DeviceSupport文件夹。

  1. You can download a Xcode 9 beta (latest Xcode 9) or get an DeviceSupport folder from other user.

    您可以下载Xcode 9 beta(最新的Xcode 9)或从其他用户获得DeviceSupport文件夹。

  2. Simply copy it to your folder or create an symbolic link

    只需将其复制到您的文件夹或创建一个符号链接。

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A372\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0

sudo ln -s / apps /Xcode-beta.app/ content /Developer/ platform/ iPhoneOS.platform/DeviceSupport/11.0\ (15A372\) /Applications/Xcode.app/ content /Developer/ platform/DeviceSupport/11.0

reference: Use Xcode 7 with iOS 10

参考:使用Xcode 7与ios10

#3


7  

I did this and it's fine, I still work both on comercial app using Xcode 8 + Swift 3 and exploring Xcode 9 beta with Swift 4. Just download the Xcode 9 and, inside Xcode 8 preferences, set the Command Line Tools to use the 9.0.

我做了这个,而且很好,我仍然在comercial应用上使用Xcode 8 + Swift 3和Xcode 9 beta和Swift 4。只需下载Xcode 9,在Xcode 8首选项中,设置命令行工具来使用9.0。

Xcode Preferences > Locations

#4


5  

I preferred to copy ALL the folder:

我更喜欢复制所有的文件夹:

/Volumes/**HighSierra**/Applications/Xcode-**beta.app**/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\)

to:

:

 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/**11** 

I can confirm I can run on my iPhone 7 with iOS 11

我可以确认我可以在我的iPhone 7上运行ios11


推荐阅读
author-avatar
jojo
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有