2

I'm trying to convert FirebaseAnalytics (and later the other Firebase Frameworks) to a dynamic framework. I am following the instructions mentioned here (method 1).

when trying to execute the following command

libtool -dynamic *.o -o libfoo_dynamic-x86_64.dylib -framework CoreFoundation -lSystem

I'm getting

ld: framework not found AdSupport for architecture x86_64

Any ideas on how to resolve this issue? I tried adding

-framework AdSupport

resulting in

ld: framework not found AdSupport

Probably I would just need to tell libtool where to find the AdSupport framework. But I did not find an explanation on how to do this.

ldav1s
  • 15,885
  • 2
  • 53
  • 56
Yannick Winter
  • 103
  • 2
  • 11
  • Just a question: is AdSupport supporting the architecture x86_64 - isnt AdSupport an iOS Library, thus only supporting armv7, armv7s, arm64 And the tvOS ones? I might be wrong, tho. https://developer.apple.com/reference/adsupport – Lepidopteron Apr 06 '17 at 11:38
  • Might be! So I tried doing the same for arm64 - same result – Yannick Winter Apr 06 '17 at 11:39
  • Can you provide your .c-File? In their example they globally import CoreFoundation, did you try this as well for your file with AdSupport? #include – Lepidopteron Apr 06 '17 at 11:41
  • Unfortunatelly I can't support the .c file as I only have .o files... As said, I'm trying to convert the FirebaseAnalytics static framework from static to dynamic - without having the code though... – Yannick Winter Apr 06 '17 at 11:43
  • Have you tried to use the approach provided by Xcode 6.1 supported for iOS8 and newer versions? New Project -> iOS -> Framework & Library -> Cocoa Touch Framework Here you can build the dynamic library. And I think you can also manually add the required references ? – Lepidopteron Apr 06 '17 at 11:52
  • I did! But this results in a linker error saying `4 Duplicate symbols for architecture x86_64` – Yannick Winter Apr 06 '17 at 12:00

0 Answers0