Skip to content

No such module 'Rswift' while Profiling | Build Failure When Profiling with Instruments | --accessLevel public #933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
harshvishu opened this issue Feb 19, 2025 · 0 comments

Comments

@harshvishu
Copy link

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:

Image
Image

Version Information:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant