Comments (4)
Oh great thanks a lot
from box2dswift.
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
- Open your project with Xcode.
- "File" -> "New" -> "Target", select "Cocoa Touch Framework"
- Enter "Box2D" as Product Name.
- Drag and drop 4 folders ("Collision", "Common", "Dynamics", "Rope") under "Box2DSwift/Box2D" folder to Box2D target.
- Add "Box2D.framework" as "Embedded Binaries".
from box2dswift.
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.
I created an app with option B, and uploaded it to github Box2DSwift_MinimumApp.
from box2dswift.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from box2dswift.