how do I include native library in rubymotion

I want to include some native project in my rubymotion project. Anyone faces this problem before because the vendor do not provide cocoapod yet.



You'll just need to copy the required files in to the vendor folder and require them in your Rakefile.

For example. With these two libraries and the following in your Rakefile will work.

app.vendor_project("vendor/SDWebImage.framework", :static, products: ["SDWebImage"], headers_dir: "Headers")

app.vendor_project("vendor/SVPullToRefresh", :static, cflags: "-fobjc-arc")

The first library was .framework bundle whereas the second was just .h and .m files in a folder.

You can find some more information on requiring 3rd party libraries here:

Need Your Help

Angular routes and views and controllers

angularjs controller routes views angularjs-scope

I am trying to make a very simple app with routes and views, that displays a test text changing into "click" when a button is clicked.

MPNowPlayingInfoPropertyElapsedPlaybackTime not setting correctly

ios swift

I'm trying to correctly set the elapsed play time. When the function is called or the track is paused, the nowplayinginfocenter elapsed time is not updated. I init nowplayinginfocenter ...