I am adding GoogleConversionTrackingSDK into my project and then calling the function: [ACTConversionReporter reportWithConversionID:@\"972050884\" label:@\"Bzk1CIzPkA
This problem appears because google has used categories in static library
The solution is super simple, you need to notify linker about that
1) Click on the project
2) Click on the target
3) Open Build Settings
tab
4) Search for Other Linker Flags
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!
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.