Coder Social home page Coder Social logo

ofplugin's Introduction

OFPlugin

OpenFrameworks plugin for Xcode that adds addons to your project. Compatible with Xcode 5 and 6 on OS X 10.8+. HEAD of this repo is typically paired with the latest Xcode. For older Xcode releases, see the git tags or just checkout OFPlugin at the relevant point in time.

screenshot

Installing

Building the included Xcode project will install the plugin

To control installation manually, add/remove OFPlugin.xcplugin in:

~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OFPlugin.xcplugin

You may need to create a few of the directories on the way, as they don't all exist by default.

The plugin can also be installed via the Alcatraz Xcode package manager.

Known Issues

When addons contain static libs, they will be added with absolute paths. This is due to a quirk in the Xcode API being used by OFPlugin. If you intend to share a project with other people, it is recommended that you re-add static libs yourself (by right-clicking in the project navigator and selecting "Add Files To (project name)...", for example). You can also edit the project's .pbxproj file yourself if you're feeling brave.

Troubleshooting

"I updated Xcode and now the plugin doesn't show up"

Xcode works on a UUID whitelist system, meaning each new version of Xcode needs to have its UUID added to OFPlugin's Info.plist file. If OFPlugin isn't updated in time, you can do this update yourself (and by all means send a pull request afterwards!).

Get the UUID by running the following in the terminal:

defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

Then, open the OFPlugin project and edit the Supporting Files > OFPlugin-Info.plist file. You'll need to add the UUID you just copied to the DVTPlugInCompatibilityUUIDs section.

Rebuild the plugin, restart Xcode and you should see the OF menu reappear.

"I want to use this plugin with non-latest Xcode"

OFPlugin has been kept in sync with Xcode starting from Xcode 5, though only the latest Xcode is supported by github HEAD. To use with an older Xcode, you will have to checkout to an older OFPlugin commit and rebuild.

"The plugin isn't adding my addon correctly"

The plugin parses addons_config.mk and will use it to tell which system frameworks to add, which folders to ignore, extra includes to add, etc. Example folders are always ignored by default. It will also use some of the metadata, such as the dependency list and addon url. If your addon doesn't work with OFPlugin properly out-of-the-box, you should add an addon_config.mk. See ofxKinect and ofxMidi for examples.

If OFPlugin doesn't seem to be parsing your addon_config.mk properly, please open an issue.

ofplugin's People

Contributors

admsyn avatar j3ffgray avatar sleepygarden avatar armadillu avatar capnslipp avatar

Watchers

Mike Baumgart 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.