peterhajas / MobileNotifier

iOS Notifications. Done right.
BSD 3-Clause "New" or "Revised" License
302 stars 32 forks source link

Builing fails #316

Open entropid opened 12 years ago

entropid commented 12 years ago

When I run the run command, this is the output

MacBook-Pro:MobileNotifier me$ export GO_EASY_ON_ME=1
MacBook-Pro:MobileNotifier me$ export SDKVERSION=4.3
MacBook-Pro:MobileNotifier me$ esport THEOS=/opt/theos
MacBook-Pro:MobileNotifier me$ make
In file included from /opt/theos/include/IOSurface/IOSurface.h:20,
                 from /opt/theos/include/QuartzCore/QuartzCore-Structs.h:11,
                 from /opt/theos/include/QuartzCore/CAValueFunction.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:28,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9,
                 from /opt/theos/include/UIKit/UIKit-Structs.h:15,
                 from /opt/theos/include/UIKit/UIActionSheet.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlert.h:8,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:12,
                 from /opt/theos/Prefix.pch:4,
                 from <command-line>:0:
/opt/theos/include/IOSurface/IOSurfaceAPI.h:251: error: ‘xpc_object_t’ does not name a type
/opt/theos/include/IOSurface/IOSurfaceAPI.h:255: error: ‘xpc_object_t’ was not declared in this scope
Tweak.xm: In function ‘void -[PHACInterface setDoubleHighStatusBar:](PHACInterface*, objc_selector*, BOOL)’:
Tweak.xm:251: warning: no ‘+sharedDataManager’ method found
Tweak.xm:251: warning: (Messages without a matching method signature
Tweak.xm:251: warning: will be assumed to return ‘id’ and accept
Tweak.xm:251: warning: ‘...’ as arguments.)
Tweak.xm:258: warning: no ‘-toggleSimulatesInCallStatusBar’ method found
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [MobileNotifier.all.tweak.variables] Error 2

I've obviously checked that I followed all the instructions in the right way and set the variables (SKDVERSION = 4.3, GO_EASY_ON_ME = 1 and THEOS folder).

mikahjc commented 12 years ago

I had this same problem. I'm running OS X Lion, and I think Apple may have made some changes in IOSurfaceAPI.h in Lion. What I did was download an old version of Xcode that had the Snow Leopard SDK and extracted the header from there. No more 'xpc_object_t' errors.

entropid commented 12 years ago

Thank you for the advice. :)

mqiezi commented 12 years ago

/* This call lets you get an xpc_object_t that holds a reference to the IOSurface. Note: Any live XPC objects created from an IOSurfaceRef implicity increase the IOSurface's global use count by one until the object is destroyed. */ // xpc_object_t IOSurfaceCreateXPCObject(IOSurfaceRef aSurface) // IOSFC_AVAILABLE_STARTING(MAC_10_7, IPHONE_NA);

/* This call lets you take an xpc_object_t created via IOSurfaceCreatePort() and recreate an IOSurfaceRef from it. */ // IOSurfaceRef IOSurfaceLookupFromXPCObject(xpc_object_t xobj) // IOSFC_AVAILABLE_STARTING(MAC_10_7, IPHONE_NA);

I'm running OS X Lion,and I copy /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h to $THEOS/include/IOSurface/ . I get it worked when I commit above lines.