tvOS Crash

Using SDK 5.7.15

Saving a object causes a crash
Screen Shot 2020-05-17 at 12.51.14 PM|690x177

   let newActivation = Activation()
    newActivation.code = "1234"
    newActivation.companyID = "34234"
    
    Backendless.shared.data.of(Activation.self).save(entity: newActivation, responseHandler: { savedPerson in

Hi Robert,

We’ll take a look and back to you as soon as possible.

Internal ticket is created: BKNDLSS-21549

Best regards,
Yevgen

Hi Robert,

I cannot reproduce this issue and object is saved without any problems.
If this issue still appears, please provide a sample project so I could reproduce it.

Regards,
Olha

I figured out what was going on, it happens both on iOS and tvOS.
if the class does not have a objectId Var it will crash

@objcMembers class Person: NSObject {
var name: String?
var age: NSNumber?
var objectId: String   // REQUIRED
}

The documentation has an example without that variable.

@objcMembers class Person: NSObject {
var name: String?
var age: NSNumber?
}

Robert

Weird issue. I’ll take a look into it.

test.zip (439.4 KB)

Here is an example

Fixed, please check with v5.7.16.

Regards,
Olha