mac-cain13 / R.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects
MIT License
9.5k stars 764 forks source link

Xcode build with Enterprise Distribution Certificate fails #898

Closed vdm-swm closed 1 month ago

vdm-swm commented 4 months ago

Our project uses two developer accounts for distribution:

While building (via codeMagic) works for our production builds without any issues, the test/integration builds will always fail with No signing certificate "Mac App Distribution" found: No "Mac App Distribution" signing certificate matching team ID "xxxxx" with a private key was found.

We are using R.swift with SPM and "Run Build Tool Plug-ins" with "RswiftGenerateInternalResources". Why is "Mac App Distribution" needed in the first place?

mac-cain13 commented 1 month ago

R.swift should not influence signing in any way. It seems to me like this is an issue unrelated to R.swift. Can you build the same project without running R.swift? (And checking in the R.generated.swift file for example.)

Will close this issue since I really think this is unrelated, but feel free to comment/open a new one once you see that signing is all ok without R.swift and just adding R.swift breaks things.