Xcode 11:代码更改未更新到应用程序或断点不起作用 [英] Xcode 11: Changes in code not updated to app or breakpoint doesn't work
问题描述
XCode:11.1 作业系统:10.15 测试设备:iPhone 5s,iOS:12.4.2
XCode: 11.1 OS: 10.15 Test device: iPhone 5s, iOS: 12.4.2
大家好, 我犯了一个愚蠢的错误,立即升级Xcode和MacOS,而没有等待以后的稳定版本.
Hi guys, I made a stupid mistake to immediately upgrade Xcode and MacOS, without waiting for a later stable version.
无论如何,如果我在代码中进行了更改,例如添加了NSLog()行,则此添加项不会在测试设备中的应用程序上更新.为了使其正常工作,我必须从测试设备上卸载该应用程序,然后通过运行Xcode中的代码来重新安装该应用程序. 每当我更改代码时都会发生这种情况.我必须删除设备上的应用,然后重新安装.
Anyway, if I made changes in my code, for example adding a NSLog() line, this addition is not updated on the app in my test device. To make it work, I have to uninstall the app from the test device, and reinstall it by running the code from Xcode. This happens every time I make changes in code. I have to delete the app on the device and reinstall it again.
我正在互联网上寻找解决方案,但没有找到任何解决方案. 我认为这是一个Xcode错误,但是如果您有同样的问题,我也很好奇.如果希望有人可以快速解决问题.
I was looking for a solution on the internet, but didn't find any. I assume this is a Xcode bug, but I'm also curious if you have the same problem. If hope someone has a quick fix.
更新1 在模拟器上可以正常运行.
Update 1 On the simulator it works ok.
推荐答案
尝试将Build System
更改为Legacy
:
File
> Project Settings
> Build System
新的构建系统在应用程序缓存方面存在一些问题.
The new Build System has some problems with app cache.
这篇关于Xcode 11:代码更改未更新到应用程序或断点不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!