Jump to content

Framework not found preferences- another preference compiling thread


i0s_tweak3r

6 posts in this topic

Recommended Posts

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

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)
	

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.  

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Prison Empire Tycoon-Idle Game v2.7.2 Jailed Cheats +2
      Modded/Hacked App: Prison Empire Tycoon-Idle Game By Digital Things Sociedad Limitada
      Bundle ID: com.codigames.idle.prison.empire.manager.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/prison-empire-tycoon-idle-game/id1508490923?uo=4

      Hack Features:
      - Infinite Cash
      - No Ads

      iOS Hack Download Link: https://iosgods.com/topic/128324-prison-empire-tycoon%EF%BC%8Didle-game-v2662-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 409 replies
    • Raising Poseidon Cheats v1.2.64 +1
      Modded/Hacked App: 포세이돈키우기 By kim myungjun
      Bundle ID: com.mouseduck.seawar
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%8F%AC%EC%84%B8%EC%9D%B4%EB%8F%88%ED%82%A4%EC%9A%B0%EA%B8%B0/id1614789798?uo=4


      Hack Features:
      - Infinite Currencies


      iOS Hack Download Link: https://iosgods.com/topic/169377-raising-poseidon-%ED%8F%AC%EC%84%B8%EC%9D%B4%EB%8F%88%ED%82%A4%EC%9A%B0%EA%B8%B0-cheats-v1200-1/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 90 replies
    • Modern Warships Cheats v0.77.0 +7
      Modded/Hacked App: Modern Warships By Sergiy Petrov
      Bundle ID: com.Shooter.ModernWarships
      iTunes Store Link: https://apps.apple.com/us/app/modern-warships/id1541751298?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Infinite Ammo
      - No Reload
      - Freeze Boosters
      - Free Subscription?
       + 10% EXP
       + 50% Cash + Gold


      iOS Hack Download Link: https://iosgods.com/topic/146309-modern-warships-cheats-v0450-6/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,092 replies
    • Idle Lumber Empire - Wood Game Cheats v1.9.2 +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
      • 573 replies
    • PGA TOUR Golf Shootout v3.41.0 Jailed Cheats +3
      Modded/Hacked App: PGA TOUR Golf Shootout By Concrete Software, Inc.
      Bundle ID: com.concretesoftware.golf
      iTunes Store Link: https://apps.apple.com/us/app/pga-tour-golf-shootout/id1446458226?uo=4


      Hack Features:
      - Infinite Coin
      - Infinite Gold
      - Free iAP (Turn on inside iOSGods Mod Menu first) 


      iOS Hack Download Link: https://iosgods.com/topic/129510-arm64-pga-tour-golf-shootout-v256-jailed-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 290 replies
    • ArKnights Japan - アークナイツ v21.1.01 - [ x Player Damage & More ]
      Modded/Hacked App: アークナイツ By Yostar, Inc.
      Bundle ID: com.YoStarJP.Arknights
      iTunes Store Link: https://apps.apple.com/jp/app/アークナイツ/id1478990007?uo=4&at=1010lce4

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


      Hack Features:
      - x Player Damage - x1 - 1000
      - x Player Defense - x1 - 1000
      - x Player Attack Speed - x1 - 10
      - Frozen Enemies
      - Instant - Kill
      - Instant - Win
      - Unlimited Skills
      - No Deploy Cost

      iOS Hack Download Link: https://iosgods.com/topic/117823-arknights-japan-%E3%82%A2%E3%83%BC%E3%82%AF%E3%83%8A%E3%82%A4%E3%83%84-v1150-x-player-damage-more/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 197 replies
    • 1945 - Airplane shooting games Cheats v12.96 +2
      Modded/Hacked App: 1945 - Airplane shooting games By ONESOFT GLOBAL PTE. LTD.
      Bundle ID: com.os.airforce
      iTunes Store Link: https://apps.apple.com/us/app/1945-airplane-shooting-games/id1460632826?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode
       

      NOTE: Do not abuse the currency else you will get ban, though I made an anti-ban but I hightly recomend do not abuse


      iOS Hack Download Link: https://iosgods.com/topic/150671-1945-airplane-shooting-games-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 396 replies
    • Candy Crush Saga Cheats v1.272.3 +2
      Modded/Hacked App: Candy Crush Saga By King
      Bundle ID: com.midasplayer.apps.candycrushsaga
      iTunes Store Link: https://itunes.apple.com/us/app/candy-crush-saga/id553834731?mt=8&uo=4&at=1010lce4




      Hack Features:
      - Infinite Life (Turn on when you running out of life)
      - Infinite Booster (Won't subtract when use)
       

      Hack Download Link: https://iosgods.com/topic/72296-arm64-candy-crush-saga-cheats-v11330-2-iosgods-exclusive/


      Credits:
      - @Laxus
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 4,640 replies
    • Dragons: Rise of Berk v1.82.6 +6 Cheats
      Modded/Hacked App: Dragons: Rise of Berk By Jam City, Inc.
      Bundle ID: com.ludia.dragons
      iTunes Store Link: https://apps.apple.com/us/app/dragons-rise-of-berk/id667461862?uo=4


      Hack Features:
      - Free Shopping (shows original cost but able to purchase regardless)
      - Free Skipping
      - Free Odin's Market Shopping
      - Odin's Market Packs Never Reduce
      - Currency Hack [Spend to Gain - reverts to zero on next launch]
      - Enable Rider's Club


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/79228-dragons-rise-of-berk-v1794-4-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/139612-dragons-rise-of-berk-v1794-6-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 571 replies
    • Kingdom Guard: Tower Defence v1.0.405 +7 Cheats
      Modded/Hacked App: Kingdom Guard:Tower Defense TD By TAP4FUN (HONGKONG) LIMITED
      Bundle ID: com.tap4fun.odin.kingdomguard.appsotre
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-guard-tower-defense-td/id1570095804?uo=4


      Hack Features:
      - Free Unit Cost
      - No Skill Cooldown
      - Hero Damage Multiplier
      - Hero HP Multiplier
      - Tower Damage Multiplier
      - Tower Range Multiplier
      - Tower Speed Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148571-kingdom-guard-tower-defence-v10387-1-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/148568-kingdom-guard-tower-defence-v10387-7-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 703 replies
    • HomeScapes v6.9.0 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,265 replies
    • [ Seven Deadly Sins KR ] 일곱 개의 대죄: GRAND CROSS Cheats v8.6.32 +5
      Modded/Hacked App: 일곱 개의 대죄: GRAND CROSS By Netmarble Corporation
      Bundle ID: com.netmarble.nanakr
      iTunes Store Link: https://apps.apple.com/kr/app/%EC%9D%BC%EA%B3%B1-%EA%B0%9C%EC%9D%98-%EB%8C%80%EC%A3%84-grand-cross/id1449552940?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill
      - Multiply Attack
      - Multiply Defense
      - Make Enemies God Mode for some quests


      iOS Hack Download Link: https://iosgods.com/topic/154899-seven-deadly-sins-kr-%EC%9D%BC%EA%B3%B1-%EA%B0%9C%EC%9D%98-%EB%8C%80%EC%A3%84-grand-cross-cheats-v750-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 114 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