mac-cain13 / R.swift

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

[Xcode 15] Accessing protocol public variables leads to 'fileprivate' protection level error in extensions #851

Open maximebianchi opened 9 months ago

maximebianchi commented 9 months ago

XCode version: 15_RC Rswift Version: 6 using pod / 7 using SPM

Subject: Extension of ImageResource no more compiling with error: 'fileprivate' protection level while struct implements a public protocol.

Capture d’écran 2023-09-14 à 10 21 38

tomlokhorst commented 9 months ago

This is conflicting with the new ImageResource type generated by Xcode 15.

If you change your code to explicitly refer to Rswift, it could work correctly.

Something like this:

import RswiftResources

extension RswiftResources.ImageResource {
  // …
}
dev-pac commented 9 months ago

Ho, thanks, I didn't know about this new feature of xcode 15