i use Xcode 4.2 and i need to integrate an external library, obviously, it was taken as compressed file(.tar), so in Xcode, when i add it and try to import its files in my code, they aren't recognized, so the library isn't correctly imported although i see it in my project Groups and Files Panel.
.tar isn't compression, it's an archive. Try unarchiving it and importing the file or files inside the archive.
Related
I'm trying to import a folder which contains hundred of images to xcassets.
By importing it normally, the problem is that all the actual images are copied (Contents.json file is also generated for each one of them).
I would like them to not be copied but be referenced, similarly to the way we can do so in the project folder by pressing "Add files to ProjectName" and checking the "Create folder references" option.
Is there any way to achieve that?
(In fact I want to use a common assets folder for android and ios in a react-native project, that's why I need this. For android, I did found how to link it to the drawable folder through build.gradle, but for ios not yet)
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 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
I need to save multiple files as one custom file, which then can be exported and imported into the iOS app. The files that go into this package are PDFs and TXTs.
A .pages file on the Mac is pretty much exactly what I want, it is a package which contains the original files, but acts as a custom (Pages) file.
I looked into NSFileWrapper, NSKeyedArchiver and NSFileManager, but I can't find the right way to solve this problem. How can I export multiple files into one package on iOS, that I can save with my own file extension and where I can easily get the original files out when importing?
I'm trying to add the openjpeg library to my XCode 4 project so that I can compress images taken by the iPhone's camera to jpeg2000.
I built the static library (libopenjpeg.a) using Cmake on OS/X. (I'm guessing this may have been the first error, that it needs to be built by XCode so it's built for iPhone architecture and not OS X).
I have the library added in the Link Binary with Libraries of my target.
The project builds successfully but I can't seem to import any of the headers from the library into any of my Objective-C classes. I've tried manually adding the folder that contains the libopenjpeg header files to the User Header Search Path but that did not seem to do anything.
Any suggestions?
for the simplest solution
Import the head files to you project's source.
You can still build it on the command-line with CMake, you'd just have to modify the CMakeLists.txt file so the right flags are passed when compiling.
However as Gavin indicates, it may be simpler just to drag the header and source files from the library into your Xcode project, and forego the building of a static library.