peripheryapp / periphery

A tool to identify unused code in Swift projects.
MIT License
5.17k stars 186 forks source link

Either the index store is outdated #579

Closed 673697831 closed 10 months ago

673697831 commented 1 year ago

Discussed in https://github.com/peripheryapp/periphery/discussions/407

Originally posted by **trungld123** September 30, 2021 "The index store at '/Users/Abc/Library/Caches/com.github.peripheryapp/DerivedData-a4afb026-5ddbe9bd/Index/DataStore' does not contain data for the following targets: "abcApp". Either the index store is outdated, or you have requested to scan targets that have not been built." i dont know error when run "periphery scan --setup" at terminal command line
dvilceanu-ae commented 1 year ago

I am facing the same issue. Is there a solution?

ileitch commented 1 year ago

What version are you using? Can you please double-check that the target mentioned in the error is indeed built by your chosen scheme?

danielepantaleone commented 1 year ago

I'm facing the same issue. Any update on this?

ileitch commented 1 year ago

@danielepantaleone

What version are you using? Can you please double-check that the target mentioned in the error is indeed built by your chosen scheme?

LevinIvan commented 1 year ago

my version: 2.12.3. I have the same problem. How can I solution this problem?

image

I don't understand why it doesn't see my module Tutorial

danielepantaleone commented 1 year ago

@danielepantaleone

What version are you using? Can you please double-check that the target mentioned in the error is indeed built by your chosen scheme?

I'm using version 2.12.1. It's actually quite strange because it doesn't fail every time. I have periphery running using a SonarQube plugin (https://github.com/insideapp-oss/sonar-apple) and sometime periphery analysis complete successfully (3 out of 5 analysis are failures though)

andrsem commented 1 year ago

I was able to reproduce this issue for a multiplatform SwiftUI app. Version 2.12.3.

Create a new Swift file, go to Build Phases > Compile Sources, and then deselect "Allow any platform" and "macOS" in the Filters column so that only "iOS" is selected. I hope this helps.

bastianmorath commented 1 year ago

I have the exact same problem.