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

Crash iOS 13 on Real Device #67

Closed
FlorianBasso opened this issue Jul 9, 2019 · 24 comments
Closed

Crash iOS 13 on Real Device #67

FlorianBasso opened this issue Jul 9, 2019 · 24 comments
Labels
bug Something isn't working

Comments

@FlorianBasso
Copy link

NSInternalInconsistencyExceptionfunction signature specialization <Arg[0] = Dead> of static (extension in SideMenuSwift):__C.UIWindow.sb.getter : __C.UIWindow?

App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.

I think the issue is here static var sb: UIWindow? on StatusBar.swift file.

@kukushi
Copy link
Owner

kukushi commented Jul 9, 2019

The status bar window has gone in iOS 13. I have to found another way to animate the status bar.

Update✅:
This issue was resolved in 2.0.2 by disabling status bar animation in iOS 13 temporarily.

@kukushi kukushi added the bug Something isn't working label Jul 13, 2019
@jmoia
Copy link

jmoia commented Jul 17, 2019

Hi Kukushi, just seeing if you've already started working on a fix for iOS 13, or if I should start working on it...I'll probably just comment out and make a quick fix because I just use a static bar.

@kukushi
Copy link
Owner

kukushi commented Jul 18, 2019

@jmoia Beta sdk may change from time to time, so I will fix it on some later betas.

@iMostfa
Copy link

iMostfa commented Aug 16, 2019

same, problem
waiting for fix

@lucascorrea
Copy link

Hi @kukushi We are close to the release of iOS 13, would have as a branch with a workaround? Thanks

@ytktaka
Copy link

ytktaka commented Aug 19, 2019

I had to check this so I just commented out some codes related to Status Bar.
BasicTransitionAnimator worked with xcode11 beta5 & ios13. I haven't checked more than that.

https://github.com/hiroshi12465643/SideMenu/blob/06a773af044bbea084ba9f1eda80d05d50e812bb/SideMenu/SideMenuController.swift

@kukushi
Copy link
Owner

kukushi commented Aug 21, 2019

Guys, checkout branch ios13 for a workaround.

@armydons
Copy link

armydons commented Aug 27, 2019

@kukushi For which cases we getting that crash.

@kukushi
Copy link
Owner

kukushi commented Aug 28, 2019

@kukushi For which cases we getting that crash.

When the statusBarBehavior is not .none.

@kukushi
Copy link
Owner

kukushi commented Aug 28, 2019

Version 2.0.2 is released for a workaround. I will keep looking for an alternative way to archive the animation on iOS 13.

@haidukstore
Copy link

@kukushi i have the same problem even if i select .none . How fix it? version 2.0.2

@kukushi
Copy link
Owner

kukushi commented Sep 23, 2019

@haidukstore Can you post more detail error description?

@haidukstore
Copy link

@kukushi sorry, it's new xcode has some lag, after reload ".none" value work perfect

@JayeshMardiya
Copy link

JayeshMardiya commented Sep 24, 2019

I am getting crashed when I'm trying to fetch foregroundView using UIApplication.shared.value(forKey: "statusBar"), I'm using XCode 11, iOS 13

@adriaros
Copy link

I had the same error: "App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead"

The problem is that uploading Xcode 11 and iOS 13 you cannot use UIApplication.shared.value(forKey: "statusBar").

@dotWasim
Copy link

dotWasim commented Sep 26, 2019

I have same problem. Unfortunately, last update didn't fix the issue

@kukushi
Copy link
Owner

kukushi commented Sep 27, 2019

@dotWasim Can you try again with a clean build?

@busu90
Copy link

busu90 commented Sep 30, 2019

@kukushi What exactly should be set to .none and where? I'm still getting the crash with v2.0.2

@kukushi
Copy link
Owner

kukushi commented Oct 2, 2019

@kukushi What exactly should be set to .none and where? I'm still getting the crash with v2.0.2

Does it still crash with a clean build?

@dotWasim
Copy link

dotWasim commented Oct 3, 2019

@kukushi yes, It still crash

@kukushi
Copy link
Owner

kukushi commented Oct 3, 2019

@dotWasim @busu90 Would you mind sharing a screenshot when the breakpoint hitting the crash (probably in the StatusBar.swift)?

@busu90
Copy link

busu90 commented Oct 3, 2019

@kukushi It actually started to work for me after multiple cleans

@usahun
Copy link

usahun commented Oct 23, 2019

@kukushi I have the same issue.
I used swift 4.2 please help thank you

@Bhavesh091
Copy link

        if #available(iOS 13, *) {
            return UIApplication.shared.windows.first { $0.isKeyWindow }
        } else {
            return UIApplication.shared.keyWindow
        }
        
//        return UIApplication.shared.value(forKey: s+b+w) as? UIWindow

@kukushi kukushi unpinned this issue Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests