TWTRTimelineViewController layout issues

ios
twitterkit

#1

Hi,

I’m trying to embed a simple user timeline (using TwitterKit 2.4.0), as per the documentation, but I’m having all sorts of layout issues. I thought these were addressed as of version 2.0 when everything moved to Auto Layout, but I guess it introduced more issues?

Are you aware of these and are they being addressed?

I use the following line to load Fabric’s timeline:
self.dataSource = [[TWTRUserTimelineDataSource alloc] initWithScreenName:@“fabric” APIClient:client];
but am also having the same issue with other timelines as well.

The timeline loads, and most retweets are messed up as well as other tweets not having enough space to display properly.The following immediately shows up in Xcode:
2016-09-20 20:56:48.677 TestCL2[2093:68414] [Fabric] Unable to locate application icon
2016-09-20 20:56:50.302 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba98e71440 H:[TWTRProfileHeaderView:0x7fba98e9f360]-(0)-| (Names: ‘|’:TWTRTweetView:0x7fba98e70f90 )>”,
“NSLayoutConstraint:0x7fba98ea3020 H:[TWTRTweetMediaView:0x7fba98e48310]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98e70f90 )>”,
“NSLayoutConstraint:0x7fba98e71490 UILabel:0x7fba98e9e9d0’Crashlytics’.leading == TWTRTweetLabel:0x7fba98e76a20’The inside scoop on how w…’.leading>”,
“NSLayoutConstraint:0x7fba98ea3310 TWTRTweetLabel:0x7fba98e76a20’The inside scoop on how w…’.leading == TWTRTweetMediaView:0x7fba98e48310.leading>”,
"<NSLayoutConstraint:0x7fba98e9b390 H:[UILabel:0x7fba98e9e9d0’Crashlytics’]-(4)-[UILabel:0x7fba98ea28d0’@crashlytics’]>",
"<NSLayoutConstraint:0x7fba98e9b3e0 H:[UILabel:0x7fba98ea28d0’@crashlytics’]-(0)-[TWTRTimestampLabel:0x7fba98e99c10’ \U2022 Sep 08’]>",
“NSLayoutConstraint:0x7fba98e9f130 H:[TWTRTimestampLabel:0x7fba98e99c10’ \U2022 Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98e97740]>”,
“NSLayoutConstraint:0x7fba98e9f180 H:[TWTRBirdView:0x7fba98e97740]-(12)-| (Names: ‘|’:TWTRProfileHeaderView:0x7fba98e9f360 )>”,
“NSLayoutConstraint:0x7fba98ec0a40 H:[TWTRTweetMediaView:0x7fba98e48310(0)]>”
)

Will attempt to recover by breaking constraint
NSLayoutConstraint:0x7fba98e9f130 H:[TWTRTimestampLabel:0x7fba98e99c10’ • Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98e97740]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:50.303 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba98e713f0 H:|-(15)-[TWTRProfileHeaderView:0x7fba98e9f360] (Names: ‘|’:TWTRTweetView:0x7fba98e70f90 )>”,
“NSLayoutConstraint:0x7fba98ea3020 H:[TWTRTweetMediaView:0x7fba98e48310]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98e70f90 )>”,
“NSLayoutConstraint:0x7fba98e71490 UILabel:0x7fba98e9e9d0’Crashlytics’.leading == TWTRTweetLabel:0x7fba98e76a20’The inside scoop on how w…’.leading>”,
“NSLayoutConstraint:0x7fba98ea3310 TWTRTweetLabel:0x7fba98e76a20’The inside scoop on how w…’.leading == TWTRTweetMediaView:0x7fba98e48310.leading>”,
“NSLayoutConstraint:0x7fba98ea0b60 H:|-(0)-[TWTRProfileView:0x7fba98e8c5e0] (Names: ‘|’:TWTRProfileHeaderView:0x7fba98e9f360 )>”,
“NSLayoutConstraint:0x7fba98e9b340 H:[TWTRProfileView:0x7fba98e8c5e0]-(9)-[UILabel:0x7fba98e9e9d0’Crashlytics’]>”,
“NSLayoutConstraint:0x7fba98e9a860 H:[TWTRProfileView:0x7fba98e8c5e0(36)]>”,
"<NSLayoutConstraint:0x7fba98eabaf0 H:|-(0)-[TWTRTweetView:0x7fba98e70f90] (Names: ‘|’:UITableViewCellContentView:0x7fba98e70d70 )>",
“NSLayoutConstraint:0x7fba98eab7d0 H:[TWTRTweetView:0x7fba98e70f90]-(0)-| (Names: ‘|’:UITableViewCellContentView:0x7fba98e70d70 )>”,
“SLayoutConstraint:0x7fba98ec0a40 H:[TWTRTweetMediaView:0x7fba98e48310(0)]>”,
“NSLayoutConstraint:0x7fba98d99280 ‘fittingSizeHTarget’ H:[UITableViewCellContentView:0x7fba98e70d70(1024)]>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fba98e9a860 H:[TWTRProfileView:0x7fba98e8c5e0(36)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:50.311 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba98db66d0 H:[TWTRProfileHeaderView:0x7fba98dae9d0]-(0)-| (Names: ‘|’:TWTRTweetView:0x7fba98dac390 )>”,
“NSLayoutConstraint:0x7fba98db67d0 H:[TWTRTweetMediaView:0x7fba98dac650]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98dac390 )>”,
“NSLayoutConstraint:0x7fba98db6820 UILabel:0x7fba98db16f0’fastlane’.leading == TWTRTweetLabel:0x7fba98db32c0’Check out our new docs si…’.leading>”,
“NSLayoutConstraint:0x7fba98db6ab0 TWTRTweetLabel:0x7fba98db32c0’Check out our new docs si…’.leading == TWTRTweetMediaView:0x7fba98dac650.leading>”,
“NSLayoutConstraint:0x7fba98db2ba0 H:[UILabel:0x7fba98db16f0’fastlane’]-(4)-[UILabel:0x7fba98db0fa0’@FastlaneTools’]>”,
“NSLayoutConstraint:0x7fba98db2bf0 H:[UILabel:0x7fba98db0fa0’@FastlaneTools’]-(0)-[TWTRTimestampLabel:0x7fba98db08e0’ \U2022 Sep 08’]>”,
“NSLayoutConstraint:0x7fba98db2cd0 H:[TWTRTimestampLabel:0x7fba98db08e0’ \U2022 Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98db0320]>”,
“NSLayoutConstraint:0x7fba98db2d20 H:[TWTRBirdView:0x7fba98db0320]-(12)-| (Names: ‘|’:TWTRProfileHeaderView:0x7fba98dae9d0 )>”,
“NSLayoutConstraint:0x7fba9a0bc4c0 H:[TWTRTweetMediaView:0x7fba98dac650(0)]>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fba98db2cd0 H:[TWTRTimestampLabel:0x7fba98db08e0’ • Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98db0320]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:50.312 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba98db6650 H:|-(15)-[TWTRProfileHeaderView:0x7fba98dae9d0] (Names: ‘|’:TWTRTweetView:0x7fba98dac390 )>”,
“NSLayoutConstraint:0x7fba98db67d0 H:[TWTRTweetMediaView:0x7fba98dac650]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98dac390 )>”,
“NSLayoutConstraint:0x7fba98db6820 UILabel:0x7fba98db16f0’fastlane’.leading == TWTRTweetLabel:0x7fba98db32c0’Check out our new docs si…’.leading>”,
“NSLayoutConstraint:0x7fba98db6ab0 TWTRTweetLabel:0x7fba98db32c0’Check out our new docs si…’.leading == TWTRTweetMediaView:0x7fba98dac650.leading>”,
“NSLayoutConstraint:0x7fba98db2ad0 H:|-(0)-[TWTRProfileView:0x7fba98daf2f0] (Names: ‘|’:TWTRProfileHeaderView:0x7fba98dae9d0 )>”,
“NSLayoutConstraint:0x7fba98db2b20 H:[TWTRProfileView:0x7fba98daf2f0]-(9)-[UILabel:0x7fba98db16f0’fastlane’]>”,
“NSLayoutConstraint:0x7fba98daf1e0 H:[TWTRProfileView:0x7fba98daf2f0(36)]>”,
“NSLayoutConstraint:0x7fba98dc5b10 H:|-(0)-[TWTRTweetView:0x7fba98dac390] (Names: ‘|’:UITableViewCellContentView:0x7fba98dabe60 )>”,
“NSLayoutConstraint:0x7fba98dc57f0 H:[TWTRTweetView:0x7fba98dac390]-(0)-| (Names: ‘|’:UITableViewCellContentView:0x7fba98dabe60 )>”,
“NSLayoutConstraint:0x7fba9a0bc4c0 H:[TWTRTweetMediaView:0x7fba98dac650(0)]>”,
“NSLayoutConstraint:0x7fba98eae030 ‘fittingSizeHTarget’ H:[UITableViewCellContentView:0x7fba98dabe60(1024)]>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fba98daf1e0 H:[TWTRProfileView:0x7fba98daf2f0(36)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:50.914 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba98c84850 H:|-(15)-[TWTRProfileHeaderView:0x7fba98c7cb50] (Names: ‘|’:TWTRTweetView:0x7fba98c7a5a0 )>”,
“NSLayoutConstraint:0x7fba98c849d0 H:[TWTRTweetMediaView:0x7fba98c7a840]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98c7a5a0 )>”,
“NSLayoutConstraint:0x7fba98c84a20 UILabel:0x7fba98c7f6a0’fastlane’.leading == TWTRTweetLabel:0x7fba98c81240’Check out our new docs si…’.leading>”,
“NSLayoutConstraint:0x7fba98c84cb0 TWTRTweetLabel:0x7fba98c81240’Check out our new docs si…’.leading == TWTRTweetMediaView:0x7fba98c7a840.leading>”,
“NSLayoutConstraint:0x7fba98c80a50 H:|-(0)-[TWTRProfileView:0x7fba98c7d470] (Names: ‘|’:TWTRProfileHeaderView:0x7fba98c7cb50 )>”,
“NSLayoutConstraint:0x7fba98c80aa0 H:[TWTRProfileView:0x7fba98c7d470]-(9)-[UILabel:0x7fba98c7f6a0’fastlane’]>”,
“NSLayoutConstraint:0x7fba98c7d360 H:[TWTRProfileView:0x7fba98c7d470(36)]>”,
“NSLayoutConstraint:0x7fba98c93a80 H:|-(0)-[TWTRTweetView:0x7fba98c7a5a0] (Names: ‘|’:UITableViewCellContentView:0x7fba98c799e0 )>”,
“NSLayoutConstraint:0x7fba98c93760 H:[TWTRTweetView:0x7fba98c7a5a0]-(0)-| (Names: ‘|’:UITableViewCellContentView:0x7fba98c799e0 )>”,
“NSLayoutConstraint:0x7fba98e75380 H:[TWTRTweetMediaView:0x7fba98c7a840(0)]>”,
“NSLayoutConstraint:0x7fba98e7a7c0 ‘UIView-Encapsulated-Layout-Width’ H:[UITableViewCellContentView:0x7fba98c799e0(1024)]>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fba98c7d360 H:[TWTRProfileView:0x7fba98c7d470(36)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:50.914 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba98c848d0 H:[TWTRProfileHeaderView:0x7fba98c7cb50]-(0)-| (Names: ‘|’:TWTRTweetView:0x7fba98c7a5a0 )>”,
“NSLayoutConstraint:0x7fba98c849d0 H:[TWTRTweetMediaView:0x7fba98c7a840]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98c7a5a0 )>”,
“NSLayoutConstraint:0x7fba98c84a20 UILabel:0x7fba98c7f6a0’fastlane’.leading == TWTRTweetLabel:0x7fba98c81240’Check out our new docs si…’.leading>”,
“NSLayoutConstraint:0x7fba98c84cb0 TWTRTweetLabel:0x7fba98c81240’Check out our new docs si…’.leading == TWTRTweetMediaView:0x7fba98c7a840.leading>”,
"<NSLayoutConstraint:0x7fba98c80b20 H:[UILabel:0x7fba98c7f6a0’fastlane’]-(4)-[UILabel:0x7fba98c7f120’@FastlaneTools’]>",
“NSLayoutConstraint:0x7fba98c80b70 H:[UILabel:0x7fba98c7f120’@FastlaneTools’]-(0)-[TWTRTimestampLabel:0x7fba98c7ea60’ \U2022 Sep 08’]>”,
“NSLayoutConstraint:0x7fba98c80c50 H:[TWTRTimestampLabel:0x7fba98c7ea60’ \U2022 Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98c7e4a0]>”,
“NSLayoutConstraint:0x7fba98c80ca0 H:[TWTRBirdView:0x7fba98c7e4a0]-(12)-| (Names: ‘|’:TWTRProfileHeaderView:0x7fba98c7cb50 )>”,
“NSLayoutConstraint:0x7fba98e75380 H:[TWTRTweetMediaView:0x7fba98c7a840(0)]>”
)

