robert-j
(Robert J)
May 17, 2020, 4:55pm
1
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
robert-j
(Robert J)
May 18, 2020, 2:19pm
4
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.
Fixed, please check with v5.7.16.
Regards,
Olha