forkingdog / forkingdog/FDStackView
Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named UIStoryboardShowSegueTemplate'
- Dominant language
- Objective-C
- Stars
- 2.5k
- Forks
- 310
- PR merge metrics
- No merged PRs in 30d
Description
在项目设定支持到iOS7时,storyboard中controller的build for选择iOS9.0 and later,这种情况下当使用storyboard instantiateViewControllerWithIdentifier:@"XXXXX"或者instantiateInitialViewController取得视图控制器时,会报Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named UIStoryboardShowSegueTemplate错误,工程直接挂掉,而其他没有使用stackView没有改变build for这个选项的storyboard则不会有这种问题
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the crash using FDStackView with the project deployment target set to iOS 7 and the storyboard controller's Build For setting set to iOS 9.0 and later. Compare this with a storyboard that does not use stack views, then trace the storyboard instantiation path; done means instantiateViewControllerWithIdentifier: and instantiateInitialViewController no longer raise NSInvalidUnarchiveOperationException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100