Pregunta

I am trying to use the NinevehGL framework in my iPad app. I've added the framework to my Xcode project. However, when I run my app,it executes successfully.

Note: After i installed the NinevehGl.pkg, The NinevehGl framework is shows in the project Template itself.

enter image description here

Am selecting this template means automatically it creates some frameworks in Link Binary with Libraries.

enter image description here

But my issue is: While am running the same Xcode project in other mac, it crash. Because other mac's am not installed this package. So i want to add this framework in the project itself. How to add this?

¿Fue útil?

Solución

To begin with there are a few frameworks we will need to add.

Do this by first selecting your projects main file in the project navigator pane.

Make sure your projects target is selected, and under Build Phases click ‘Link Binaries with Libraries’.

enter image description here

Use the + at the bottom of this display and add the QuartsCore and OpenGLES frameworks.

Next, using the ‘Add Other’ button, navigate to your downloaded NinevehGL folder and import the NinevehGL.framework.

enter image description here

Now onto the code…….import NinevehGL into your header (.h) file,

#import <NinevehGL/NinevehGL.h>

add the delegate to your @interface, if this is missing your drawview method will never get called.

@interface ViewController : UIViewController <NGLViewDelegate>;

Answer Referenced from icodeblog

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top