periphery icon indicating copy to clipboard operation
periphery copied to clipboard

The project doesn't contain a .pbxproj file

Open HardysLarry opened this issue 1 year ago • 2 comments

Referring to issue #55, I'd like to raise a subsequent one with the same problem.

My folder structure is this one:

MyProject

  • MyProject.xcworkspace
  • Package1
  • PackageN
  • MyProject -- MyProject.xcodeproj Executing a "periphery scan" from the command line in the top folder is working fine. However, I cannot succeed in creating the build phase so that periphery is executed, getting always that "doesn't contain a .pbxproj".

This occurs even if a provide a fully qualified path, no matter if to the .xcodeproj, or to the .pbxproj, or to the .xcworkspace..

Periphery version: 3.0.1 Xcode version: 16.2

HardysLarry avatar Jan 17 '25 16:01 HardysLarry

I'm also getting this error when following the instructions to integrate with Xcode. If I run the very same command in terminal, it works fine

The project doesn't contain a .pbxproj file at path: ...

levous avatar Jan 30 '25 16:01 levous

Try: #!/bin/bash

/opt/homebrew/bin/periphery scan --project "${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj" --schemes "${PROJECT_NAME}" --format xcode --verbose

and disable sanbox mode in Build Settings -> User Script Sanboxing

justTil avatar Mar 15 '25 14:03 justTil