Issue: Build Failure When Profiling with Instruments
When attempting to profile or build for Instruments, the build fails for modules that contain --accessLevel public in the run script.
Our project is modular, and this issue occurs only when profiling with Instruments—all other configurations, including Archiving, work fine.
If we remove the --accessLevel public flag from the run script, the build succeeds. However, we need this flag to allow other modules to access resources in the utility module.
Run Script:
"$PODS_ROOT/R.swift/rswift" generate --accessLevel public "$SRCROOT/UtilityModule/Resources/R.generated.swift"
Screenshots:


Version Information:
Xcode: 16.2
R.Swift:  pod 'R.swift' , '5.1.0'
Dependency Manager: Cocoapods v 1.16
Minimum Deployment: iOS 14.0