Question

Problem in the image

I asked someone to make me a static library instead of providing me with a dynamic library and these are the errors produced after I both drag and drop the file into a new empty project and when I import the file like so: #import "ftrapi.a".

Is there anything I do from my end to resolve these issues

Does this have anything to do with architecture or does this have to do with xcode settings.

Was it helpful?

Solution

You don't import a static library, you link it. i.e. if you have somewhere

#import "ftrapi.a"

this is wrong, it's an object code library, not a header file. Remove all such statements and in the Build Phases tab of your project, add the library to the "Link Binary with libraries" section.

You will also need a header file that you do import into your code. Get the person who built the library to send you the public header(s).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top