![]() Not only for unit tests but for autocomplete as well. Modules has completely broken the indexer for us. pch file for UnitTests only contains the standard Foundation and UIKit imports so I don't think there is anything directly in it which breaks the indexing.Īnyone have any idea how to better understand the console logs from Xcode? By running git bisect we've pinpointed that setting `DEFINE_MODULE=YES` introduced the issue and reverting it to `DEFINE_MODULE=NO` fixes it with various weird side effects. We actually see a lot of the latter error. When observing what happens in Console.app when opening Xcode we see the following lines:ġ7/03/16 11:44:44,717 Xcode: IDEIndexingClangInvocation: Failed to save PCH file: /Users/johannth/Library/Developer/Xcode/DerivedData/MyApp-fmkkuqtykhsstrezzmhrfiedrpcu/Index/PrecompiledHeaders/ġ7/03/16 11:44:53,954 sourcekit-serv: failed to stat file: (No such file or directory) Is this a known issue? Can anyone help us understand how Xcode discovers the tests so that we could fix the issue with our project? We've tried all the usual measures for when dealing with bad Xcode state: This problem is reproducible on El Capitan 10.11.3, both when using Xcode 7.2.1 and Xcode 7.3 beta 5. Our test suite contains ~6000 unit tests derived from XCTestCase. The project is mainly Obj-C with an growing Swift part. ![]() So, it seems that something in our project has broken Xcode's test case indexing. ![]() But, the test diamonds don't return which implies that Xcode doesn't see these files as tests. We can still run the tests using CMD+U and after a successful run every test case shows up in the test navigator. Additionally our test class files stopped showing the gutter test diamonds. A couple of days ago Xcode stopped loading our tests into the test navigator. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |