Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash when device orientation is changed #146

Open
ReflectCode opened this issue Aug 26, 2021 · 1 comment
Open

App crash when device orientation is changed #146

ReflectCode opened this issue Aug 26, 2021 · 1 comment

Comments

@ReflectCode
Copy link

ReflectCode commented Aug 26, 2021

What did you do?

Run app and change device orientation

What did you expect to happen?

App should work in all orientation

What happened instead?

App crashed immediately

Your Environment

  • Version of the component: Latest
  • Swift version: 5.0
  • iOS version: 14.5
  • Device: iPhone 8 Plus Simulator
  • Xcode version: xcode12.5
  • If you use Cocoapods: run | pbcopy` and insert here

Stack

   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
    RubyGems : 3.0.3
        Host : macOS 11.4 (20F71)
       Xcode : 12.5 (12E262)
         Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '13.2'
target 'TabBarV1' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for TabBarV1
  pod 'Segmentio'
end

Crash Info:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No view controllers'
File : Segmentio.swift
After end of function : open override func layoutSubviews() {}

Device orientation change cash log.txt

Project that demonstrates the bug

https://github.com/ReflectCode/PagerAdapter-demo

@ReflectCode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant