http://www.brandontr...ur-first-tweak/
I have theos set up and I used the following command to get the headers for SpringBoard.app
class-dump /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/CoreServices/SpringBoard.app -H --sdk-ios 5.0
If I compile the tweak using 'sudo make' I get the following errors :
Making all for tweak welcomewagon...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from Tweak.xm:1:
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/SpringBoard.h:11:26: error: UIApplication.h: No such file or directory
cc1objplus: warnings being treated as errors
In file included from /Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/UIApplicationDelegate-Protocol.h:11,
from /Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/SpringBoard.h:13,
from Tweak.xm:1:
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/NSObject-Protocol.h:11: warning: duplicate declaration for protocol ‘NSObject’
In file included from /Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/SpringBoard.h:13,
from Tweak.xm:1:
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/UIApplicationDelegate-Protocol.h:15: warning: duplicate declaration for protocol ‘UIApplicationDelegate’
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/UIApplicationDelegate-Protocol.h:39: error: duplicate property declaration ‘window’
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [welcomewagon.all.tweak.variables] Error 2From what I see UIApplication.h is not in springboard headers but it is in UIKit headers. So I extracted UIKit headers and ran 'sudo make' again but with more errors
[
Making all for tweak welcomewagon...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h:11,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:11,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:12,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/Documents/Tweaks/welcomewagon/theos/Prefix.pch:4,
from <command-line>:0:
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UISwipeGestureRecognizer.h:6:26: error: Availability2.h: No such file or directory
In file included from /Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIGestureRecognizer.h:6,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h:9,
from /Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UISwipeGestureRecognizer.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h:11,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:11,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:12,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/Documents/Tweaks/welcomewagon/theos/Prefix.pch:4,
from <command-line>:0:
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:11:28: error: WebCore/WKTypes.h: No such file or directory
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:12:32: error: WebCore/WKUtilities.h: No such file or directory
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:13:37: error: GraphicsServices/GSEvent.h: No such file or directory
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:14:41: error: GraphicsServices/GSHeartbeat.h: No such file or directory
In file included from Tweak.xm:1:
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/SpringBoard.h:11:26: error: UIApplication.h: No such file or directory
In file included from /Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIGestureRecognizer.h:6,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h:9,
from /Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UISwipeGestureRecognizer.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h:11,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:11,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:12,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/Documents/Tweaks/welcomewagon/theos/Prefix.pch:4,
from <command-line>:0:
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:91: error: ‘GSEventRef’ does not name a type
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:195: error: ‘WKViewRef’ does not name a type
/Users/Documents/Tweaks/welcomewagon/theos/include/UIKit/UIKit-Structs.h:196: error: ‘WKViewRef’ does not name a type
cc1objplus: warnings being treated as errors
In file included from /Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/UIApplicationDelegate-Protocol.h:11,
from /Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/SpringBoard.h:13,
from Tweak.xm:1:
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/NSObject-Protocol.h:11: warning: duplicate declaration for protocol ‘NSObject’
In file included from /Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/SpringBoard.h:13,
from Tweak.xm:1:
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/UIApplicationDelegate-Protocol.h:15: warning: duplicate declaration for protocol ‘UIApplicationDelegate’
/Users/Documents/Tweaks/welcomewagon/theos/include/SpringBoard/UIApplicationDelegate-Protocol.h:39: error: duplicate property declaration ‘window’
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [welcomewagon.all.tweak.variables] Error 2I've tried compiling the tweakweek tweaks as well but run into the same header problems on most of those tweaks (only one that worked was diet bar).
What's going on here? Please help.

Sign In »
Register Now!
Help


Back to top













