Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning projects can't handle circular references #873

Open
dalemyers opened this issue Jan 30, 2025 · 0 comments
Open

Scanning projects can't handle circular references #873

dalemyers opened this issue Jan 30, 2025 · 0 comments

Comments

@dalemyers
Copy link

Congratulations on version 3! Scanning for targets is a massive win for us as it's a bit of a nightmare keeping them up to date in the config file due to the size of our project.

Unfortunately, we've run into a bug with them. We've got several projects, and there are references between them (not good practice I know - it's something I'm working on). It seems that this isn't detected during the scan phase. Here's the verbose output:

periphery scan --config .periphery.yml --clean-build --verbose                                                                                                                                                                            [36ms]
[version] 3.0.1
[shell] swift -version
Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Target: arm64-apple-macosx15.0
* Inspecting project...
[shell] xcodebuild -version
Xcode 16.1
Build version 16B40
[xcode:workspace] Loading /path/to/our.xcworkspace
[xcode:project] Loading /path/to/project/A.xcodeproj
[xcode:project] Loading /path/to/project/B.xcodeproj
[xcode:project] Loading /path/to/project/C.xcodeproj
[xcode:project] Loading /path/to/project/A.xcodeproj
[xcode:project] Loading /path/to/project/B.xcodeproj
[xcode:project] Loading /path/to/project/D.xcodeproj
[xcode:project] Loading /path/to/project/A.xcodeproj
[xcode:project] Loading /path/to/project/B.xcodeproj
[xcode:project] Loading /path/to/project/E.xcodeproj
[xcode:project] Loading /path/to/project/A.xcodeproj
[xcode:project] Loading /path/to/project/B.xcodeproj
[xcode:project] Loading /path/to/project/D.xcodeproj
[xcode:project] Loading /path/to/project/E.xcodeproj
[xcode:project] Loading /path/to/project/A.xcodeproj
[xcode:project] Loading /path/to/project/B.xcodeproj
[xcode:project] Loading /path/to/project/D.xcodeproj
[xcode:project] Loading /path/to/project/E.xcodeproj

It then keeps repeating A, B, D, E over and over indefinitely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant