{"action":"created","issue":{"url":"https://api.github.com/repos/SnapKit/Masonry/issues/382","repository_url":"https://api.github.com/repos/SnapKit/Masonry","labels_url":"https://api.github.com/repos/SnapKit/Masonry/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/SnapKit/Masonry/issues/382/comments","events_url":"https://api.github.com/repos/SnapKit/Masonry/issues/382/events","html_url":"https://github.com/SnapKit/Masonry/issues/382","id":176887492,"number":382,"title":"Masonry is malfunctioning in iOS 10 while compiling with XCode 8.","user":{"login":"aquaibm","id":100230,"avatar_url":"https://avatars.githubusercontent.com/u/100230?v=3","gravatar_id":"","url":"https://api.github.com/users/aquaibm","html_url":"https://github.com/aquaibm","followers_url":"https://api.github.com/users/aquaibm/followers","following_url":"https://api.github.com/users/aquaibm/following{/other_user}","gists_url":"https://api.github.com/users/aquaibm/gists{/gist_id}","starred_url":"https://api.github.com/users/aquaibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquaibm/subscriptions","organizations_url":"https://api.github.com/users/aquaibm/orgs","repos_url":"https://api.github.com/users/aquaibm/repos","events_url":"https://api.github.com/users/aquaibm/events{/privacy}","received_events_url":"https://api.github.com/users/aquaibm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-09-14T11:54:38Z","updated_at":"2016-09-19T01:17:34Z","closed_at":null,"body":"It worked well before I updated to iOS 10 and Xcode 8.\r\nFor example,in a UITableViewCell subclass:\r\n\r\n```\r\n        UIImageView *imageView = [UIImageView new];\r\n        imageView.contentMode = UIViewContentModeScaleAspectFill;\r\n        [self.contentView addSubview: imageView];\r\n        self.contentView.translatesAutoresizingMaskIntoConstraints = NO;\r\n        [imageView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n            make.left.mas_equalTo(0);\r\n            make.right.mas_equalTo(0);\r\n            make.top.mas_equalTo(15);\r\n            make.height.mas_equalTo(imageView.mas_width).with.multipliedBy(9/16.0);\r\n        }];\r\n        self.pImageView = imageView;\r\n        \r\n        [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n            make.left.mas_equalTo(0);\r\n            make.right.mas_equalTo(0);\r\n            make.top.mas_equalTo(0);\r\n            make.bottom.mas_equalTo(imageView.mas_bottom).with.offset(15);\r\n        }];\r\n```\r\n\r\nThis used to work like a charm in iOS 9 while compiling with XCode 7.x, but now it is not.\r\nConsole shows this:\r\n\r\n```\r\n[LayoutConstraints] Unable to simultaneously satisfy constraints.\r\n\tProbably at least one of the constraints in the following list is one you don't want. \r\n\tTry this: \r\n\t\t(1) look at each constraint and try to figure out which you don't expect; \r\n\t\t(2) find the code that added the unwanted constraint or constraints and fix it. \r\n(\r\n    \"<MASLayoutConstraint:0x1740b1dc0 UITableViewCellContentView:0x100546830.bottom == UIImageView:0x1005203b0.bottom + 15>\",\r\n    \"<MASLayoutConstraint:0x1740b2120 UIImageView:0x1005203b0.left == UITableViewCellContentView:0x100546830.left>\",\r\n    \"<MASLayoutConstraint:0x1740b2180 UIImageView:0x1005203b0.right == UITableViewCellContentView:0x100546830.right>\",\r\n    \"<MASLayoutConstraint:0x1740b2240 UIImageView:0x1005203b0.top == UITableViewCellContentView:0x100546830.top + 15>\",\r\n    \"<MASLayoutConstraint:0x1740b2300 UIImageView:0x1005203b0.height == UIImageView:0x1005203b0.width * 0.5625>\",\r\n    \"<NSLayoutConstraint:0x174099eb0 UITableViewCellContentView:0x100546830.height == 0>\",\r\n    \"<NSLayoutConstraint:0x174099e60 UITableViewCellContentView:0x100546830.width == 375>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<MASLayoutConstraint:0x1740b2300 UIImageView:0x1005203b0.height == UIImageView:0x1005203b0.width * 0.5625>\r\n```\r\n\r\nHow can I fix this? Thanks a lot."},"comment":{"url":"https://api.github.com/repos/SnapKit/Masonry/issues/comments/247896657","html_url":"https://github.com/SnapKit/Masonry/issues/382#issuecomment-247896657","issue_url":"https://api.github.com/repos/SnapKit/Masonry/issues/382","id":247896657,"user":{"login":"aquaibm","id":100230,"avatar_url":"https://avatars.githubusercontent.com/u/100230?v=3","gravatar_id":"","url":"https://api.github.com/users/aquaibm","html_url":"https://github.com/aquaibm","followers_url":"https://api.github.com/users/aquaibm/followers","following_url":"https://api.github.com/users/aquaibm/following{/other_user}","gists_url":"https://api.github.com/users/aquaibm/gists{/gist_id}","starred_url":"https://api.github.com/users/aquaibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquaibm/subscriptions","organizations_url":"https://api.github.com/users/aquaibm/orgs","repos_url":"https://api.github.com/users/aquaibm/repos","events_url":"https://api.github.com/users/aquaibm/events{/privacy}","received_events_url":"https://api.github.com/users/aquaibm/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T01:17:34Z","updated_at":"2016-09-19T01:17:34Z","body":"@robertjpayne Oh,seems like I've made a mistake,thanks."}}
{"actor":{"display_login":"aquaibm"}}