Wednesday, 5 January 2022

[Theos Compiling Error] KeyWindow is deprecated

Good day to you all, (or you few whom are reading this); When trying to compile a Tweak with Theos, I’m consistently getting this particular error; [spoiler] ==> Compiling Tweak.xm (arm64)… Tweak.xm:74:40: error: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Werror,-Wdeprecated-declarations] [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil]; ^ /var/theos/sdks/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:134:51: note: 'keyWindow' has been explicitly marked deprecated here @property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0)); ^ 1 error generated. make[3]: *** [/var/theos/makefiles/instance/rules.mk:270: /var/mobile/polytopia/.theos/obj/arm64/Tweak.xm.5566b15c.o] Error 1 make[2]: *** [/var/theos/makefiles/instance/library.mk:52: /var/mobile/polytopia/.theos/obj/arm64/POLYTOPIA.dylib] Error 2 make[1]: *** [/var/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2 make: *** [/var/theos/makefiles/master/rules.mk:117: POLYTOPIA.all.tweak.variables] Error 2 [/spoiler] I managed to fix some other errors that were caused by me simply being a newbie to this all, but I can’t wrap my head around this one yet. Any help is appreciated! -Z4R0S

from iOSGods RSS Feed https://ift.tt/3mVldfV

No comments:

Post a Comment