Jump to content

[Theos Compiling Error] KeyWindow is deprecated


Go to solution Solved by Rook,

10 posts in this topic

Recommended Posts

Posted

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

  • Solution
Posted

You may need to use an older SDKS version since that template you're using has not been updated in a while. :)

  • Thanks 1
Posted (edited)

I’ve been trying with a lower (patched) SDK and now I’m getting the following error;

 

==> Compiling Tweak.xm (arm64)…
==> Linking tweak POLYTOPIA (arm64)…
==> Stripping POLYTOPIA (arm64)…
strip: warning: changes being made to the file will invalidate the code signature in: /private/var/mobile/projects/polytopia/.theos/obj/arm64/POLYTOPIA.dylib
rm /var/mobile/projects/polytopia/.theos/obj/arm64/Tweak.xm.mm
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

 

/////All that for trying to submit my tweaks on here 😅

 

EDIT; and now whenever I try to run make package install it seems to only initiate the command for armv7 instead of arm64!? Quite lost here

Updated by ZAROS
Posted (edited)

Not sure how I got it to work except removing the ARMV7 setting from my project’s makefile as it wouldn’t work minutes ago.

 

Solved, for now...

 

//For a laugh

Installed it and then enabled it for the app in question only via Libhooker and for some reasons whenever I respring before disabling it I get that;

https://imgur.com/a/TXt66ii

but nothing in the app haha.

giving up for tonight, thanks for the help Rook!

Updated by ZAROS
Posted
30 minutes ago, ZAROS said:

Installed it and then enabled it for the app in question only via Libhooker and for some reasons whenever I respring before disabling it I get that;

https://imgur.com/a/TXt66ii

You need to change the .plist filter as right now it’s injecting into SpringBoard. 
 

Change it to your app’s bundle ID. You can use https://armconverter.com/appinfo/ to find your app bundle.

Posted
3 minutes ago, Rook said:

You need to change the .plist filter as right now it’s injecting into SpringBoard. 
 

Change it to your app’s bundle ID. You can use https://armconverter.com/appinfo/ to find your app bundle.

So when it asks for bundle ID while using the nic template in theos, I must add the app’s bundle ID twice? I thought the second time it asked I could simply skip it 🤦‍♂️

 

thanks again

Posted
4 minutes ago, ZAROS said:

So when it asks for bundle ID while using the nic template in theos, I must add the app’s bundle ID twice? I thought the second time it asked I could simply skip it 🤦‍♂️

 

thanks again

Did it ask twice? Once is the name, and second time is the bundle ID. Iirc.

Posted
2 minutes ago, Rook said:

Did it ask twice? Once is the name, and second time is the bundle ID. Iirc.

Mb. First question is project name the second is the package name, not bundle ID

The 4th question is the bundle ID

Posted
Just now, ZAROS said:

Mb. First question is project name the second is the package name, not bundle ID

The 4th question is the bundle ID

Correct!

Posted (edited)
15 minutes ago, Rook said:

Correct!

Would you happen to know an effective method of removing the armv7 rule?

It gave me a stripping error about code signing so it wouldn’t compile for arm64 and every attempt after that would skip the arm64 compiling process even after a respring so I modified my project’s Makefile to remove ARMV7 like I did earlier but it didn’t work as expected and won’t try to compile it for arm64 either, but keeps attempting for armv7..

 

On a side, unrelated, note;

The IG nic template seems to have an error in the name xxxx.nic 2.tar

I was unable to see it listed until I renamed it to nic.tar

Updated by ZAROS

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Shadow Dungeon: Roguelike Game +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Shadow Dungeon: Roguelike Game By Deviloper Limited
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.deviloper.shadow.dungeon

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Unlimited Silver -> Will increase instead of decrease.
      • 0 replies
    • Darkslayer 2 +5 Jailed Cheats
      Modded/Hacked App: Darkslayer 2 By StudioBreeze
      Bundle ID: com.sb.darkslayersd
      App Store Link: https://apps.apple.com/kr/app/darkslayer-2/id6759081336?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Attack Speed Multiplier
      - Move Speed Multiplier
      - No ADS

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Agree
        • Haha
        • Winner
        • Like
      • 6 replies
    • Court Six: Volleyball Game v1.0 [ +3 Jailed ] AI Freeze
      Modded/Hacked App: Court Six: Volleyball Game By 67 Game Ideas LLC
      Bundle ID: com.ideas67.courtsix
      App Store Link: https://apps.apple.com/us/app/court-six-volleyball-game/id6816279264?uo=4

      🤩 Hack Features

      - ADD Gem
      - ADD Gold
      - AI Freeze
        • Informative
      • 2 replies
    • Court Six: Volleyball Game v1.0 [ +3 Cheats ] AI Freeze
      Modded/Hacked App: Court Six: Volleyball Game By 67 Game Ideas LLC
      Bundle ID: com.ideas67.courtsix
      App Store Link: https://apps.apple.com/us/app/court-six-volleyball-game/id6816279264?uo=4

      🤩 Hack Features

      - ADD Gem
      - ADD Gold
      - AI Freeze
      • 0 replies
    • Paper Heroes: Territory Battle +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Paper Heroes: Territory Battle By BIT.GAMES
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bitgames.paperheroes

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      • 0 replies
    • Starguard: Evo Merge TD +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Starguard: Evo Merge TD By ONDI TECHNOLOGY JSC
      Bundle ID: com.ondi.space.defense
      App Store Link: https://apps.apple.com/us/app/starguard-evo-merge-td/id6758495997?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Battle Coins -> Will increase instead of decrease.
        • Like
      • 0 replies
    • Grow Hidden Master +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Grow Hidden Master By Gameduo
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.gameduo.kt

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      - No Ads
      • 0 replies
    • Path Walker: Roguelike RPG +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Path Walker: Roguelike RPG By EKGAMES
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.ekgames.pathwalker

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Currencies
      - Freeze Energy
      - No Ads
        • Like
      • 0 replies
    • Ultraman: Legend of Heroes 2 +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Ultraman: Legend of Heroes 2 By JoyMore GAME
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.joymore.atmlegend2

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      - No Skill Cooldown
        • Winner
      • 4 replies
    • Oops Ninja: Idle Shuriken RPG +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Oops Ninja: Idle Shuriken RPG By pungpungApp
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pungpungstudi.ninjakiugi

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Silver
      - No Ads
        • Agree
      • 2 replies
    • Age of Stickman: Evolution +4 Mods [ Damage & Defence ]
      Mod APK Game Name: Age of Stickman: Evolution By Velocita Z
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.twh003.stickman.rpg.idle.game

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - One-Hit Kill
        • Agree
      • 0 replies
    • The Demonized: Idle RPG +7 Jailed Cheats
      Modded/Hacked App: The Demonized: Idle RPG By Game Duo Co.,Ltd.
      Bundle ID: com.deepgames.release.becamethedevil
      iTunes Store Link: https://apps.apple.com/us/app/the-demonized-idle-rpg/id6477870177?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Dumb Enemies
      - Attack Speed Multiplier
      - Freeze Resources


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 385 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines