SPM Package resources bundle id format has changed in Xcode 16

I have a project that uses local SPM packages for modularization. In one of my local SPM packages I have a .storyboard file that gets packaged as a resource in the SPM package and consumed inside the parent.

In Xcode 15.4, the resource bundle for my local SPM Package has the bundle id PackageName-TargetName-resources. I use this inside a parent storyboard to reference the storyboard from the SPM package.

In Xcode 16, however, the resource bundle for my SPM Package gets assigned the bundle id packagename.TargetName.resources.

This, of courses, introduces a crash in builds of my app done with Xcode 16 due to the incorrect bundle id.

There is no documentation of this change that I could find by Apple or by the SPM team.

Apple Team: There is a Feedback Report FB14803020 with the build files attached from Xcode 15.4 and Xcode 16. I cannot attach those here due to the public nature of this forum

Answered by zer0x in 801252022

The feedback report was marked as Investigation complete - Works as currently designed today so it is safe to assume the bundle ID format will be changed from Xcode 16 forward. I just wish this change was documented and communicated somewhere.

Accepted Answer

The feedback report was marked as Investigation complete - Works as currently designed today so it is safe to assume the bundle ID format will be changed from Xcode 16 forward. I just wish this change was documented and communicated somewhere.

@zer0x Any luck? Same here - my project crashed in Xcode 16 with PackageName-TargetName-resources and PackageName.TargetName.resources

SPM Package resources bundle id format has changed in Xcode 16
 
 
Q