Jump to content

Framework not found preferences- another preference compiling thread


Go to solution Solved by i0s_tweak3r,

6 posts in this topic

Recommended Posts

Posted (edited)

Sorry to start a new thread but I searched and my problem was exactly the same as in this thread-https://iosgods.com/topic/41545-ld-warning-directory-not-found-for-option/

Since the thread was marked solved/ answered I'm guessing that's possibly why no one has offered a solution to my comment asking for help.

I made a tweak with a preference bundle before on my iOS 9.3 device, but keep getting this error when trying to make the preference bundle/ entire package (for my newest tweak) on my iOS 10 device.  I copied project to my iOS 9.3 device but still get same error...

	Stripping NoLockScreenCam...
	Signing NoLockScreenCam...
Making all in nolockscreencam...
Making all for bundle NoLockScreenCam...
 Copying resource directories into the bundle wrapper...
 Compiling NoLockScreenCam.mm...
 Linking bundle NoLockScreenCam...
ld: framework not found Preferences
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [obj/NoLockScreenCam.bundle/NoLockScreenCam.64873355.unsigned] Error 1
Updated by i0s_tweak3r
Posted
Just now, Pro said:

Show me your Makefile in the pref bundle folder

	include theos/makefiles/common.mk
ARCHS = armv7 armv7s arm64
export ARCHS = armv7 armv7s arm64
export TARGET = iphone:clang:9.0:10.0
	BUNDLE_NAME = NoLockScreenCam
NoLockScreenCam_FILES = NoLockScreenCam.mm
NoLockScreenCam_INSTALL_PATH = /Library/PreferenceBundles
NoLockScreenCam_FRAMEWORKS = UIKit
NoLockScreenCam_PRIVATE_FRAMEWORKS = Preferences
	include $(THEOS_MAKE_PATH)/bundle.mk
	internal-stage::
    $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
    $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/NoLockScreenCam.plist$(ECHO_END)
	

Posted
Just now, i0s_tweak3r said:

 


	include theos/makefiles/common.mk
ARCHS = armv7 armv7s arm64
export ARCHS = armv7 armv7s arm64
export TARGET = iphone:clang:9.0:10.0
	BUNDLE_NAME = NoLockScreenCam
NoLockScreenCam_FILES = NoLockScreenCam.mm
NoLockScreenCam_INSTALL_PATH = /Library/PreferenceBundles
NoLockScreenCam_FRAMEWORKS = UIKit
NoLockScreenCam_PRIVATE_FRAMEWORKS = Preferences
	include $(THEOS_MAKE_PATH)/bundle.mk
	internal-stage::
    $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
    $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/NoLockScreenCam.plist$(ECHO_END)
	

 

Seems like the Preference framework might be missing from your SDK? I'd recommend the 8.1 SDK from http://sdks.website

Posted (edited)
56 minutes ago, Pro said:

Seems like the Preference framework might be missing from your SDK? I'd recommend the 8.1 SDK from http://sdks.website

I tried that already.  Also checked SDK's for frameworks and it appears to be there for 9.0, 9.3 and 8.1.  Under theos/sdks/SDK version/system/library/privateframeworks/preferences right?  Also when I moved project to my 9.3 device, and changed makefile to target exactly the same as an old tweak with a pref bundle that works, it still got same error.

will try deleting the 8.1 SDK I have and redownloading though. I've read that worked for other ppl with same error.

 

Edit: Deleted my 8.1 SDK, redownloaded it, changed makefile target back to 8.1:10, and still get the same error.  

Updated by i0s_tweak3r
Tried suggestion- still getting error
  • Solution
Posted (edited)

Edit: Started project over and used Dida's handy template, then modified from there and finally got it.  Still have no idea why it didn't work b4.  I'll eventually figure it out. Just happy tweak is updated with pref bundle.

dXEnVPs.jpg

ok so i studied a tutorial on preference bundles, deleted my original bundle and followed tutorial pretty much exactly. Went to compile and got an error

