Git Product home page Git Product logo

privateframeworks's Introduction

Notes

  1. Determine the PrivateFramework to interact with to achieve the end goal.

  2. get the runtime headers for the framework you chose from github and place them in the "include" folder in the project directory.

including the headers in cmake...

  • Add the folders <NAME>.framework/headers in the project include directory.
  • drag+drop all of the headers from github into the <NAME>.framework/headers folder.
  • In CMakeLists.txt, add ./include/<NAME>.framework to target_include_directories.

targeting the private framework...

Your target_link_libraries call in CMakeLists.txt should look something like this...

target_link_libraries(APFIExperiment
        "-framework Foundation"
        "-iframework /System/Library/PrivateFrameworks -framework CoreBrightness"
        )

Where CoreBrightness gets replaced with the name of the name of the framework you chose.

The -iframework flag simply gives CMake context as to where the private framework is located.

clang troubleshooting

  • If clang has a problem with #import "NSObject.h", it seems you can just comment it out in the header and you'll be fine.
  • Replacing all the unknown types/structs with the type id seems to satisfy the compiler. I don't exactly know what to do in the circumstance where they are required to achieve the task at hand though–because they usually aren't defined anywhere in the header dump.

privateframeworks's People

Contributors

angelod2022 avatar

Stargazers

actae0n avatar 0xff avatar Kyle Howells avatar  avatar  avatar NinjaLikesCheez avatar Khas'Mek avatar Kevin Bradley avatar Aleksei Kulaev avatar  avatar Jevin Sweval avatar  avatar ❂ avatar

Watchers

Jevin Sweval avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.