Skip to content

Using Flipper from Xcode

George Morgan edited this page Feb 16, 2018 · 1 revision

This Wiki page details how to use Xcode to control a Flipper board.

Languages

  • C
  • C++
  • Objective-C
  • Swift

Platforms

  • macOS
  • iOS
  • watchOS
  • tvOS

Create an Xcode Project

Create the Xcode project from the app template you want to build.

Build the Flipper Framework

To use Flipper on an Apple platform, you must first build Flipper.framework. This framework contains an embedded version of libflipper for the Apple platforms as well as bindings for the Apple languages supported by Apple.

  1. Navigate to the root of the repository and then to languages/apple/Flipper.
  2. Open Flipper.xcodeproj and run Product-Build or press ⌘+B to build the project.
  3. Expand the Products group.
  4. Right click on Flipper.framework and click Show in Finder.
  5. Highlight Flipper.framework.

Embed the Flipper Framework

  1. Open your Xcode project and navigate to MyProduct-General.
  2. Go to Finder and drag Flipper.framework
    • iOS/watchOS/tvOS: into Embedded Binaries
    • macOS: into Linked Frameworks and Libraries
  3. Write some code!

Clone this wiki locally