Open nebiros opened 6 years ago
anyone at Segment monitoring these issues?
Hi all,
Thanks for writing in, and yes we monitor these and try to get back to you as quickly as possible!
This unfortunately is a common issue that doesn't have an out of the box solution due to Cocoapods and static libraries not working well together. This issue explains why combining use_frameworks!
and the static file doesn't work. This GitHub issue tracks this problem.
This may be something outside our scope to fix, as Cocoapods has this limitation, however, we have a work around we can suggest.
You will need to manually copy the integration files and then depend on Intercom directly. Instead of importing the integration from our library, then you would import the integration from your local copy.
This eliminates the transitive dependency (from App -> Segment-Intercom -> Intercom to App -> Intercom).
Let me know if this makes sense!
thanks @ladanazita for the response. I got it working as you suggested: I copied in the four implementation/header files from the library, leaving the existing Intercom dependency in place. I'm not exactly sure what you mean when you say
Instead of importing the integration from our library, then you would import the integration from your local copy
but it seems to be working regardless. I need to include Intercom anyway in order to use their UI for the message interface.
@toddgower Sorry for the confusion — so instead of importing Segment-Intercom
, you would natively include the Intercom pod which is what you have done.
~We were able to work around this error with this: https://github.com/CocoaPods/CocoaPods/issues/3289#issuecomment-232775634~
Scratch that -- We ended up needing to import the files manually into the project. Is there a reason that this needs to be a static library?
pod "Segment-Intercom", "~> 1.0.0-beta"