forkingdog / forkingdog/FDStackView

在iOS10上removeAllSubviews后,再调用addArrangedSubview Crash

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
2.5k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

在iOS10上removeAllSubviews后,再调用addArrangedSubview Crash,什么原因?

报错:
Assertion failure in -[FDStackView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.7.47/NSLayoutConstraint_UIKitAdditions.m:649
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the sequence of removeAllSubviews followed by addArrangedSubview on iOS 10, using the reported FDStackView assertion as the failure point. Trace the involved layout-constraint operations and determine the cause and a verified resolution for this sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.