After installing via Homebrew - trying to integrate with Xcode - File Read Error.
Describe the bug A clear and concise description of what the bug is. Command line executed FINE.
Attempting the Xcode setup made build script.
Scrip fails:
error: Sandbox: periphery(43191) deny(1) file-read-data /Users/david/Developer/StocksClone_Projects/Portfolio/Portfolio.xcodeproj (in target 'UnusedCode-Periphery' from project 'Portfolio') david Apr 19 16:20 /Users/david/Developer/StocksClone_Projects/Portfolio warning: Assign-only property analysis is disabled with Swift 6.1 due to a Swift bug: https://github.com/swiftlang/swift/issues/80394.
- Inspecting project... error: (XCodeProjError) The project doesn't contain a .pbxproj file at path: /Users/david/Developer/StocksClone_Projects/Portfolio/Portfolio.xcodeproj
❯ pwd /Users/david/Developer/StocksClone_Projects/Portfolio ❯ ls -al total 240 drwxr-xr-x 17 david staff 544 Apr 19 16:21 . drwxr-xr-x 17 david staff 544 Apr 14 11:16 .. -rw-r--r-- 1 david staff 8196 Apr 19 15:51 .DS_Store drwxr-xr-x 15 david staff 480 Apr 19 15:55 .git -rw-r--r--@ 1 david staff 2861 Apr 10 21:30 .gitignore -rw-r--r--@ 1 david staff 23381 Mar 31 20:23 AssetsFolio TODO-LIST.md -rw-r--r--@ 1 david staff 47547 Apr 19 14:54 Build_Plan.md -rw-r--r--@ 1 david staff 781 Apr 16 16:36 InfoPlist.xcstrings -rw-r--r--@ 1 david staff 4041 Apr 16 19:59 Launch Screen.storyboard -rw-r--r--@ 1 david staff 15425 Apr 19 14:33 Localizable.xcstrings drwxr-xr-x 21 david staff 672 Apr 18 13:43 Portfolio drwxr-xr-x@ 6 david staff 192 Apr 19 16:20 Portfolio.xcodeproj drwxr-xr-x 18 david staff 576 Apr 19 11:12 PortfolioUnitTests -rw-r--r-- 1 david staff 654 Jan 28 18:15 README.md drwxr-xr-x 3 david staff 96 Feb 18 17:07 TestFlight -rw-r--r--@ 1 david staff 449 Apr 10 16:17 TestPlan.xctestplan drwxr-xr-x 3 david staff 96 Feb 18 17:16 ci_scripts
Nothing unique about my file permission settings. But Periphery cannot open/read/write the files like the project file nor the .periphery.yml file that was created by the command line (I deleted it in hope that it could create a new one).
Reproduction If you are reporting an incorrect result, please provide a sample Xcode or Swift package project that reproduces the issue.
Environment Copy the output from running:
periphery version
swift -version
xcodebuild -version
❯ 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
You need to disable User Script Sandboxing in the Build Settings of your Aggregate, afterwards it will work