Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

在iOS10上removeAllSubviews后,再调用addArrangedSubview Crash

Open
#49 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
Objective-C
Stars
2.5k
Forks
310
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from forkingdog/FDStackView

All issues in forkingdog/FDStackView

Similar issues

More Objective-C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.