peripheryapp / periphery

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

error: Shell command '/usr/bin/env xcodebuild -project XXXX.xcodeproj -list -json' returned exit status '74': #730

Closed bosnian closed 1 month ago

bosnian commented 5 months ago

Running following command on Jenkins $MINT run periphery scan --skip-build --index-store-path ./.derivedData/Index.noindex/DataStore --format checkstyle > periphery.xml caused an issue: error: Shell command '/usr/bin/env xcodebuild -project XXXX.xcodeproj -list -json' returned exit status '74':

Adding one step before /usr/bin/env xcodebuild -project XXXX.xcodeproj -list -json showed that spm tries to fetch packages and needs ssh key. Fixed it.

After removing /usr/bin/env xcodebuild -project XXXX.xcodeproj -list -json and same issue came again.

I just left the line there for now. Not sure what could be the correct fix :)

ileitch commented 4 months ago

Hi @bosnian, does your project contain private packages?