简体   繁体   English

Xcode 11.4 分析显示没有问题

[英]Xcode 11.4 Analyze shows no issues

I was using Xcode "Product > Analyze" to find the localizability issue, but in Xcode 11.4, after analyzing, Xcode shows no issue at all.我正在使用 Xcode “产品>分析”来查找可定位性问题,但在 Xcode 11.4 中,经过分析,Xcode 显示没有问题。 But I'm certain that there are quite a few issues out there.但我敢肯定,那里有很多问题。

I tried to set "Analyze During 'Build'" to YES, but nothing changed我尝试将“在'构建'期间分析”设置为“是”,但没有任何改变

I'm using Xcode 11.4 and swift 5.0我正在使用 Xcode 11.4 和 swift 5.0

Does anyone have any ideas?有没有人有任何想法?

I do not know what you think you mean by “localizability issue,” but this much is certain: you're barking up the wrong tree.我不知道您认为“可定位性问题”是什么意思,但可以肯定的是:您找错人了。 Xcode's Analyze feature is for Objective-C only. Xcode 的分析功能仅适用于 Objective-C。 In Swift it does nothing, If you want to trace issues with your code.在 Swift 中,如果您想跟踪代码的问题,它什么也不做。 just compile it, If your code doesn't have any compile time issues, then you need to use the various scheme based runtime tools, UI testing, and so forth.只需编译它,如果您的代码没有任何编译时间问题,那么您需要使用各种基于方案的运行时工具、UI 测试等。 to track down whatever you think is wrong.追查任何你认为是错误的。

Make sure the build device you've selected isn't "Any iOS device".确保您选择的构建设备不是“任何 iOS 设备”。 That gives no output when using Objective C.使用目标 C 时,不会给出 output。 Changing it to a simulator device gives the Analysis output.将其更改为模拟器设备会得到分析 output。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM