3

I am trying to add MWPhotoBrowser source code from github to my own project. For adding that i need to add mwphotobrowser.a file in "Link binary libraries". Any one help to convert the source code of MWPhotoBrowser to get mwphotobrowser.a file.

Thanks in Advance....

4
  • If you are adding the source code, why do you need the .a file? Commented Sep 22, 2015 at 16:45
  • i need to add it as static library into my own project. I need to do the photo gallery like in the link github.com/mwaterfall/MWPhotoBrowser. so i try to add to it as static library. Commented Sep 22, 2015 at 17:02
  • 1
    But you said you are adding the source code. If you add the source code (.h and .m files) you don't need the .a file. Commented Sep 22, 2015 at 17:03
  • is it possible to create static library from swift project ? Commented Mar 11, 2017 at 15:23

1 Answer 1

4

You need to create a new target of Static Library in your Project Settings. You can follow below mentioned links:

http://www.raywenderlich.com/41377/creating-a-static-library-in-ios-tutorial

https://medium.com/@jigarm/creating-a-static-library-in-objective-c-ios-75e4fc5eb41a

I have used this in one of my project and it is working well.

Hope this helps.

Sign up to request clarification or add additional context in comments.

2 Comments

is it possible to create static librart from swift project ?
No. As of Xcode 8.2.1 it is not possible. But you can create a framework.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.