I created a project and generated its .ipa file. Now I want to link this .ipa file as library into other project. Is it possible to do it? If yes how can I achieve this?
Please help me..
an .ipa file as a library? no... you can't do that. An .ipa file is essentially a .zip file containing the application binary and resources (compressed or not). There's nothing exposed that whatever you're trying to do can hook into.
Use a static .a library or a dynamic .dylib or a framework to expose functionality from another project for use somewhere else.
You can never add a .ipa into a project. If you want to use some functionality from the project then create a static library (.a) out of the code and you can use it in any project. Or if you want you can create a framework .
EDITED : Use this URL. Its a nice tutorial http://www.raywenderlich.com/65964/create-a-framework-for-ios
Related
I have a client which is delivering me an XCArchive file to be used as the base layer of a project. I am to extend the base classes and add customization. How can I use an XCArchive file in my project? Is there any way to convert or extract a precompiled library (.a) or attach as a framework somehow, add it as a target, ect...
Not sure where to begin on this one.
Ask for the whole project. Not just the archive file.
The archive does not contain app's source code
I want to create a framework that includes xib.
Do I have to use the bundle?
If so, should I distribute the bundle file and the .framework file when I deploy?
The framework I created seems a bit crude.
Do you have any examples of frameworks including xib files?
Thank you for your reply. :)
Framework will automatically wrap your resource files (xcassets, images, storyboard, xib) into bundle inside the .framework file after compile, you dont really need to do anything.
Static library then you will have to create bundle target and pack it yourself.
I'm trying to build my own Player base on FFMpeg,
I succes to build FFMpeg as static library(*.a),
but its need to copy another header file to use,
I hope it can used like framework,
but even I add header file into framework (set as public)
My Demo App can not find .h file in FFMpeg.framework,
is there any suggestion or tutorial can help me to build it as real framework?
Thanks
Yes because there is proper procedure to setup FFMPEG in project.
Please follow procedure in below link.
Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s
1) First Download FFmpeg From github.
2) Then just copy folder in your project directory.
3) Then Add it into your project with Add file option in xcode.
Note:- Below library must be added in your Project.
and don't forget to set HEADER SEARCH PATH in Build Setting option.
Try to compile.
You will find example for FFMPEG in below link,
1) ffmpegc-demo
2) kxmovie (Best to use ffmpeg)
still you need to add ffmpeg in this demo also. else you will get error for headerfile missing or library missing or etc.
I've included several C libraries into an iOS project. The way to do it, I think is to add the .a file to the Build Phases > Link Binary With Library, and drag your .a file there. If you compiled ffmpeg from source, there should be a header file. For your .h file, make sure you update the Library Search Path in Build Settings.
Also, if you are using the ffmpeg api's, maybe getting the libavcodec, libavformat, and libavscale libraries, as these are what the main ffmpeg program uses.
While developing a Swift framework I found that I only can use my framework after adding .xcodeproj file to my new project.
Here are some references I followed:
Ref:1 , Ref:2 , Ref:3
They all have did good job, but the problem is they all added their .xcodeproj file to their new projects which uses that framework.
My question is does it make sense?,
I mean anyone who wants to use my framework will need to use my .xcodeproj file?
If yes,then there is no code privacy. :-(
Or I am doing something wrong?
I have created a static library using Objective - C and generates a library called: libDummy.a, with header called ClassOne.h and ClassOne.m, then I need to add this library into another project, but it keeps reporting "libDummy/ClassOne.h" cannot be found.
And I have copied the libDummy.a to the same folder as the new project, also I checked the Search Library path, it's pointing to the correct folder, but the problem still exists.
Any idea about how to fix that?
try this,
1) Remove all the files and re-add them to project bundle, but dont forget to select as shown in below image,
2) Recheck library path again and add.
Link the library file in build Phases
Xcode->Build Phases -> Link Binary with Libraries
Add your .a file here.