Lined Notebook

stackView의 constraint 조정 중에 발생한 The process has been left at the point where it was interrupted 에러

by 사슴비행기
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

 

playground에서 테스트하다가 난 에러

나는 stackView를 테스트하고 있었는데

나에게 도움될만한 답변을 찾는데에

좀 오래 걸렸다..ㅠ

 

일단 결국엔 찾은

스택오버플로우 답변을 보면

 

 

Swift Playground error: Execution was interrupted, reason: signal SIGABRT

How to even debug this error? There seems to be no additional error description to it. The code that fails: import UIKit import PlaygroundSupport let containerView = UIView(frame: CGRect(x: 0, y: 0,

stackoverflow.com

 

The problem is that you are adding the constraint to stackView rather than containerView.
문제는 제약 조건을 containerView가 아닌 stackView에 추가한다는 것입니다. 

 

오?! 알고보니 코드 중에

constraint를 변경하는 코드 중에

stackView의 width와 Anchor를 맞춘다는

내용이 있어서 나던 에러였다!

 

그래서 해당 내용을

새로운 size를 만들어서 넣어주는 것으로

문제를 해결할 수 있었다.

 

 

 

 

블로그의 정보

Beautiful Coding

사슴비행기

활동하기