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

    • Alien Survivor: Survival Arena v1.38.1 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Winner
        • Like
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Haha
        • Winner
        • Like
      • 26 replies
    • Legend of Survivors V1.2.8 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 48 replies
    • Legend of Survivors V1.2.8 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 132 replies
    • Kitchen Masters v15.0.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4


      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
        • Agree
        • Thanks
        • Like
      • 6 replies
    • Kitchen Masters v15.0.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4
       

      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
        • Haha
        • Like
      • 10 replies
    • Score Masters v2.2 [ +7 Jailed ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
        • Informative
        • Like
      • 5 replies
    • Score Masters v2.2 [ +7 Cheats ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
        • Thanks
        • Like
      • 19 replies
    • Adventure Bay - Farm Games v1.42.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 25 replies
    • Disney Solitaire v1.3.0 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 15 replies
    • Disney Solitaire v1.3.0 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 21 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