Hive Hive
Sign in

fix(cli): Treat proto files as sources

GitHub issue · Closed

Metadata
Source
tuist/tuist #11211
Updated
Jun 24, 2026
Domains
Generated projects
Details

No linked issue.

Treat .proto files as valid source extensions so Tuist places protobuf definitions in Xcode’s Sources phase instead of routing them through resource handling. This gives Xcode build tool plugins, including the gRPC Swift protobuf generator, the target input files they expect.

This PR intentionally does not add a synthetic build rule to suppress Xcode’s no rule to process file warning. The plugin code generation works with .proto files in Sources, and suppressing that warning would be a separate workaround.

How to test locally

  • swift build --package-path /Users/pepicrft/.superconductor/worktrees/tuist/sc-zero-phonon-a444 --replace-scm-with-registry
  • /Users/pepicrft/.superconductor/worktrees/tuist/sc-zero-phonon-a444/.build/debug/tuist generate --path /tmp/tuist-grpc-static-framework-test --no-open
  • xcodebuild build -project /tmp/tuist-grpc-static-framework-test/GrpcStaticFrameworkTest.xcodeproj -scheme GrpcModels -skipPackagePluginValidation CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""

The static framework fixture builds successfully and compiles protobuf output generated from HelloWorld.proto. With the local Xcode installed on this machine, the generated project still emits Xcode’s .proto no rule to process file warning.

Comments
TA
tuist-atlas[bot] Jun 20, 2026

The fix to treat proto files as sources is now available in 4.201.0-canary.18. Update to this version to get it.

TA
tuist-atlas[bot] Jun 20, 2026

The fix treating proto files as sources is now available in 4.201.0-canary.17. Update to this version to properly handle proto files in the Sources phase.

TA
tuist-atlas[bot] Jun 20, 2026

The fix treating .proto files as valid source extensions is now available in 4.201.0-canary.16. Protobuf definitions are now placed in Xcode’s Sources phase for build tool plugin compatibility. Update to this version.

TA
tuist-atlas[bot] Jun 20, 2026

The fix for treating proto files as valid source extensions is now available in 4.201.0-canary.15. Tuist now places protobuf definitions in Xcode’s Sources phase instead of routing them through resource handling. Update to this version to use the fix.

TA
tuist-atlas[bot] Jun 21, 2026

Proto file support as sources is now available in 4.201.0-canary.19. This treats .proto files as valid source extensions, placing them in Xcode’s Sources phase for build tool plugins like gRPC Swift protobuf generator. Update to 4.201.0-canary.19 to get this fix.