Skip to content

Setup Frameworks in Sample Projects

Rob Reuss edited this page Nov 10, 2015 · 2 revisions

The sample projects should work "out of the box, as soon as you download or clone, but just in case you need to build and add the framework files to the sample project:

  1. Clean and build the framework project for the target platform
  2. Navigate to the sample project source code
  3. The old framework file will appear in red; delete the framework file by sending it to the trash (do not merely delete the reference)
  4. Bring up the project properties and go to the General tab
  5. Remove the existing framework reference under Embedded Binaries
  6. Click the plus button under Embedded Binaries
  7. Find the appropriate framework file for the target platform and add it
  8. Note that if building the Bridge sample project, you'll also need to add the watchOS framework to the watch extension target.
  9. You should be able to run the project now in either the simulator or on a device

Note that once setup in this manner, changes to the source code will be immediately reflected in the sample project.