periphery: Github CI throws error: 'Either the index store is outdated, or you have requested to scan targets that have not been built'
I have a separate job which runs the periphery scan, but it fails with this error:
stdout: "* Inspecting project...\n* Building project-iosUITests...\n* Building project-iosTests...\n* Building project-ios...\n* Indexing...\n",
stderr: "error: The index store at '/Users/runner/Library/Caches/com.github.peripheryapp/DerivedData-f3bd6041-79ffde3d/Index/DataStore' does not contain data for the following targets: project-ios, project-iosTests, project-iosUITests. Either the index store is outdated, or you have requested to scan targets that have not been built.\n",
This is my command:
periphery scan --strict --clean-build
I just clone my project, brew install periphery and run that command in a github ci job. Am I missing something?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 17 (4 by maintainers)
Same here, Periphery doesn’t work any more with Xcode 14.2 when I run
BuildTools/periphery scan --report-exclude "**/R.generated.swift" --verbose
I get:@ileitch 2.10.3 worked like a charm for me, thank you!
I’ve included a potential fix for this in 2.10.3, could you all please give it a try?
@ileitch I’m also seeing essentially the same error output that @spipau saw with Xcode 14.2, Periphery 2.10.2 (installed with Homebrew). Everything worked fine with Xcode 13.4 previously. Hope this can be fixed soon (but no worries if it’s done after New Year’s - thank you for all you do on Periphery!).
It is back for me. See (redacted) log, the redacted parts seems to be ok.
[index:swift] Source file not indexed
were recently added to the project (not locally, however, the code is a git checkout for a code review of some changes made by somebody else).swiftlint
andswiftformat
in a build phase.