Will attempt to recover by breaking constraint
NSLayoutConstraint:0x7fba98c80c50 H:[TWTRTimestampLabel:0x7fba98c7ea60’ • Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98c7e4a0]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:51.126 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba9a404b10 H:|-(15)-[TWTRProfileHeaderView:0x7fba98df9310] (Names: ‘|’:TWTRTweetView:0x7fba98df6d80 )>”,
“NSLayoutConstraint:0x7fba9a404c90 H:[TWTRTweetMediaView:0x7fba98df6fa0]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98df6d80 )>”,
“NSLayoutConstraint:0x7fba9a404ce0 UILabel:0x7fba98dfbe30’fastlane’.leading == TWTRTweetLabel:0x7fba9a401980’Check out our new docs si…’.leading>”,
“NSLayoutConstraint:0x7fba9a404f70 TWTRTweetLabel:0x7fba9a401980’Check out our new docs si…’.leading == TWTRTweetMediaView:0x7fba98df6fa0.leading>”,
“NSLayoutConstraint:0x7fba9a401190 H:|-(0)-[TWTRProfileView:0x7fba98df9c30] (Names: ‘|’:TWTRProfileHeaderView:0x7fba98df9310 )>”,
“NSLayoutConstraint:0x7fba9a4011e0 H:[TWTRProfileView:0x7fba98df9c30]-(9)-[UILabel:0x7fba98dfbe30’fastlane’]>”,
“NSLayoutConstraint:0x7fba98df9b20 H:[TWTRProfileView:0x7fba98df9c30(36)]>”,
“NSLayoutConstraint:0x7fba9a413cf0 H:|-(0)-[TWTRTweetView:0x7fba98df6d80] (Names: ‘|’:UITableViewCellContentView:0x7fba98de7390 )>”,
“NSLayoutConstraint:0x7fba9a4139d0 H:[TWTRTweetView:0x7fba98df6d80]-(0)-| (Names: ‘|’:UITableViewCellContentView:0x7fba98de7390 )>”,
“NSLayoutConstraint:0x7fba98c68430 H:[TWTRTweetMediaView:0x7fba98df6fa0(0)]>”,
“NSLayoutConstraint:0x7fba98ea6fa0 ‘UIView-Encapsulated-Layout-Width’ H:[UITableViewCellContentView:0x7fba98de7390(1024)]>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fba98df9b20 H:[TWTRProfileView:0x7fba98df9c30(36)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:51.127 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba9a404b90 H:[TWTRProfileHeaderView:0x7fba98df9310]-(0)-| (Names: ‘|’:TWTRTweetView:0x7fba98df6d80 )>”,
“NSLayoutConstraint:0x7fba9a404c90 H:[TWTRTweetMediaView:0x7fba98df6fa0]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba98df6d80 )>”,
“NSLayoutConstraint:0x7fba9a404ce0 UILabel:0x7fba98dfbe30’fastlane’.leading == TWTRTweetLabel:0x7fba9a401980’Check out our new docs si…’.leading>”,
“NSLayoutConstraint:0x7fba9a404f70 TWTRTweetLabel:0x7fba9a401980’Check out our new docs si…’.leading == TWTRTweetMediaView:0x7fba98df6fa0.leading>”,
“NSLayoutConstraint:0x7fba9a401260 H:[UILabel:0x7fba98dfbe30’fastlane’]-(4)-[UILabel:0x7fba98dfb8e0’@FastlaneTools’]>”,
"<SLayoutConstraint:0x7fba9a4012b0 H:[UILabel:0x7fba98dfb8e0’@FastlaneTools’]-(0)-[TWTRTimestampLabel:0x7fba98dfb220’ \U2022 Sep 08’]>",
“NSLayoutConstraint:0x7fba9a401390 H:[TWTRTimestampLabel:0x7fba98dfb220’ \U2022 Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98dfac60]>”,
“NSLayoutConstraint:0x7fba9a4013e0 H:[TWTRBirdView:0x7fba98dfac60]-(12)-| (Names: ‘|’:TWTRProfileHeaderView:0x7fba98df9310 )>”,
“NSLayoutConstraint:0x7fba98c68430 H:[TWTRTweetMediaView:0x7fba98df6fa0(0)]>”
)

Will attempt to recover by breaking constraint
NSLayoutConstraint:0x7fba9a401390 H:[TWTRTimestampLabel:0x7fba98dfb220’ • Sep 08’]-(>=8)-[TWTRBirdView:0x7fba98dfac60]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:51.146 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba9a0f3bd0 H:[TWTRProfileHeaderView:0x7fba9a0ec2c0]-(0)-| (Names: ‘|’:TWTRTweetView:0x7fba9a0ea2d0 )>”,
“NSLayoutConstraint:0x7fba9a0f3cd0 H:[TWTRTweetMediaView:0x7fba9a0ea4f0]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba9a0ea2d0 )>”,
“NSLayoutConstraint:0x7fba9a0f3d20 UILabel:0x7fba9a0eee10’TwitterDev’.leading == TWTRTweetLabel:0x7fba9a0f09c0’Launching Twitter Kit and…’.leading>”,
“NSLayoutConstraint:0x7fba9a0f3fb0 TWTRTweetLabel:0x7fba9a0f09c0’Launching Twitter Kit and…’.leading == TWTRTweetMediaView:0x7fba9a0ea4f0.leading>”,
“NSLayoutConstraint:0x7fba9a0f02a0 H:[UILabel:0x7fba9a0eee10’TwitterDev’]-(4)-[UILabel:0x7fba9a0ee890’@TwitterDev’]>”,
“NSLayoutConstraint:0x7fba9a0f02f0 H:[UILabel:0x7fba9a0ee890’@TwitterDev’]-(0)-[TWTRTimestampLabel:0x7fba9a0ee1d0’ \U2022 Aug 11’]>”,
“NSLayoutConstraint:0x7fba9a0f03d0 H:[TWTRTimestampLabel:0x7fba9a0ee1d0’ \U2022 Aug 11’]-(>=8)-[TWTRBirdView:0x7fba9a0edc10]>”,
“NSLayoutConstraint:0x7fba9a0f0420 H:[TWTRBirdView:0x7fba9a0edc10]-(12)-| (Names: ‘|’:TWTRProfileHeaderView:0x7fba9a0ec2c0 )>”,
“NSLayoutConstraint:0x7fba9a51cb80 H:[TWTRTweetMediaView:0x7fba9a0ea4f0(0)]>”
)

