I subclass UITableViewCell and use PureLayout to apply constraints but the app terminates with the error "PureLayout is not thread safe, and must be used exclusively from the main thread".
In the function...
initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
I have just applied one constraint
[self.label autoSetDimension:ALDimensionHeight toSize:50];
When this is removed, the app doesn't crash
update--- it's probably because I'm calling an API asynchronously