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

    • Hello Kitty Friends Match v1.0.0 +1 Jailed Cheat [ Auto Win ]
      Modded/Hacked App: Hello Kitty Friends Match By LINE Games
      Bundle ID: com.linegames.hkfm
      App Store Link: https://apps.apple.com/us/app/hello-kitty-friends-match/id6742533643?uo=4

       
       

      🤩 Hack Features

      - Auto Win -> Move a block.
      • 0 replies
    • Hello Kitty Friends Match v1.0.0 +1 Cheat [ Auto Win ]
      Modded/Hacked App: Hello Kitty Friends Match By LINE Games
      Bundle ID: com.linegames.hkfm
      App Store Link: https://apps.apple.com/us/app/hello-kitty-friends-match/id6742533643?uo=4

       
       

      🤩 Hack Features

      - Auto Win -> Move a block.
      • 0 replies
    • Apocalypse Worm: Zombie Strike v0.2.0 [+2 Jailed Cheats]
      Modded/Hacked App: Apocalypse Worm: Zombie Strike By A Thinking Ape Entertainment Ltd.
      Bundle ID: ata.strike.worm.zombie.apocalypse
      iTunes Store Link: https://apps.apple.com/us/app/apocalypse-worm-zombie-strike/id6740106898?uo=4
       

      🤩 Hack Features

      - Never Die
      - Unlimited Resources (Earn Some)
        • Like
      • 7 replies
    • Apocalypse Worm: Zombie Strike v0.2.0 [+2 Cheats]
      Modded/Hacked App: Apocalypse Worm: Zombie Strike By A Thinking Ape Entertainment Ltd.
      Bundle ID: ata.strike.worm.zombie.apocalypse
      iTunes Store Link: https://apps.apple.com/us/app/apocalypse-worm-zombie-strike/id6740106898?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Resources (Earn Some)
       
      • 3 replies
    • Archers Survivor v0.5.16 [+2 Jailed Cheats]
      Modded/Hacked App: Archers Survivor By Egor Iurchenko
      Bundle ID: com.jtg.archer
      iTunes Store Link: https://apps.apple.com/us/app/archers-survivor/id6738892787?uo=4



      🤩 Hack Features

      - Unlimited Items
      - Unlimited Currency
        • Like
      • 1 reply
    • Archers Survivor v0.5.16 [+2 Cheats]
      Modded/Hacked App: Archers Survivor By Egor Iurchenko
      Bundle ID: com.jtg.archer
      iTunes Store Link: https://apps.apple.com/us/app/archers-survivor/id6738892787?uo=4



      🤩 Hack Features

      - Unlimited Items
      - Unlimited Currency
       
        • Like
      • 1 reply
    • Battle Ranker in Another World v3.8 +4 Cheats
      Modded/Hacked App: Battle Ranker in Another World By Springcomes Co., Ltd.
      Bundle ID: com.spcomes.stepisland
      iTunes Store Link: https://apps.apple.com/us/app/battle-ranker-in-another-world/id6450804561?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:
      - Damage Multiplier
      - Never Die
      - Loot Multiplier
      - Instant Kill Enemies


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content
      React or reply to this topic to see the <a href='https://iosgods.com/topic/3762-info-how-to-unlockview-the-hidden-content-on-iosgods/?do=findComment&comment=78119'>hidden content & download link</a>.








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please 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:
      - @KyosukeNanbu

       
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 68 replies
    • Ghost Hunter Idle v22.1.0 +3 Jailed Cheats
      Modded/Hacked App: Ghost Hunter Idle By MOBIRIX
      Bundle ID: com.mobirix.dragongame
      iTunes Store Link: https://apps.apple.com/us/app/ghost-hunter-idle/id6472387499?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

      - Enemy HP Divide
      - Enemy Attack Divide
      - Loot Multiplier


      Jailbreak required iOS hacks: 

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic which includes a video example.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 5: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 6: Enter your Apple Account email when prompted, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue 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

      - AlyssaX64

       

      Cheat Video/Screenshots

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 63 replies
    • Airship Knights v2.0.13 +2 Jailed Cheats
      Modded/Hacked App: Airship Knights By SuperPlanet corp.
      Bundle ID: com.superplanet.airship
      iTunes Store Link: https://apps.apple.com/us/app/airship-knights/id1537355629?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

      - Damage Multiplier
      - Defense Multiplier


      Jailbreak required iOS hacks: 

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic which includes a video example.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 5: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 6: Enter your Apple Account email when prompted, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue 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

      - AlyssaX64

       

      Cheat Video/Screenshots

      N/A
        • Informative
        • Winner
        • Like
      • 16 replies
    • Battle Ranker in Another World v3.8 +4 Cheats
      Modded/Hacked App: Battle Ranker in Another World By Springcomes Co., Ltd.
      Bundle ID: com.spcomes.stepisland
      iTunes Store Link: https://apps.apple.com/us/app/battle-ranker-in-another-world/id6450804561?uo=4


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


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Loot Multiplier
      - Instant Kill Enemies


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


      iOS Hack Download Link:

      Hidden Content
      React or reply to this topic to see the <a href='https://iosgods.com/topic/3762-info-how-to-unlockview-the-hidden-content-on-iosgods/?do=findComment&comment=78119'>hidden content & download link</a>.








      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:
      - @KyosukeNanbu

       
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 85 replies
    • Ghost Hunter Idle v22.1.0 +3 Cheats
      Modded/Hacked App: Ghost Hunter Idle By MOBIRIX
      Bundle ID: com.mobirix.dragongame
      iTunes Store Link: https://apps.apple.com/us/app/ghost-hunter-idle/id6472387499?uo=4


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


      Hack Features:
      - Enemy HP Divide
      - Enemy Attack Divide
      - Loot Multiplier


      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
        • Haha
        • Thanks
        • Winner
        • Like
      • 131 replies
    • Airship Knights v2.0.13 +2 Cheats
      Modded/Hacked App: Airship Knights By SuperPlanet corp.
      Bundle ID: com.superplanet.airship
      iTunes Store Link: https://apps.apple.com/us/app/airship-knights/id1537355629?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
      - JB Check 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
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 185 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