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

    • Coin Summoner: Coin Pusher RPG +3++ Mods [ Unlimited Everything ]
      Mod APK Game Name: Coin Summoner: Coin Pusher RPG By POMENEST STUDIO
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pomenest.coinsummoner

       

      🤩 Hack Features

      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Gems -> Will increase instead of decrease.
      - Unlimited Items -> Will increase instead of decrease.
      • 0 replies
    • Coin Summoner: Coin Pusher RPG +3++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Coin Summoner: Coin Pusher RPG By POMENEST STUDIO
      Bundle ID: com.pomenest.coinsummoner
      App Store Link: https://apps.apple.com/us/app/coin-summoner-coin-pusher-rpg/id6762540963?uo=4

       


      🤩 Hack Features

      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Gems -> Will increase instead of decrease.
      - Unlimited Items -> Will increase instead of decrease.
      • 2 replies
    • My Sticker Room - Decor Game v1.4.2 [ +3 Cheats ] Currency Max
      Modded/Hacked App: My Sticker Room - Decor Game By SayGames LTD
      Bundle ID: com.playstrom.my.sticker.room
      App Store Link: https://apps.apple.com/us/app/my-sticker-room-decor-game/id6743738094?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Skip Ticker / Use & Earn
      • 0 replies
    • My Sticker Room - Decor Game v1.4.2 [ +3 Jailed ] Currency Max
      Modded/Hacked App: My Sticker Room - Decor Game By SayGames LTD
      Bundle ID: com.playstrom.my.sticker.room
      App Store Link: https://apps.apple.com/us/app/my-sticker-room-decor-game/id6743738094?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Skip Ticker / Use & Earn
      • 1 reply
    • Arrows – Puzzle Escape v0.18.0 [ +1 APK MOD ] Lives Max
      Mod APK Game Name: Arrows – Puzzle Escape
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ecffri.arrows&hl=en

       

      🤩 Hack Features

      Pre Activated Just Login
      - Max Lives

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 1 reply
    • Arrows – Puzzle Escape v0.18.1 [ +1 Cheats ] Lives Max
      Modded/Hacked App: Arrows – Puzzle Escape By Lessmore GmbH
      Bundle ID: com.ecffri.arrows
      App Store Link: https://apps.apple.com/us/app/arrows-puzzle-escape/id6748397500?uo=4

       

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Max Lives

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 0 replies
    • Arrows – Puzzle Escape v0.18.1 [ +1 Jailed ] Lives Max
      Modded/Hacked App: Arrows – Puzzle Escape By Lessmore GmbH
      Bundle ID: com.ecffri.arrows
      App Store Link: https://apps.apple.com/us/app/arrows-puzzle-escape/id6748397500?uo=4

      🤩 Hack Features

      - Max Lives
      • 1 reply
    • Survival point: Epic Adventure +8 Cheats
      Mod APK Game Name: Survival point: Epic Adventure
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.teslagamesglobal.survivalist

       

      🤩 Hack Features

      - Damage Multiplier
      - Never Die
      - Unlimited Durability
      - Exp Multiplier
      - Unlimited Items From Mail
      - Gold Freeze
      - Freeze Skills
      - Can Craft Anything

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Winner
      • 0 replies
    • Blitz: Rise of Heroes +2 Cheats
      Mod APK Game Name: Blitz: Rise of Heroes By WhaleApp LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.whaleapp.blitz.rise.heroes.idle.rpg.battle

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Winner
        • Like
      • 0 replies
    • Touhou LostWord +3 Cheats
      Mod APK Game Name: Touhou LostWord By GOOD SMILE COMPANY, INC.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=jp.goodsmile.touhoulostwordglobal_android

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Never Die

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 0 replies
    • Slime Rancher +19 Jailed Cheats [ Currency, Spawn Items, No Clip + More! ]
      Modded/Hacked App: Slime Rancher By Playdigious
      Bundle ID: com.playdigious.slimerancher
      App Store Link: https://apps.apple.com/us/app/slime-rancher/id6758201392?uo=4

       


      🤩 Hack Features

      - Unlimited Health
      - Unlimited Energy
      - Set Money Amount
      - Add Money Amount
      - Set Keys Amount
      - Add Keys Amount
      - No Clip -> Fly and walk through walls.
      - Pause World Time
      - Sleepwalk
      - Set World Time Amount
      - Add World Minutes Amount
      - Spawn Item ID -> For a whole list of Item ID's, go here.
      - Spawn Item Count
      - Give Item to Inventory Slot
      - Refill Items
      - Unlock Upgrades
      - Reset Upgrades
      - Unlock Maps
      - Unlock Progress
        • Informative
        • Agree
        • Winner
        • Like
      • 11 replies
    • Tacticool: 5v5 Tactical Shooter +7 Jailed Cheats [ Aimbot, ESP Boxes, Lines ]
      Modded/Hacked App: Tacticool: 5v5 Tactical Shooter By Panzerdog Oy
      Bundle ID: com.panzerdog.tacticool
      App Store Link: https://apps.apple.com/us/app/tacticool-5v5-tactical-shooter/id1240200305?uo=4

       


      🤩 Hack Features

      - Ally ESP Boxes
      - Ally ESP Lines
      - Ally ESP Health
      - Ally ESP Distance
      - Enemy ESP Boxes
      - Enemy ESP Lines
      - Enemy ESP Health
      - Enemy ESP Distance
      - Field of View Modifier
        • Haha
        • Thanks
        • Winner
        • Like
      • 14 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