• Log inStart now

setApplicationBuild(iOS SDK API)

Syntax

setApplicationBuild:(NSString *_Nonnull)versionString;
NewRelic.setApplicationBuild:(NSString*)versionString;

Sets the buidl number of the application reported to New Relic.

Requirements

Version 5.1.0 or later of the New Relic iOS SDK.

Description

By default, New Relic uses the CFBundleVersion when reporting the build number. But you can override the reported build number by calling this method (before calling startWithApplicationToken):

Parameters

Parameter

Description

$buildString

string

Required. The string to display this application's build number.

Examples

Objective-C

Example:

[NewRelic setApplicationBuild:@"42"];

Swift

Example:

NewRelic.setApplicationBuild("42")
Copyright © 2022 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.