简体   繁体   English

Xcode 8不再构建到设备

[英]Xcode 8 no longer builds to device

I'm currently running Xcode 8.1 beta and have a stable release of Xcode 8 installed as well. 我目前正在运行Xcode 8.1 beta,并且还安装了稳定的Xcode 8版本。

Out of nowhere, without modifying any code inside the project, I am unable to build my project and run on a device. 无论如何,如果不修改项目内部的任何代码,我将无法构建项目并在设备上运行。

iOS version is 10.1 beta but the issue was not present when originally working with this version. iOS版本是10.1 Beta,但最初使用此版本时不存在此问题。
Xcode 8 and 8.1 are experiencing the same issue and I previously did not have a problem running the project on a physical device. Xcode 8和8.1遇到相同的问题,我以前在物理设备上运行项目时也没有遇到问题。
The provisioning profiles were up to date and I created new ones throughout the troubleshooting process. 供应配置文件是最新的,我在故障排除过程中创建了新的配置文件。

I have also gone through the basic troubleshooting options (restart the machine, restart the device, cleaned project, tried different lightning cable/USB port, reinstalled Xcode, and deleted Xcode preference files). 我还介绍了基本的故障排除选项(重新启动计算机,重新启动设备,清理项目,尝试使用其他避雷线/ USB端口,重新安装Xcode和删除Xcode首选项文件)。

The project builds and runs very quickly to the simulator and when attempting to run on the device I received no errors. 该项目可以快速构建并运行到模拟器,并且在尝试在设备上运行时,我没有收到任何错误。
When trying to run on a device, the build goes through the first tenth of the process and just sits there until I cancel it. 当尝试在设备上运行时,构建过程将经历该过程的前十分之一,并且一直停留在该位置,直到我取消它为止。
I've even created new test projects to test against a known good and the issue persists. 我什至创建了新的测试项目来对已知商品进行测试,问题仍然存在。

If anyone has experienced, a similar issue your insight would be greatly appreciated. 如果有人遇到过类似的问题,将不胜感激。

我遇到了同样的问题,但安装了最新的Xcode 8.1,问题已解决

正确的命令行工具

When you have multiple versions of Xcode installed the command line tools loses track of which Xcode to run. 当您安装了多个版本的Xcode时,命令行工具将失去对运行哪个Xcode的跟踪。 Make sure that this is set. 确保已设置。 Having multiple versions has always been troublesome for me. 对于我来说,拥有多个版本一直很麻烦。

The issue ended up being with a large number of dictionaries. 最终,这个问题伴随着大量的词典。 The compiler was attempting to go through a rather large number of dictionaries and was unable to complete. 编译器正在尝试阅读大量词典,但无法完成。 I restructured my data model and the issue was resolved. 我重组了数据模型,问题得以解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当xcode在设备上构建和部署时 - when xcode builds and deploys on device Xcode 错误:此设备不再连接 - Xcode error: This device is no longer connected Xcode项目坏了-忘记了设备并任意取消了构建 - Xcode project gone bad - forgets the device and arbitrarily cancels builds 如果布局高度比xcode中的设备高度长怎么办? - What if layout height is longer than device height in xcode? Xcode 构建时间比平时要长得多,导致 MacBook 粉丝对 go 疯狂 - Xcode builds are taking much longer than usual and causing MacBook fans to go crazy 多个Xcode项目将无法再在真实的iOS设备上成功编译 - Multiple Xcode projects will no longer successfully compile on a real iOS device Xcode 4将不再在4.2.10设备(CDMA iPhone)上运行应用 - Xcode 4 will no longer run apps on 4.2.10 device (CDMA iPhone) xcode 5构建比xcode 6构建更重 - xcode 5 builds are heavier than xcode 6 builds iOS Xcode开发版本,在什么情况下部署在设备上的版本无效? - iOS Xcode development builds, under which conditions the build deployed on device becomes invalid? xcode使用iOS 10设备构建项目,但在启动时崩溃:来自调试器的消息:由于内存问题而终止 - xcode builds the project with iOS 10 device but crashes when launching: Message from debugger: Terminated due to memory issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM