Skip to content

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

@harshvishu

Description

@harshvishu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions