Skip to content

Unable to Modify Read-Only Rollbar Configuration Properties in the Latest iOS SDK #365

@puneetpal271

Description

@puneetpal271

In the newest Rollbar Apple SDK, core configuration fields—such as the person object, the accessToken, and other environment settings—are defined as read-only properties. As a result, any direct assignment like config.person = … or config.destination.accessToken = … will fail at compile time. The official documentation (https://docs.rollbar.com/docs/sdk-module-rollbaraul) references these as configurable, but they can only be set once at initialization via the SDK’s provided factory and setter methods (for example, RollbarConfig.mutableConfig(withAccessToken:) and config.setPersonId(_:username:email:)). After initialization, you must use the corresponding setPersonId or legacy setter APIs—rather than trying to overwrite the read-only properties—to update the user context or token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions