New auto layout errors with Xcode 8.1Git ignore file for Xcode projectsUsing Auto Layout in UITableView for dynamic cell layouts & variable row heightsHow can I use Autolayout to set constraints on my UIScrollview?OS X NSAlert window won't close in xCode 8 in Objective-CLayout issue with NSSplitView inside NSTabView - missing constraintsNSOpenPanel triggers DETECTED_MISSING_CONSTRAINTS layout errorCNContactViewController does not span the full widthxcode 8 Detected missing constraintsCocoa NSTextField not editable, and disappears with setSelectableHow to let a auto layout constraint depend on sibling view?
Why don't airports use arresting gears to recover energy from landing passenger planes?
Prove that a convergent real sequence always has a smallest or a largest term
Add custom attribute to an external JS script
Impossible Scrabble Words
What makes a smart phone "kosher"?
In what state are satellites left in when they are left in a graveyard orbit?
Can I see Harvest moon in India?
Exponentiation with parentheses
Is a suit against a University Dorm for changing policies on a whim likely to succeed (USA)?
In what sequence should an advanced civilization teach technology to medieval society to maximize rate of adoption?
How would you control supersoldiers in a late iron-age society?
Test to know when to use GLM over Linear Regression?
'Overwrote' files, space still occupied, are they lost?
What does "boys rule, girls drool" mean?
I was promised a work PC but still awaiting approval 3 months later so using my own laptop - Is it fair to ask employer for laptop insurance?
How To Make Earth's Oceans as Brackish as Lyr's
Why are some files not movable on Windows 10?
Planar regular languages
Does chmod 700 hides directory from other users or just restrict them to display files inside the directory?
Some Prime Peerage
Is there a tool to measure the "maturity" of a code in Git?
Make 1998 using the least possible digits 8
What was the motivation for the invention of electric pianos?
Make 2019 with single digits
New auto layout errors with Xcode 8.1
Git ignore file for Xcode projectsUsing Auto Layout in UITableView for dynamic cell layouts & variable row heightsHow can I use Autolayout to set constraints on my UIScrollview?OS X NSAlert window won't close in xCode 8 in Objective-CLayout issue with NSSplitView inside NSTabView - missing constraintsNSOpenPanel triggers DETECTED_MISSING_CONSTRAINTS layout errorCNContactViewController does not span the full widthxcode 8 Detected missing constraintsCocoa NSTextField not editable, and disappears with setSelectableHow to let a auto layout constraint depend on sibling view?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a macOS app that was running just fine until I upgraded to Xcode 8.1.
The app opens a dialogue with NSOpenPanel to allow the user to choose an image. When I select an image and choose "Open" I get the following error:
2016-11-03 10:23:25.589283 PA Places Data[9008:265214] [Layout]
Detected missing constraints for NSTextField: 0x6000001e3a00. It
cannot be placed because there are not enough constraints to fully
define the size and origin. Add the missing constraints or set
translatesAutoresizingMaskIntoConstraints=YES and constraints will be
generated for you. If this view is laid out manually on macOS 10.12
and later, you may choose to not call [super layout] from your
override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug.
This error will only be logged once.
The open dialogue then freezes and cannot be dismissed.
As suggested, I set a breakpoint for DETECTED_MISSING_CONSTRAINTS and find that execution is halting on myPopup.runModal() in this code:
func happyAlert(message: String, info: String)
let myPopup: NSAlert = NSAlert()
myPopup.messageText = message
myPopup.informativeText = info
myPopup.alertStyle = NSAlertStyle.informational
myPopup.addButton(withTitle: "OK")
myPopup.runModal()
This alert informs the user that the image has passed or not passed various validation checks.
What used to happen is that the image was selected, the NSOpenPanel dismissed and the alert appeared without any problems.
Now I get the error about constraints for an NSTextField, but I don't understand why they would be involved here, especially since Xcode does not flag any autolayout issues with the underlying view.
Can anyone explain what might be going on and/or a strategy for further debugging? My experience is limited and I am baffled.
swift macos cocoa autolayout nsalert
add a comment
|
I have a macOS app that was running just fine until I upgraded to Xcode 8.1.
The app opens a dialogue with NSOpenPanel to allow the user to choose an image. When I select an image and choose "Open" I get the following error:
2016-11-03 10:23:25.589283 PA Places Data[9008:265214] [Layout]
Detected missing constraints for NSTextField: 0x6000001e3a00. It
cannot be placed because there are not enough constraints to fully
define the size and origin. Add the missing constraints or set
translatesAutoresizingMaskIntoConstraints=YES and constraints will be
generated for you. If this view is laid out manually on macOS 10.12
and later, you may choose to not call [super layout] from your
override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug.
This error will only be logged once.
The open dialogue then freezes and cannot be dismissed.
As suggested, I set a breakpoint for DETECTED_MISSING_CONSTRAINTS and find that execution is halting on myPopup.runModal() in this code:
func happyAlert(message: String, info: String)
let myPopup: NSAlert = NSAlert()
myPopup.messageText = message
myPopup.informativeText = info
myPopup.alertStyle = NSAlertStyle.informational
myPopup.addButton(withTitle: "OK")
myPopup.runModal()
This alert informs the user that the image has passed or not passed various validation checks.
What used to happen is that the image was selected, the NSOpenPanel dismissed and the alert appeared without any problems.
Now I get the error about constraints for an NSTextField, but I don't understand why they would be involved here, especially since Xcode does not flag any autolayout issues with the underlying view.
Can anyone explain what might be going on and/or a strategy for further debugging? My experience is limited and I am baffled.
swift macos cocoa autolayout nsalert
2
After some more searching, it appears this issue may be related to OS 10.12 to which I have upgraded, but did not note above. openradar.appspot.com/28700495
– Peter Wiley
Nov 3 '16 at 15:19
4
Here too happened with an NSAlert: 2016-12-19 19:53:32.717529 TreeTest[1668:47124] [Layout] Detected missing constraints for <NSTextField: 0x6080001e0900>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.
– Mike97
Dec 19 '16 at 18:59
I had that same problem, but it wasn't related to an open dialog. Make sure that your issue isn't either.
– Coder256
Dec 11 '17 at 7:53
@PeterWiley Have you tried anchors?
– 3ddpaz
May 15 at 3:04
myPopUp.translatesAutoresizingMaskIntoConstraints= true
– 3ddpaz
Aug 7 at 22:07
add a comment
|
I have a macOS app that was running just fine until I upgraded to Xcode 8.1.
The app opens a dialogue with NSOpenPanel to allow the user to choose an image. When I select an image and choose "Open" I get the following error:
2016-11-03 10:23:25.589283 PA Places Data[9008:265214] [Layout]
Detected missing constraints for NSTextField: 0x6000001e3a00. It
cannot be placed because there are not enough constraints to fully
define the size and origin. Add the missing constraints or set
translatesAutoresizingMaskIntoConstraints=YES and constraints will be
generated for you. If this view is laid out manually on macOS 10.12
and later, you may choose to not call [super layout] from your
override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug.
This error will only be logged once.
The open dialogue then freezes and cannot be dismissed.
As suggested, I set a breakpoint for DETECTED_MISSING_CONSTRAINTS and find that execution is halting on myPopup.runModal() in this code:
func happyAlert(message: String, info: String)
let myPopup: NSAlert = NSAlert()
myPopup.messageText = message
myPopup.informativeText = info
myPopup.alertStyle = NSAlertStyle.informational
myPopup.addButton(withTitle: "OK")
myPopup.runModal()
This alert informs the user that the image has passed or not passed various validation checks.
What used to happen is that the image was selected, the NSOpenPanel dismissed and the alert appeared without any problems.
Now I get the error about constraints for an NSTextField, but I don't understand why they would be involved here, especially since Xcode does not flag any autolayout issues with the underlying view.
Can anyone explain what might be going on and/or a strategy for further debugging? My experience is limited and I am baffled.
swift macos cocoa autolayout nsalert
I have a macOS app that was running just fine until I upgraded to Xcode 8.1.
The app opens a dialogue with NSOpenPanel to allow the user to choose an image. When I select an image and choose "Open" I get the following error:
2016-11-03 10:23:25.589283 PA Places Data[9008:265214] [Layout]
Detected missing constraints for NSTextField: 0x6000001e3a00. It
cannot be placed because there are not enough constraints to fully
define the size and origin. Add the missing constraints or set
translatesAutoresizingMaskIntoConstraints=YES and constraints will be
generated for you. If this view is laid out manually on macOS 10.12
and later, you may choose to not call [super layout] from your
override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug.
This error will only be logged once.
The open dialogue then freezes and cannot be dismissed.
As suggested, I set a breakpoint for DETECTED_MISSING_CONSTRAINTS and find that execution is halting on myPopup.runModal() in this code:
func happyAlert(message: String, info: String)
let myPopup: NSAlert = NSAlert()
myPopup.messageText = message
myPopup.informativeText = info
myPopup.alertStyle = NSAlertStyle.informational
myPopup.addButton(withTitle: "OK")
myPopup.runModal()
This alert informs the user that the image has passed or not passed various validation checks.
What used to happen is that the image was selected, the NSOpenPanel dismissed and the alert appeared without any problems.
Now I get the error about constraints for an NSTextField, but I don't understand why they would be involved here, especially since Xcode does not flag any autolayout issues with the underlying view.
Can anyone explain what might be going on and/or a strategy for further debugging? My experience is limited and I am baffled.
swift macos cocoa autolayout nsalert
swift macos cocoa autolayout nsalert
edited Mar 28 at 12:22
Marek H
2,9451 gold badge15 silver badges29 bronze badges
2,9451 gold badge15 silver badges29 bronze badges
asked Nov 3 '16 at 15:00
Peter WileyPeter Wiley
3282 silver badges13 bronze badges
3282 silver badges13 bronze badges
2
After some more searching, it appears this issue may be related to OS 10.12 to which I have upgraded, but did not note above. openradar.appspot.com/28700495
– Peter Wiley
Nov 3 '16 at 15:19
4
Here too happened with an NSAlert: 2016-12-19 19:53:32.717529 TreeTest[1668:47124] [Layout] Detected missing constraints for <NSTextField: 0x6080001e0900>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.
– Mike97
Dec 19 '16 at 18:59
I had that same problem, but it wasn't related to an open dialog. Make sure that your issue isn't either.
– Coder256
Dec 11 '17 at 7:53
@PeterWiley Have you tried anchors?
– 3ddpaz
May 15 at 3:04
myPopUp.translatesAutoresizingMaskIntoConstraints= true
– 3ddpaz
Aug 7 at 22:07
add a comment
|
2
After some more searching, it appears this issue may be related to OS 10.12 to which I have upgraded, but did not note above. openradar.appspot.com/28700495
– Peter Wiley
Nov 3 '16 at 15:19
4
Here too happened with an NSAlert: 2016-12-19 19:53:32.717529 TreeTest[1668:47124] [Layout] Detected missing constraints for <NSTextField: 0x6080001e0900>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.
– Mike97
Dec 19 '16 at 18:59
I had that same problem, but it wasn't related to an open dialog. Make sure that your issue isn't either.
– Coder256
Dec 11 '17 at 7:53
@PeterWiley Have you tried anchors?
– 3ddpaz
May 15 at 3:04
myPopUp.translatesAutoresizingMaskIntoConstraints= true
– 3ddpaz
Aug 7 at 22:07
2
2
After some more searching, it appears this issue may be related to OS 10.12 to which I have upgraded, but did not note above. openradar.appspot.com/28700495
– Peter Wiley
Nov 3 '16 at 15:19
After some more searching, it appears this issue may be related to OS 10.12 to which I have upgraded, but did not note above. openradar.appspot.com/28700495
– Peter Wiley
Nov 3 '16 at 15:19
4
4
Here too happened with an NSAlert: 2016-12-19 19:53:32.717529 TreeTest[1668:47124] [Layout] Detected missing constraints for <NSTextField: 0x6080001e0900>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.
– Mike97
Dec 19 '16 at 18:59
Here too happened with an NSAlert: 2016-12-19 19:53:32.717529 TreeTest[1668:47124] [Layout] Detected missing constraints for <NSTextField: 0x6080001e0900>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.
– Mike97
Dec 19 '16 at 18:59
I had that same problem, but it wasn't related to an open dialog. Make sure that your issue isn't either.
– Coder256
Dec 11 '17 at 7:53
I had that same problem, but it wasn't related to an open dialog. Make sure that your issue isn't either.
– Coder256
Dec 11 '17 at 7:53
@PeterWiley Have you tried anchors?
– 3ddpaz
May 15 at 3:04
@PeterWiley Have you tried anchors?
– 3ddpaz
May 15 at 3:04
myPopUp.translatesAutoresizingMaskIntoConstraints= true
– 3ddpaz
Aug 7 at 22:07
myPopUp.translatesAutoresizingMaskIntoConstraints= true
– 3ddpaz
Aug 7 at 22:07
add a comment
|
1 Answer
1
active
oldest
votes
Check your view hierarchy in the interface builder it might be that the textField sits on top of everything and Xcode is trying to set the constraints for it. Otherwise, perhaps add some screenshots of what is going on in your storyboards.
Have you tried setting the textField's in question width and height from = to >= the value set? I had issues in the past where such a silly setting has sorted a bug similar to this one.
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40404846%2fnew-auto-layout-errors-with-xcode-8-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check your view hierarchy in the interface builder it might be that the textField sits on top of everything and Xcode is trying to set the constraints for it. Otherwise, perhaps add some screenshots of what is going on in your storyboards.
Have you tried setting the textField's in question width and height from = to >= the value set? I had issues in the past where such a silly setting has sorted a bug similar to this one.
add a comment
|
Check your view hierarchy in the interface builder it might be that the textField sits on top of everything and Xcode is trying to set the constraints for it. Otherwise, perhaps add some screenshots of what is going on in your storyboards.
Have you tried setting the textField's in question width and height from = to >= the value set? I had issues in the past where such a silly setting has sorted a bug similar to this one.
add a comment
|
Check your view hierarchy in the interface builder it might be that the textField sits on top of everything and Xcode is trying to set the constraints for it. Otherwise, perhaps add some screenshots of what is going on in your storyboards.
Have you tried setting the textField's in question width and height from = to >= the value set? I had issues in the past where such a silly setting has sorted a bug similar to this one.
Check your view hierarchy in the interface builder it might be that the textField sits on top of everything and Xcode is trying to set the constraints for it. Otherwise, perhaps add some screenshots of what is going on in your storyboards.
Have you tried setting the textField's in question width and height from = to >= the value set? I had issues in the past where such a silly setting has sorted a bug similar to this one.
answered Sep 10 at 8:22
AD ProgressAD Progress
8243 silver badges18 bronze badges
8243 silver badges18 bronze badges
add a comment
|
add a comment
|
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40404846%2fnew-auto-layout-errors-with-xcode-8-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
After some more searching, it appears this issue may be related to OS 10.12 to which I have upgraded, but did not note above. openradar.appspot.com/28700495
– Peter Wiley
Nov 3 '16 at 15:19
4
Here too happened with an NSAlert: 2016-12-19 19:53:32.717529 TreeTest[1668:47124] [Layout] Detected missing constraints for <NSTextField: 0x6080001e0900>. It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.
– Mike97
Dec 19 '16 at 18:59
I had that same problem, but it wasn't related to an open dialog. Make sure that your issue isn't either.
– Coder256
Dec 11 '17 at 7:53
@PeterWiley Have you tried anchors?
– 3ddpaz
May 15 at 3:04
myPopUp.translatesAutoresizingMaskIntoConstraints= true
– 3ddpaz
Aug 7 at 22:07