xSellize: Creating a tweak problems - xSellize

Jump to content




Remove all advertisements.

Posting Rules

Please only post applications if they are open source with a link to the source code and brief description on what the applications does.
Do not post requests to hacks or cracks here.
Do feel free to start a discussion on your app idea you never know someone might make it.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Creating a tweak problems

#1
User is offline   Mike_Rotch 

  • Senior Member
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 814
  • Joined: 14-September 08
I've been following this link for creating a MS tweak.

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 2



From 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 2



I'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.
Xbox Live Gamertag: Bret Heimsness
GameCenter Tag:
Mike Rotch
0


#Ads
User is online x-bot

  • Ad-Bot
  • Group:x-bot




#2
User is offline   sadam 

  • Owner
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Super Administrators
  • Posts: 1247
  • Joined: 13-August 08
try the headers from rpetrich

https://github.com/r...h/iphoneheaders

put them in theos/include replace the ones you already have empty the folder first if you have to.

I think you are running accross these problems because you dumped your own headers and you need to edit a few things in the headers themselves to get them to play nice.
1

#3
User is offline   malhaar 

  • The CoPy NinJa..
  • PipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 383
  • Joined: 09-June 08
or use Class-Dump for headers.. google it ..
Posted Image
0

#4
User is offline   Mike_Rotch 

  • Senior Member
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 814
  • Joined: 14-September 08

View Postmalhaar, on 27 December 2011 - 11:20 PM, said:

or use Class-Dump for headers.. google it ..


I was using class-dump lol but sadam's way fixed my issues.



Xbox Live Gamertag: Bret Heimsness
GameCenter Tag:
Mike Rotch
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


Close  Member Login