Jump to content

Theos Compiling Error: duplicate declaration of method


Go to solution Solved by Rook,

35 posts in this topic

Recommended Posts

Posted

Oh sh** sorry, I've had a long week and was tired :(

No worries. What matters is that you fixed it :D

Posted

Oh btw how do you add multiple things to he turned on from one switch

You hook them up with the same key and use one key in the pref plist to turn on at the same time all the functions that have the same key.

Posted

Awesome! How do i change the name of the settings for my tweak? when i click the tab it says the name of my tweak but when outside it says 'AsD'

Posted

Awesome! How do i change the name of the settings for my tweak? when i click the tab it says the name of my tweak but when outside it says 'AsD'

Look at the entry.plist file and change the label at the bottom. :)

Posted

Oh ok thanks, trying to Add a respring button but my pref is blank in settings:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com...yList-1.0.dtd">
<plist version="1.0">
<dict>
<key>entry</key>
<dict>
<key>cell</key>
<string>PSLinkCell</string>
<key>icon</key>
<string>icon.png</string>
<key>label</key>
<string>LockDelete</string>
</dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Prevent Apps From Being Deleted</string></dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.AsD.pref</string>
<key>key</key>
<string>kUninstall</string>
<key>label</key>
<string>Enable LockDelete</string>       
</dict>
</dict>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
<key>action</key>
<string>respring</string>
</dict>           
</array>
<key>title</key>
<string>LockDelete</string>
</dict>
</plist> 
Posted

here is some extra info, when opening the plist from ifile it says;

property list/var/mobile.asd/AsD/Resources/AsD.plist invalid: close tag on line 32 doesnt match open tag array?

Posted

You've messed up your plist O.o

 

Use this one:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Prevent apps from being deleted.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.AsD.pref</string>
			<key>key</key>
			<string>kUninstall</string>
			<key>label</key>
			<string>Enable LockDelete</string>
		</dict>
		<dict>
			<key>cell</key>
            <string>PSButtonCell</string>
            <key>label</key>
            <string>Respring</string>
            <key>action</key>
            <string>respring</string>
		</dict>
	</array>
	<key>title</key>
	<string>LockDelete</string>
</dict>
</plist>

Guest
This topic is now closed to further 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