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에서 테스트하다가 난 에러
![](https://t1.daumcdn.net/keditor/emoticon/niniz/large/016.gif)
나는 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를 만들어서 넣어주는 것으로
문제를 해결할 수 있었다.
'swift > correct a mistake' 카테고리의 다른 글
Xcode 자동완성 안될 때 (Auto Complete Not Working) (0) | 2021.10.10 |
---|---|
UITableViewCell Self-Sizing Not Work!!!! (2) | 2021.10.07 |
nw_protocol_get_quic_image_block_invoke dlopen libquic failed (0) | 2021.08.13 |
Asset에 생성한 LaunchImage로 Launch Screen Setting하기 (4) | 2020.01.20 |
Xcode error The maximum number of apps for free development profiles has been reached (0) | 2019.08.29 |
블로그의 정보
Beautiful Coding
사슴비행기