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;








25















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.










share|improve this question





















  • 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

















25















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.










share|improve this question





















  • 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













25












25








25


3






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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












1 Answer
1






active

oldest

votes


















0
















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.






share|improve this answer
























    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
    );



    );














    draft saved

    draft discarded
















    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









    0
















    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.






    share|improve this answer





























      0
















      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.






      share|improve this answer



























        0














        0










        0









        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 10 at 8:22









        AD ProgressAD Progress

        8243 silver badges18 bronze badges




        8243 silver badges18 bronze badges





















            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.




















            draft saved

            draft discarded















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해