Jump to content

[Theos Compiling Error] KeyWindow is deprecated


Z4R0S
Go to solution Solved by Rook,

10 posts in this topic

Recommended Posts

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

Link to comment
Share on other sites

  • Solution

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

  • Thanks 1

Throughout life people will make you mad, disrespect you and treat you bad. Let God deal with the things they do, cause hate in your heart will consume you too.
iOSGods Administrator
 Guidelines  Support Donate  FAQ 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Throughout life people will make you mad, disrespect you and treat you bad. Let God deal with the things they do, cause hate in your heart will consume you too.
iOSGods Administrator
 Guidelines  Support Donate  FAQ 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Throughout life people will make you mad, disrespect you and treat you bad. Let God deal with the things they do, cause hate in your heart will consume you too.
iOSGods Administrator
 Guidelines  Support Donate  FAQ 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Throughout life people will make you mad, disrespect you and treat you bad. Let God deal with the things they do, cause hate in your heart will consume you too.
iOSGods Administrator
 Guidelines  Support Donate  FAQ 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Farming Fever - Cooking game v0.28.3 +6 [Currency Hack]
      Modded/Hacked App: Farming Fever - Cooking game By MATRYOSHKA GAMES CY LTD
      Bundle ID: com.matryoshka.farminggame
      iTunes Store Link: https://apps.apple.com/us/app/farming-fever-cooking-game/id1541122217?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - No Ads
      - Infinite Coins
      - Infinite Boosters
      - Infinite Lives
      - No Overcook
      - Instant Delivery


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 0 replies
    • Farming Fever - Cooking game v0.28.3 +6 [Currency Hack]
      Modded/Hacked App: Farming Fever - Cooking game By MATRYOSHKA GAMES CY LTD
      Bundle ID: com.matryoshka.farminggame
      iTunes Store Link: https://apps.apple.com/us/app/farming-fever-cooking-game/id1541122217?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:
      - No Ads
      - Infinite Coins
      - Infinite Boosters
      - Infinite Lives
      - No Overcook
      - Instant Delivery


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


        • Thanks
      • 0 replies
    • Legendary Master Idle v1.0.8 +4 Cheats
      Modded/Hacked App: Legendary Master Idle By MOBIRIX
      Bundle ID: com.mobirix.g2gmg
      iTunes Store Link: https://apps.apple.com/us/app/legendary-master-idle/id1664029797?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Attack Speed Multiplier
      - Jailbreak Detection Removed


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia 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 necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down 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:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Winner
        • Like
      • 17 replies
    • The Era of Overman : Idle RPG v1.0.45 +2 Cheats
      Modded/Hacked App: The Era of Overman : Idle RPG By DAERI SOFT
      Bundle ID: com.daerigame.overmanglobal
      iTunes Store Link: https://apps.apple.com/us/app/the-era-of-overman-idle-rpg/id1659386230?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - God Mode


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia 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 necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down 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:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 17 replies
    • HomeScapes v6.2.2 Jailed Cheats +3
      Modded/Hacked App: Homescapes By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.gardenscapes-sweethome
      iTunes Store Link: https://apps.apple.com/us/app/homescapes/id1195621598?uo=4


      Hack Features:
      - Infinite Moves
      - Infinite Booster
      - Infinite Lives
       

      Hack Download Link: https://iosgods.com/topic/71443-arm64-homescapes-483-jailed-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,161 replies
    • Weapon Master Idle Cheats v1.1.0 +3
      Modded/Hacked App: Weapon Master Idle By MOBIRIX
      Bundle ID: com.mobirix.mbgk
      iTunes Store Link: https://apps.apple.com/us/app/weapon-master-idle/id1637595321?uo=4


      Hack Features:
      - Free Store
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/169755-weapon-master-idle-cheats-v108-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 139 replies
    • The Sims Mobile v39.0.4 Jailed Cheats +2
      Modded/Hacked App: The Sims™ Mobile By Electronic Arts
      Bundle ID: com.ea.ios.simsmobile
      iTunes Store Link: https://itunes.apple.com/us/app/the-sims-mobile/id1144258115?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Mutiply SimCash
      - Mutiply SimCoin
      - Mutiply Simoleons
      - Infinite Energy

      Just complete a task and you will get lots of the thing you just used.


      Hack Download Link: https://iosgods.com/topic/66166-the-sims%E2%84%A2-mobile-7-jailed-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,321 replies
    • Mr Autofire Cheats v2.5.3 +3 [ God Mode & More ]
      Modded/Hacked App: Mr Autofire by Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4&at=1010lce4


      Hack Features:
      - God Mode 
      - OHK
      - Free Store


      iOS Hack Download Link: https://iosgods.com/topic/134788-mr-autofire-cheats-v142-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 590 replies
    • Idle Lumber Empire - Wood Game Cheats v1.7.3 +2
      Modded/Hacked App: Lumber Empire: Idle Tycoon By ADQUANTUM LTD
      Bundle ID: com.lumber.inc
      iTunes Store Link: https://apps.apple.com/us/app/lumber-empire-idle-tycoon/id1552153525?uo=4


      Hack Features:
      - Freeze Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/150641-lumber-empire-idle-tycoon-v135-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/150640-lumber-empire-idle-tycoon-cheats-v135-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 506 replies
    • Disney Mirrorverse v5.1.1 +4 Cheats
      Modded/Hacked App: Disney Mirrorverse By Kabam Games, Inc.
      Bundle ID: com.kabam.bullseye
      iTunes Store Link: https://apps.apple.com/ph/app/disney-mirrorverse/id1453908358?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - Filza / iFile or iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - Damage Multiplier
      - Never Die
      - No Skill Cooldown
      - Enable Auto Play


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will then need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: If the hack is a Mod Menu, which is usually the case nowadays, the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions topic. If you still haven't found a solution, 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:
      - @Zahir


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 404 replies
    • Royal Revolt 2: Tower Defense v9.1.1 +4 Cheats
      Modded/Hacked App: Royal Revolt 2: Tower Defense By Flaregames GmbH
      Bundle ID: com.flaregames.royalrevoltonline
      iTunes Store Link: https://apps.apple.com/us/app/royal-revolt-2-tower-defense/id705211891?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - 1 Hit Kill
      - Never Die


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: If the hack is a Mod Menu, which is usually the case nowadays, the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, 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:
      - @Zahir


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 377 replies
    • Campfire Cat Cafe v1.0.8 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Campfire Cat Cafe - Cute Game By HyperBeard Inc.
      Bundle ID: com.skybornegames.travellerscafe-global
      iTunes Store Link: https://apps.apple.com/us/app/campfire-cat-cafe-cute-game/id6443801418
       

      Hack Features:
      - Unlimited Currencies -> Earn or spend some.


      Jailbreak required hack(s): https://iosgods.com/topic/171958-campfire-cat-cafe-all-versions-1-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Like
      • 7 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