Xcode 7.3.1 可以在 macOS 10.12 上运行吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37803916/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Will Xcode 7.3.1 work on macOS 10.12?
提问by
I want to install and try out the new features of macOS 10.12. Also I really want to work on Xcode 8.0. But the same time I have some client projects which should written on Swift 2.2 [ Xcode 7.3.1 ], I don't want use Swift 2.3 or Swift 3.0.
我想安装并试用 macOS 10.12 的新功能。另外我真的很想在 Xcode 8.0 上工作。但同时我有一些应该在 Swift 2.2 [Xcode 7.3.1] 上编写的客户端项目,我不想使用 Swift 2.3 或 Swift 3.0。
So is it possible to install Xcode 7.3.1 in macOS 10.12? Is there any hacky way to do this?
那么是否可以在 macOS 10.12 中安装 Xcode 7.3.1?有没有办法做到这一点?
Yes I have successfully installed both Xcode 7.3.1
and Xcode 8.0
in my macOS Sierra
.
是的,我已经成功地安装了Xcode 7.3.1
和Xcode 8.0
我macOS Sierra
。
Now using both Xcodes. But whenever I run my project using Xcode 7.3.1
I am getting this error DTAssetProviderService could not start DTXConnection with Simulator 'iPhone 6s'. Check the system log for errors.
I don't know the actual reason for this. I have googled for the answers but those suggestions didn't help me. But at the same time I can run projects in Xcode 8.0 in Simulator, no errors, nothing.
现在使用两个 Xcode。但是每当我使用我运行我的项目时,我都会Xcode 7.3.1
收到此错误,DTAssetProviderService could not start DTXConnection with Simulator 'iPhone 6s'. Check the system log for errors.
我不知道发生这种情况的实际原因。我在谷歌上搜索了答案,但这些建议对我没有帮助。但同时我可以在模拟器中的 Xcode 8.0 中运行项目,没有错误,没有。
If anyone came to see this, Please let me know your comment.
如果有人来看这个,请告诉我你的评论。
采纳答案by JAL
You can absolutely install Xcode 7.3.1 on macOS Sierra alongside the beta version of Xcode 8.
您绝对可以在 macOS Sierra 上安装 Xcode 7.3.1 以及 Xcode 8 的测试版。
If you are having issues running Xcode 7.3.x or running the simulator:
如果您在运行 Xcode 7.3.x 或运行模拟器时遇到问题:
Reinstall Xcode 7.3.x from https://developer.apple.com/downloads/.
Manually attach the debugger to your process as outlined in this Stack Overflow answer.
重新安装的Xcode从7.3.x https://developer.apple.com/downloads/。
手动将调试器附加到您的进程,如堆栈溢出答案中所述。
回答by FBente
To keep Xcode 7.3.1 running again besides Xcode 8.2 on macOS Sierra 10.12.2 I had to clean the following folders:
除了 macOS Sierra 10.12.2 上的 Xcode 8.2 之外,为了让 Xcode 7.3.1 再次运行,我必须清理以下文件夹:
~/Library/Developer/
~/Library/Application Support/Developer
~/Library/Application Support/Xcode
Even cleaning the userdata of the specific project was helpful:
甚至清理特定项目的用户数据也很有帮助:
projectname.xcodeproj/xcuserdata
projectname.xcworkspace/xcuserdata
After restarting the mac and trying to open the project it crashed again because there was already content in this folder:
重新启动 mac 并尝试打开项目后,它再次崩溃,因为此文件夹中已有内容:
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
After deleting these plug-ins again it finally worked!
再次删除这些插件后,终于成功了!
回答by rantunes
Xcode 7.3.1 and Sierra is a non-supported configuration. While most of it will work, things like running a project on the simulator won't.
Xcode 7.3.1 和 Sierra 是不受支持的配置。虽然大部分都可以工作,但在模拟器上运行项目之类的事情却不会。
回答by Adrian Mannella
You should also be aware that you need the current public releases of macOS (El Capitan) and Xcode (7.3) to create and submit archives to the iTunes App Store. Archives created with beta versions Xcode (8b1), or with the current Xcode 7.3 on a beta version of macOS (Sierra 10.12b1) won't be accepted (submission process fails). It's advised you backup your system before installing the macOS beta, and/or install the beta OS on a new partition. You can also install the current OS and Xcode on a small partition (10-20GB or so) if you'll need to make a submission in the next 3 months, and remove it when the public releases are available. It takes a little setup, tho, to configure your signing certs, etc.
您还应该知道,您需要 macOS (El Capitan) 和 Xcode (7.3) 的当前公开版本才能创建档案并将其提交到 iTunes App Store。不接受使用测试版 Xcode (8b1) 或在 macOS 测试版 (Sierra 10.12b1) 上使用当前 Xcode 7.3 创建的档案(提交过程失败)。建议您在安装 macOS 测试版之前备份系统,和/或在新分区上安装测试版操作系统。如果您需要在接下来的 3 个月内提交,您还可以将当前的操作系统和 Xcode 安装在一个小分区(10-20GB 左右)上,并在公开版本可用时将其删除。需要一些设置来配置您的签名证书等。
回答by Govind
I have installed OS X Sierra and I was working with XCode 7.2. I found some alignment, issues when the XCode run in Sierra. I have reported to the bug reporting centre. I got reply from the apple team that XCode 7.x versions are not supported in OS X Sierra and all the bugs has been closed. They recommends XCode 8 in OSX 10.12.
我已经安装了 OS X Sierra 并且我正在使用 XCode 7.2。当 XCode 在 Sierra 中运行时,我发现了一些对齐问题。我已向错误报告中心报告。我收到苹果团队的回复,说 OS X Sierra 不支持 XCode 7.x 版本,并且所有错误都已关闭。他们推荐 OSX 10.12 中的 XCode 8。