Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure #17

Closed
jc-paris opened this issue Dec 4, 2017 · 7 comments
Closed

Compilation failure #17

jc-paris opened this issue Dec 4, 2017 · 7 comments

Comments

@jc-paris
Copy link

jc-paris commented Dec 4, 2017

Hi,

I'm unable to link Firebase Segment pod to my project. Whereas the official pod from Firebase is working like a charm.
I'm getting the error below :

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FIRApp", referenced from:
      objc-class-ref in SEGFirebaseIntegration.o
  "_OBJC_CLASS_$_FIROptions", referenced from:
      objc-class-ref in SEGFirebaseIntegration.o
  "_OBJC_CLASS_$_FIRAnalytics", referenced from:
      objc-class-ref in SEGFirebaseIntegration.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)```
@ladanazita
Copy link
Contributor

Hi @jc-paris

Could you reach out to our support team with a bit more on how to reproduce this?

Thank you!
Ladan

@nebiros
Copy link

nebiros commented Mar 9, 2018

Same issue, Swift 4, Xcode Version 9.2 (9C40b), Segment-Firebase (2.1.0):

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_FIRApp", referenced from:
      objc-class-ref in SEGFirebaseIntegration.o
  "_OBJC_CLASS_$_FIROptions", referenced from:
      objc-class-ref in SEGFirebaseIntegration.o
  "_OBJC_CLASS_$_FIRAnalytics", referenced from:
      objc-class-ref in SEGFirebaseIntegration.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  - Analytics (3.6.9)
  - Firebase/Analytics (4.8.2):
    - Firebase/Core
  - Firebase/Core (4.8.2):
    - FirebaseAnalytics (= 4.0.9)
    - FirebaseCore (= 4.0.14)
  - FirebaseAnalytics (4.0.9):
    - FirebaseCore (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseCore (4.0.14):
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - FirebaseInstanceID (2.0.8):
    - FirebaseCore (~> 4.0)

@ladanazita
Copy link
Contributor

@nebiros Could you reach out to our support team as well? Some additional context will be able to surface whats going on

@Fawxy
Copy link

Fawxy commented Mar 29, 2018

I am also running into this issue. I'll get in touch with the support team.

@ladanazita
Copy link
Contributor

Hi @Fawxy @nebiros

Can you confirm you have use_frameworks! uncommented? I was able to reproduce this when I added use_frameworks!, so my thought is this is likely an issue with Cocoapods not working well with static libraries, which GA/Firebase historically has been a pain to work with in this regard.

I can introduce a subspec to help with the workaround we normally suggest, similar to what our Google Analytics integration does here. This work around was taken from this suggestion to rely on the integration manually.

Let me know!
Ladna

@Fawxy
Copy link

Fawxy commented Apr 3, 2018

use_frameworks! is uncommented (as it should be with swift projects). I think this is quite a common issue with segment integrations - it's also an issue with the AppsFlyer integration.

@ladanazita
Copy link
Contributor

ladanazita commented Apr 3, 2018

Hey all,

Unfortunately this limitation does exists with Swift applications and dependencies served as static libs.

I've included a subspec workaround, which you can read more about here. I'm going to brainstorm internally to see what we can do long term to reduce the headache here.

Thanks for your patience and understanding!
Ladan

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

No branches or pull requests

4 participants