Will attempt to recover by breaking constraint
NSLayoutConstraint:0x7fba9a0f03d0 H:[TWTRTimestampLabel:0x7fba9a0ee1d0’ • Aug 11’]-(>=8)-[TWTRBirdView:0x7fba9a0edc10]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-20 20:56:51.147 TestCL2[2093:68414] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
“NSLayoutConstraint:0x7fba9a0f3b50 H:|-(15)-[TWTRProfileHeaderView:0x7fba9a0ec2c0] (Names: ‘|’:TWTRTweetView:0x7fba9a0ea2d0 )>”,
“NSLayoutConstraint:0x7fba9a0f3cd0 H:[TWTRTweetMediaView:0x7fba9a0ea4f0]-(12)-| (Names: ‘|’:TWTRTweetView:0x7fba9a0ea2d0 )>”,
“NSLayoutConstraint:0x7fba9a0f3d20 UILabel:0x7fba9a0eee10’TwitterDev’.leading == TWTRTweetLabel:0x7fba9a0f09c0’Launching Twitter Kit and…’.leading>”,
“NSLayoutConstraint:0x7fba9a0f3fb0 TWTRTweetLabel:0x7fba9a0f09c0’Launching Twitter Kit and…’.leading == TWTRTweetMediaView:0x7fba9a0ea4f0.leading>”,
“NSLayoutConstraint:0x7fba9a0f01d0 H:|-(0)-[TWTRProfileView:0x7fba9a0ecbe0] (Names: ‘|’:TWTRProfileHeaderView:0x7fba9a0ec2c0 )>”,
“NSLayoutConstraint:0x7fba9a0f0220 H:[TWTRProfileView:0x7fba9a0ecbe0]-(9)-[UILabel:0x7fba9a0eee10’TwitterDev’]>”,
“NSLayoutConstraint:0x7fba9a0ecad0 H:[TWTRProfileView:0x7fba9a0ecbe0(36)]>”,
“NSLayoutConstraint:0x7fba9a507030 H:|-(0)-[TWTRTweetView:0x7fba9a0ea2d0] (Names: ‘|’:UITableViewCellContentView:0x7fba9a0e7e60 )>”,
“NSLayoutConstraint:0x7fba9a506d10 H:[TWTRTweetView:0x7fba9a0ea2d0]-(0)-| (Names: ‘|’:UITableViewCellContentView:0x7fba9a0e7e60 )>”,
“NSLayoutConstraint:0x7fba9a51cb80 H:[TWTRTweetMediaView:0x7fba9a0ea4f0(0)]>”,
“NSLayoutConstraint:0x7fba98dcae00 ‘fittingSizeHTarget’ H:[UITableViewCellContentView:0x7fba9a0e7e60(1024)]>”
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fba9a0ecad0 H:[TWTRProfileView:0x7fba9a0ecbe0(36)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.


TWTRTweetTableViewCell squishes images?
#2

Thanks for the report!

Can you share:

  1. A screenshot of the issue
  2. The simulator device (e.g. iPhone 5s) and iOS version (e.g. 8.4) that is being used?

#3

Sure thing.

Here’s a screen shot from the simulator (iPad 2 - 9.3). Got the same issue on an iPad Air on 9.3.5 and an iPad Air 2 on 8.4


#4

Am I the only one having issues with TWTRTimelineViewController?
I’m really surprised since I am using code from the TwitterKit documentation: https://docs.fabric.io/apple/twitter/show-timelines.html#user-timeline

@stevenhepting Have you been able to replicate the issue? I tried every flavor of the iOS simulator and it behaves the same on all.

Thanks,
Joe.


#5

I’ve the same problem, it works fine some days ago. iPhone both device and simulator with iOS 10


#6

Ha! So I’m not crazy after all :slight_smile:
I’m pretty sure it was working fine last week when I decided to upgrade from 1.9.0 to 2.4.0, in order to fix layout issues :frowning:


#7

I have the same problem. In my case is happen in iPhone 9 and 10 version and with 2.1.1 and 2.3.0 of Twitter.


#8

Hey all,

We’ve been trying to reproduce this locally, but haven’t been able to yet. Does anyone have a sample project or code that we could look at to make it easier to repro?

-Mike


#9

Hey bonnell,

I can send you a test project. Where should I send it to?

Thx,
Joe.


#10

Thanks @joepro_mtl - support(at)fabric(dot)io with a reference to this thread, that’d be great!


#11

Okidoki @bonnell, I emailed a repro project and a video.

Thanks for looking into this!


#12

Thanks - got it :slight_smile:


#13

Same here!. And it is not iOS 10 problem. It is about iOS 10 SDK problem. While I was building my app with iOS 9 SDK there were no issues. But now I am building with iOS 10 SDK for my iOS 9 device, same problem occurs.:frowning:


#14

interesting idea! But I’m still using Xcode 7 on el capitan and haven’t downloaded Xcode 8 yet :frowning:


#15

I’m fetching a tweet with ID from TwitterKit, and passing it to a TWTRTweetTableViewCell cell with the configure method. But sometimes, the profile images get squished, and there’s no tweet text!!! I’m using TwitterKit 2.4.0. I attached a screen shot to show. Anyone else have this problem?

Here is my heightForRow method: return TWTRTweetTableViewCell.height(for: tweet, style: TWTRTweetViewStyle.compact, width: self.tableView.bounds.width, showingActions: false)

It looks like the error is deep within Twitter’s code and is beyond my control. Especially since I’m passing a tweet in directly from TwitterKit, and using their height method.

Here is the autolayout error given in the xcode console:

[LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x61800048c260 H:|-(15)-[TWTRProfileHeaderView:0x7f99ba7a3d30]   (active, names: '|':TWTRTweetView:0x7f99ba79fee0 )>",
    "<NSLayoutConstraint:0x61800048c3a0 H:[TWTRTweetMediaView:0x7f99ba7a0600]-(12)-|   (active, names: '|':TWTRTweetView:0x7f99ba79fee0 )>",
    "<NSLayoutConstraint:0x61800048c3f0 UILabel:0x7f99bb29b580'Sopan Deb'.leading ==     TWTRTweetLabel:0x7f99bb29bcb0'Exchange is pretty tellin...'.leading   (active)>",
    "<NSLayoutConstraint:0x61800048c4e0 TWTRTweetLabel:0x7f99bb29bcb0'Exchange is pretty tellin...'.leading == TWTRTweetMediaView:0x7f99ba7a0600.leading   (active)>",
    "<NSLayoutConstraint:0x60000048a550 H:|-(0)-[TWTRProfileView:0x7f99ba7a42d0]   (active, names: '|':TWTRProfileHeaderView:0x7f99ba7a3d30 )>",
    "<NSLayoutConstraint:0x60000048a5a0 H:[TWTRProfileView:0x7f99ba7a42d0]-(9)-[UILabel:0x7f99bb29b580'Sopan Deb']   (active)>",
    "<NSLayoutConstraint:0x610000493290 TWTRProfileView:0x7f99ba7a42d0.width == 36   (active)>",
    "<NSLayoutConstraint:0x61800048c990 H:|-(0)-[TWTRTweetView:0x7f99ba79fee0]   (active, names: '|':UITableViewCellContentView:0x7f99ba79c410 )>",
    "<NSLayoutConstraint:0x61800048c9e0 TWTRTweetView:0x7f99ba79fee0.trailing == UITableViewCellContentView:0x7f99ba79c410.trailing   (active)>",
    "<NSLayoutConstraint:0x60800048f0a0 TWTRTweetMediaView:0x7f99ba7a0600.width == 0   (active)>",
    "<NSLayoutConstraint:0x6100004936a0 'UIView-Encapsulated-Layout-Width' UITableViewCellContentView:0x7f99ba79c410.width == 414   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x610000493290 TWTRProfileView:0x7f99ba7a42d0.width == 36   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-09-25 15:50:52.907022 Sifftr[14016:344581] [LayoutConstraints] Unable to simultaneously satisfy constraints.

What I think is happening: It looks like the configure(with: tweet) method and the TWTRTweetTableViewCell.height method don’t take into account any images that are in the tweet because they load the image asynchronously. And further, it looks like there is no callback method so that I can adjust the height of the cell to the new height after the image load.


#17

He seems to be using TwitterKit a little differently than I am, but that is exactly the same issue.

And for some reason, it seems it mostly happens on retweets - just as in my case.

edit: Merged by moderator.


#19

Hi yes - it looks like the same problem!

Previously, we were using TwitterKit 2.2.0 with static JSON representation of tweets. And that worked perfectly.

However, we upgraded to TwitterKit 2.4.0 when we upgraded to Xcode 8 / ios 10 / swift 3, that started crashing with an illegal argument error. Unfortunately, TwitterKit 2.2.0 is no longer available for download, so we couldn’t revert. So I started using LoadTweetWithID as a sanity check, and that has the weird profile image stretching.

Our server guy is looking into any updates he needs to make to fix our static JSON representation, since it looks like the Twitter API changed at the end of August?


#20

Thanks for confirming @danramteke and you can find information on the API updates here: https://twittercommunity.com/t/additional-updates-to-new-tweet-api-options/73933 and here: https://twittercommunity.com/t/new-attachment-url-option-is-now-live-on-the-tweet-endpoints/74270


#21

Great! I’ve passed those along!


#22

I don’t think this was broken in 2.4.0. I just tested with previous versions (2.0.2, 2.2.0 and 2.4.0) and they all have the same issue. As a matter of fact, I’m pretty sure it worked fine when I first upgraded from 1.9.0 to 2.4.0. Perhaps the API changes are to blame for this? No idea :frowning:

@bonnell Any luck replicating the issue with the repro project?