Localization that crashes due to an image not found

I am trying to integrate Localytics into my iOS application and use cocoapods:

pod 'Localytics'

However, when I launch my application (I don’t even call or import the Localytics namespace), my application exploded this error:

dyld: Library not loaded: @rpath/Localytics.framework/Localytics
  Referenced from: /Users/bobbydavro/Library/Developer/CoreSimulator/Devices/8A21B45E-D77B-41F7-AB45-8F77DE48A4AF/data/Containers/Bundle/Application/556E667A-59D9-4072-81F1-B9CA600E0C46/MyApp.app/MyApp
  Reason: image not found

I found several related SO articles about this, but none of the suggested fixes work:

  • make bound code binary 'optional'
  • disable bitcode
  • pod deintegrate, then reinstall

I'm stuck, I also tried to use the Segment for integration, but it has a direct dependency on the same element and explodes in the same way: /

+4
source share
3 answers

, : Project Setting Your_Target → GeneralEmbedded Binaries+

+3

Cocoapods 1.0, use_frameworks! .

platform :ios, '8.0'

target 'MyApp' do
    use_frameworks!

    pod 'Localytics'
end
+2

This also happened to me. For some reason, my project did not like their dynamic structure. (I do not support iOS 7, so this should not be a problem.)

My fix was to use their static structure.

pod 'LocalyticsStaticFramework'

This is probably a problem with the project settings, and not with their framework.

+1
source

Source: https://habr.com/ru/post/1648892/


All Articles