Jump to content

 Something great is coming! 🚀

Stay tuned for the big reveal happening here on iOSGods on the 17th of December!

The countdown has finished!

[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

    • Deep Rock Galactic: Survivor v1.0.8 Jailed Cheats +5
      Modded/Hacked App: Deep Rock Galactic: Survivor By Ghost Ship Publishing ApS
      Bundle ID: com.ghostshippublishing.deeprockgalacticsurvivor
      App Store Link: https://apps.apple.com/us/app/deep-rock-galactic-survivor/id6742194903?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

      - God Mode
      - Multiply Attack
      - Weak Enemies
      - Free Store
      - PREMIUM

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/202065-deep-rock-galactic-survivor-v103-jailed-cheats-5/
      • 35 replies
    • Matchington Mansion Cheats v1.193.0 +5
      Modded/Hacked App: Matchington Mansion By Magic Tavern, Inc.
      Bundle ID: com.matchington.mansion
      iTunes Store Link: https://apps.apple.com/us/app/matchington-mansion/id1216575026?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

      - Infinite Moves
      - Infinite Lives
      - Infinite Booster
      - Infinite Coin (Spend some/ Get some)
      - Infinite Stars (Complete task without needing Stars)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/75130-matchington-mansion-v11750-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/75127-matchington-mansion-cheats-v11770-5/
      • 818 replies
    • CSR 2 Drag Racing Car Games v6.2.1 +4 Jailed Cheats
      Modded/Hacked App: CSR 2 Drag Racing Car Games By Zynga Inc.
      Bundle ID: com.naturalmotion.customstreetracer2
      iTunes Store Link: https://apps.apple.com/us/app/csr-2-drag-racing-car-games/id887947640?uo=4


      Hack Features:
      - Buy Anything for 1 Gold
      - Buy Anything for 1 Cash
      - Instant Car Delivery
      - Instant Part Delivery


      Jailbreak required hack(s): https://iosgods.com/topic/73095-csr-2-drag-racing-car-games-v431-gold-cash-keys-more/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 889 replies
    • Swordash v2.2.5 Jailed Cheats +2
      Modded/Hacked App: Swordash By Fattoy Game Technology Co., Ltd.
      Bundle ID: com.fattoy.swordash.ios
      App Store Link: https://apps.apple.com/us/app/swordash/id6443986363?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

      - God Mode
      - Multiply Attack
       

      Jailbroken Hack: https://iosgods.com/topic/203255-swordash-cheats-v225-2/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/203254-swordash-v225-jailed-cheats-2/
      • 0 replies
    • Merge Stories: Drama & Choice v22511.0.0 +4 Jailed Cheats [ Unlimited Cash ]
      Modded/Hacked App: Merge Stories: Drama & Choice By VIZOR APPS LTD
      Bundle ID: com.vizor-apps.MergeStories
      App Store Link: https://apps.apple.com/ph/app/merge-stories-drama-choice/id6753975851?uo=4

       


      🤩 Hack Features

      - Freeze Merge Energy
      - Freeze Cash

      VIP
      - Unlimited Merge Energy -> Spend some then restart the game.
      - Unlimited Cash -> Spend some then restart the game.
      • 0 replies
    • Merge Stories: Drama & Choice v22511.0.0 +4 Cheats [ Unlimited Cash ]
      Modded/Hacked App: Merge Stories: Drama & Choice By VIZOR APPS LTD
      Bundle ID: com.vizor-apps.MergeStories
      App Store Link: https://apps.apple.com/ph/app/merge-stories-drama-choice/id6753975851?uo=4

       


      🤩 Hack Features

      - Freeze Merge Energy
      - Freeze Cash

      VIP
      - Unlimited Merge Energy -> Spend some then restart the game.
      - Unlimited Cash -> Spend some then restart the game.
      • 0 replies
    • OnceWorld v0.9.4 +2 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: OnceWorld By PONIX LLC
      Bundle ID: work.ponix.onceworld
      App Store Link: https://apps.apple.com/us/app/onceworld/id6753948618?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      • 4 replies
    • OnceWorld v0.9.4 +2 Cheats [ Damage + More ]
      Modded/Hacked App: OnceWorld By PONIX LLC
      Bundle ID: work.ponix.onceworld
      App Store Link: https://apps.apple.com/us/app/onceworld/id6753948618?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode 
      • 1 reply
    • Love Eden: Chapters of Romance v1.9.18 +10++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Love Eden: Chapters of Romance By NODERNO LIMITED
      Bundle ID: com.noderno.loveeden
      App Store Link: https://apps.apple.com/us/app/love-eden-chapters-of-romance/id6471411677?uo=4

       


      🤩 Hack Features

      - Debug Menu -> Head over to your profile and then tap on Settings.
      • 2 replies
    • The Kingdom: Medieval Tales v1.1.3.18 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: The Kingdom: Medieval Tales By BoomBit, Inc.
      Bundle ID: com.stratospheregames.The.Kingdom.Medieval.Tales.Strategy.Building.Games
      App Store Link: https://apps.apple.com/us/app/the-kingdom-medieval-tales/id6744967226?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 25 replies
    • Love Eden: Chapters of Romance v1.9.18 +10++ Cheats [ Debug Menu ]
      Modded/Hacked App: Love Eden: Chapters of Romance By NODERNO LIMITED
      Bundle ID: com.noderno.loveeden
      App Store Link: https://apps.apple.com/us/app/love-eden-chapters-of-romance/id6471411677?uo=4

       


      🤩 Hack Features

      - Debug Menu -> Head over to your profile and then tap on Settings.
      • 1 reply
    • The Kingdom: Medieval Tales v1.1.3.18 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: The Kingdom: Medieval Tales By BoomBit, Inc.
      Bundle ID: com.stratospheregames.The.Kingdom.Medieval.Tales.Strategy.Building.Games
      App Store Link: https://apps.apple.com/us/app/the-kingdom-medieval-tales/id6744967226?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 26 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