Code Monkey home page Code Monkey logo

Comments (4)

novumcoder avatar novumcoder commented on July 4, 2024 1

Oh great thanks a lot

from box2dswift.

yohei-yoshihara avatar yohei-yoshihara commented on July 4, 2024

There are two ways to add Box2DSwift to your project: A) framework binary, B) source code.

A) framework binary
Sadly, it seems that there is no easy way to create a framework binary. This post would be helpful.
After creating the framework binary, simply drag and drop it to your project.

B) source code

  1. Open your project with Xcode.
  2. "File" -> "New" -> "Target", select "Cocoa Touch Framework"
  3. Enter "Box2D" as Product Name.
  4. Drag and drop 4 folders ("Collision", "Common", "Dynamics", "Rope") under "Box2DSwift/Box2D" folder to Box2D target.
  5. Add "Box2D.framework" as "Embedded Binaries".

from box2dswift.

novumcoder avatar novumcoder commented on July 4, 2024

Thanks for the info.

I tried option B. Worked fine so far, but still after adding "import Box2D" in my Swift file it still complains it cannot find b2World or b2Vec2 when i try to instantiate it. Point 1 to 5 worked fine. After building the Box2D the Box2D.framework file is added as embedded binary automatically.

What is missing here?

from box2dswift.

yohei-yoshihara avatar yohei-yoshihara commented on July 4, 2024

I created an app with option B, and uploaded it to github Box2DSwift_MinimumApp.

from box2dswift.

Related Issues (4)

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.