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

Cannot compile when an extension is present. #5

Open
Tri-Divide opened this issue Feb 28, 2020 · 2 comments
Open

Cannot compile when an extension is present. #5

Tri-Divide opened this issue Feb 28, 2020 · 2 comments

Comments

@Tri-Divide
Copy link

Imported as a part of MultiSelectSegmentedControl install, my project has an extension.

I try to build the project and I get this error on the file "UIApplication+Sweeter.swift":

'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

This occurs on line 11:

public class func topViewController(base: UIViewController? = UIApplication.shared.keyWindow?.rootViewController) -> UIViewController? {

@yzoldan
Copy link

yzoldan commented Jul 15, 2021

It also started happening to me and I don't have an extension. I'm developing in xcode 13 beta 3

@deprogram
Copy link

This is now broken in XCode stable (13).

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

3 participants