Compiling Tweak.xm...
Tweak.xm:6:75: error: expected ']'
return  [ [ [ NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] value for key:key]  boolValue]; 

My code seems right in tweak.xm but maybe someone can see what's causing the compiling error?

Edit:Found compiling error. should be "valueForKey"....now i'm back to original error of it not finding preferences. Everything compiles just won't build the bundle...Arggg

Here is my tweak.xm file

	#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
	inline bool 
GetPrefBool(NSString *key)
{
return  [ [ [ NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] value for key:key]  boolValue];
}
	%hook SBPolicyAggregator
-(bool) _allowsCapabilityLockScreenCameraSupportedWithExplanation:(id*)arg1 {
if(GetPrefBool(@"kenabled")) {
return FALSE;
}
return %orig;
}
	//Begin hooking 2nd function in same class
-(bool) _allowsCapabilityLockScreenCameraWithExplanation:(id*)arg1 {
if(GetPrefBool(@"kenabled"))
{
return FALSE;
}
return %orig;
}
//end of 2nd hooked function
%end
//end of first hooked class
	
%hook SBLockScreenTestPluginSettings
-(bool) restrictCamera {
if(GetPrefBool(@"kenabled"))
{
return TRUE;
} 
return %orig;
} 
//end of 2nd hooked class
%end 
Updated by i0s_tweak3r
Used Dida's pref template and eventually got it to work.

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

    • Angry Birds 2 Cheats v4.0.2 +1 [ Infinite Currencies ]
      Modded/Hacked App: Angry Birds 2 By Rovio Entertainment Oyj
      Bundle ID: com.rovio.baba
      iTunes Store Link: https://apps.apple.com/us/app/angry-birds-2/id880047117?uo=4


      Hack Features:
      - Infinite Currencies ( Spend some/ Get some )


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/70081-angry-birds-2-v2600-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/72039-angry-birds-2-cheats-v2600-1-infinite-currencies/
      • 1,960 replies
    • Alien Invasion: RPG Idle Space Cheats v4.18.00 +2
      Modded/Hacked App: Alien Invasion: RPG Idle Space By MULTICAST GAMES LIMITED
      Bundle ID: com.multicastgames.venomSurvive
      iTunes Store Link: https://apps.apple.com/us/app/alien-invasion-rpg-idle-space/id6443697602?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/167591-alien-invasion-rpg-idle-space-v204-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/167589-alien-invasion-rpg-idle-space-cheats-v204-1/
        • Haha
        • Like
      • 414 replies
    • Airport City Cheats v8.39.01 +1
      Modded/Hacked App: Airport City by Game Insight UAB
      Bundle ID: com.gameinsight.airportcity
      iTunes Store Link: https://apps.apple.com/us/app/airport-city/id495637457?uo=4&at=1010lce4


      Hack Features:
      - Free Store


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/126716-arm64-airport-city-v717-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/126714-arm64-airport-city-cheats-v717-1/
        • Agree
        • Winner
        • Like
      • 761 replies
    • Real Boxing 2 Cheats v1.55.2 +3
      Modded/Hacked App: Real Boxing 2 By Vivid Games S.A.
      Bundle ID: com.vividgames.realboxing2
      App Store Link: https://apps.apple.com/us/app/real-boxing-2/id932779605?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

      - God Mode
      - One Hit Kill
      - No Punch Cooldown

       

      Non-Jailbroken Hack: https://iosgods.com/topic/195702-real-boxing-2-v1550-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/195685-real-boxing-2-cheats-v1550-3/
      • 11 replies
    • Dead Trigger 2 Cheats v2.4.1 +10 [ God Mode & More ]
      Modded/Hacked App: DEAD TRIGGER 2: Zombie Games By Deca Games EOOD
      Bundle ID: com.madfingergames.deadtrigger2
      iTunes Store Link: https://apps.apple.com/us/app/dead-trigger-2-zombie-games/id720063540?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 Ammo
      - No Reload
      - God Mode
      - Infinite Consumable
      - One Hit Kill
      - Drop Hacks
      - Instant Win
      - Better Aim
      - Aimbot
      - Kill All Zombies with 1 Tap

       

      Non-Jailbroken Hack: https://iosgods.com/topic/73791-dead-trigger-2-v230-jailed-cheats-10

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/78126-dead-trigger-2-cheats-v230-10-god-mode-more/
        • Agree
        • Haha
        • Winner
        • Like
      • 2,841 replies
    • Boxing Star: Real Boxing Fight Cheats v7.0.0 +4
      Modded/Hacked App: Boxing Star: Real Boxing Fight By THUMBAGE Co., Ltd
      Bundle ID: com.ftt.boxingstar.gl.ios
      iTunes Store Link: https://apps.apple.com/us/app/boxing-star-real-boxing-fight/id1241887528?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - One Touch & Win

      Free Non-Jailbroken Hack: https://iosgods.com/topic/92347-boxing-star-real-boxing-fight-v620-jailed-cheats-4/


      Hack Download Link: https://iosgods.com/topic/72805-boxing-star-real-boxing-fight-cheats-v620-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,685 replies
    • [ Chiikawa Pocket JP ] ちいかわぽけっと v1.2.10 Jailed Cheats +3
      Modded/Hacked App: ちいかわぽけっと By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocket
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8/id6596745408?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
      - Custom Speed (Customize before Login or Clear stage to get apply)

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/194281-chiikawa-pocket-jp-%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8-v1111-jailed-cheats-3/
      • 24 replies
    • Chiikawa Pocket Cheats v1.2.10 +3
      Modded/Hacked App: Chiikawa Pocket By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocketgl
      iTunes Store Link: https://apps.apple.com/us/app/chiikawa-pocket/id6740838442?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

      - God Mode
      - Multiply Attack

       

      Non-Jailbroken Hack: https://iosgods.com/topic/193718-chiikawa-pocket-v111-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/193717-chiikawa-pocket-cheats-v111-2/
      • 45 replies
    • Real Racing 3 Cheats v13.5.1 +4
      Modded/Hacked App: Real Racing 3 By Electronic Arts Inc.
      Bundle ID: com.ea.realracing3.inc
      iTunes Store Link: https://apps.apple.com/us/app/real-racing-3/id556164008?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

      - Free Store
      - Freeze M$
      - Freeze R$
      - Freeze Gold

      Non-Jailbroken Hack: https://iosgods.com/topic/185163-real-racing-3-v1317-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147926-real-racing-3-cheats-v1318-4/
        • Agree
        • Haha
        • Like
      • 1,048 replies
    • Dream League Soccer 2025 v12.240 +12 Cheats
      Modded/Hacked App: Dream League Soccer 2024 By First Touch Games Ltd.
      Bundle ID: com.firsttouch.dls7
      iTunes Store Link: https://apps.apple.com/us/app/dream-league-soccer-2024/id1462911602?uo=4


      Hack Features:
      - Stupid AI
      - No Foul
      - No Injuries
      - No Offside
      - Freeze Stamina
      - No Substitutions Limit
      - No Forfeit Penalty
      - Custom Logo Unlocked
      - Custom Kit Unlocked
      - Unlock Customizations
      - Throw In to End Current Half
      - Freeze Match Clock

      Notes: Play offline if you get kicked out of match.


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/138633-dream-league-soccer-2024-v11230-12-cheats/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 2,129 replies
    • Subway Surfers Cheats v3.48.10 +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?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

      - Free Store (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,334 replies
    • Dice Dreams Cheats v1.93.0 +2
      Modded/Hacked App: Dice Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dicedreams
      iTunes Store Link: https://apps.apple.com/us/app/dice-dreams/id1484468651?uo=4


      Hack Features:
      - Custom Rolls
      - Unlimited Coins - afford regardless of if you have enough


      iOS Hack Download Link: https://iosgods.com/topic/138011-dice-dreams%E2%84%A2-v1692-2-cheats/
        • Agree
        • Winner
        • Like
      • 636 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