Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Unable to embed a static library in the Framework target #103

Closed
loretoparisi opened this issue Sep 23, 2014 · 1 comment
Closed

Unable to embed a static library in the Framework target #103

loretoparisi opened this issue Sep 23, 2014 · 1 comment

Comments

@loretoparisi
Copy link

I have a static library from Google Analytics in the framework (see the attachments).
I added the .a file in the "Link Binary With Libraries and the

GAI.h

library file to the public headers section.
Anyway in the dependent app that includes the framework (embedding GAI) I have the error

 Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_GAI", referenced from:
       objc-class-ref in ObjectiveLyricsTouch(MXMGAMetrics.o)
     "_kGAIScreenName", referenced from:
         -[MXMGAMetrics trackPage:] in ObjectiveLyricsTouch(MXMGAMetrics.o)
        -[MXMGAMetrics trackEvent:] in ObjectiveLyricsTouch(MXMGAMetrics.o)

NOTE. The object file

MXMGAMetrics.o

is in the project scope of the framework headers. Even if I add its header

MXMGAMetrics.h

as public header I get the same visibility error.

Did I miss anything else?
Thanks.

schermata 2014-09-23 alle 16 32 45

@loretoparisi
Copy link
Author

I solved the issue. It was due to a wrong path in the source files (drag & drop from another project without moving the real files, very tricky)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant