App crash when add Google Conversion Tracking SDK iOS-3.0.0

后端 未结 2 1356
自闭症患者
自闭症患者 2021-01-13 09:48

I am adding GoogleConversionTrackingSDK into my project and then calling the function: [ACTConversionReporter reportWithConversionID:@\"972050884\" label:@\"Bzk1CIzPkA

相关标签:
2条回答
  • 2021-01-13 10:10

    This problem appears because google has used categories in static library
    The solution is super simple, you need to notify linker about that

    enter image description here

    1) Click on the project
    2) Click on the target
    3) Open Build Settings tab
    4) Search for Other Linker Flags

    enter image description here

    5) Double click on Other Linker Flags
    6) Add -ObjC and -all_load flags
    7)
    Remove binary (delete from device/simulator),
    Clean project (hitting cmd+shift+k) and
    build again (hitting cmd+b).

    You're ready to go!

    0 讨论(0)
  • 2021-01-13 10:32

    Have you tried to follow Boudewijn P's suggestion from here ?

    Add -ObjC to the "Other Linker Flags" in the build settings. Or, if you get duplicate symbols, just force load the library by adding -force_load to the other linker flags: -force_load path/to/libGoogleConversionTracking.a replace "path/to" appropriately.

    0 讨论(0)
提交回复
热议问题