Xcode integration - exit code 65 error!
Describe the bug Error in Xcode integration. After trying to follow and debug the instructions for Periphery.
Xcode reports exit status 65 (which is oh - so helpful).
Reproduction Click the Play button in Xcode. using the Periphery target.
- Inspecting project...
- Building Portfolio... error: Shell command 'xcodebuild -project "/Users/david/Developer/StocksClone_Projects/Portfolio/Portfolio.xcodeproj" -scheme "Portfolio" -parallelizeTargets -derivedDataPath '/Users/david/Library/Caches/com.github.peripheryapp/DerivedData-e393de81-27051a43-27051a43' -quiet build-for-testing CODE_SIGNING_ALLOWED="NO" ENABLE_BITCODE="NO" DEBUG_INFORMATION_FORMAT="dwarf" COMPILER_INDEX_STORE_ENABLE="YES" INDEX_ENABLE_DATA_STORE="YES"' returned exit status '65':
Build Periphery-UnusedCodeScan_2025-05-11T13-58-25.txt
==== Environment
❯ periphery version swift -version xcodebuild -version 3.1.0 swift-driver version: 1.120.5 Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3) Target: arm64-apple-macosx15.0 Xcode 16.3 Build version 16E140
I would love to get this integration working... I'm assuming then I could click an issue report and go directly to the offending code source code.
I think Periphery worked fine in the command line - got like 530 lines of report of unused code... but in the xterm it's not very helpful.
@davidakoontz - This is how I have worked around this for now. - https://github.com/peripheryapp/periphery/issues/888#issuecomment-2841108062. It's not ideal as there's the possibility for False-positives if Xcode writes to the index store whilst Periphery is running but so far it's been mostly fine and I prefer this over not having Xcode integration. The times when I do get false positives I have found that deleting the derived data and re-running resolves this.
Thanks Christoff - let's see doing a bit of math issue # 939 - 888 =51 :: and still counting...