Error compiling tweak in theos

前端 未结 3 380
[愿得一人]
[愿得一人] 2020-12-15 14:38

I set a simple tweak using theos following the tutorial here. However when I run make with the headers from here, I get

Making all for tweak WelcomeWagon...
         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 15:27

    I found the same problem with current version of Ryan Petrich's dumped headers today.

    Finally I find out that the solution is,

    1. Import the dumped Springboard headers

    2. Copy /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h to /opt/theos/include/IOSurface. The reason is in IOSurface/IOSurface.h!

    3. If you are running OS X Lion or later, you may need to comment out the following lines in /opt/theos/include/IOSurface/IOSurfaceAPI.h:

    
        /* This call lets you get an xpcobject_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 xpcobject_t created via IOSurfaceCreatePort() and recreate an IOSurfaceRef from it. */
        // IOSurfaceRef IOSurfaceLookupFromXPCObject(xpc_object_t xobj)
        // IOSFC_AVAILABLE_STARTING(_MAC_10_7, __IPHONE_NA);
    
    

    Give it a try!

提交回复
热议问题