ios - Adding Google Analytics to my podfile breaks the build (library not found) -


i have google analytics in project works fine. once move pod file breaks.

in pod:

pod 'google/analytics', '~> 1.0.0'   pod 'google-mobile-ads-sdk' 

the pod update log:

installing google (1.0.7) using google-mobile-ads-sdk (7.3.1) installing googleanalytics (3.12.0) installing googlenetworkingutilities (1.0.0) installing googlesymbolutilities (1.0.0) installing googleutilities (1.0.1) 

i error:

ld: library not found -liphone-lib clang: error: linker command failed exit code 1 (use -v see invocation)

i've noticed breaks , spams "library search paths" in build settings.

broken library search paths

i have google ads sdk in pod file , has been working fine.

anyone know wrong here? if it's bug fault be?

edit: updated cocoapods 0.38.2, no change.

in pod xcconfig file, var "library_search_paths" gets edited when include google analytics , removes "$(inherited)":

example:

library_search_paths = "$(pods_root)/google/libraries" "$(pods_root)/google/libraries" "$(pods_root)/googleanalytics/libraries" "$(pods_root)/googlenetworkingutilities/libraries" "$(pods_root)/googlenetworkingutilities/libraries" "$(pods_root)/googlesymbolutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries" "$(pods_root)/googleutilities/libraries"

it looks bug.

edit 2: have created bug report here: https://github.com/cocoapods/cocoapods/issues/3908

trying setup described on brand new xcode project, , using podfile below, there no such error.

first suggestion: make new project, pod init, add pod requirements, pod install, build, link , run.

target 'googlepod' pod 'google/analytics', '~> 1.0.0'   pod 'google-mobile-ads-sdk' end  target 'googlepodtests'  end 

second suggestion:

verify configurations.

enter image description here


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -