Skip to content

Crashed in iOS - wrong sdkVersionChar variable in ADJPackageBuilder.m #140

@ridvanaltun

Description

@ridvanaltun

Hey,

I compiled the iOS application successfully, but the application crashes when opening. I don't know the Objective C language, but as far as I can tell, a variable named sdkVersionChar in the ADJPackageBuilder.m file is set incorrectly, so the strncpy function throws an error. You can see what I mean by looking at the xcode debug screenshot below.

react-native-adjust version: 4.29.3

Screen Shot 2021-08-17 at 16 36 05

By the way I resolved this issue changing sdkVersion variable definition like below in 310's line but i don't know can it break something else:

// old
sdkVersion[21];

// new
sdkVersion[50];

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