• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ios - ld : library not found for -lGGLCloudMessaging

[复制链接]
菜鸟教程小白 发表于 2022-12-12 16:29:08 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

获取“ld: library not found for -lGGLCloudMessaging” 添加 GCM Pod 后编译我的项目时 https://developers.google.com/cloud-messaging/ios/client 我的 xcode 构建日志:

Ld /Users/noamsegev/Library/Developer/Xcode/DerivedData/CodiPark-didqiygnaengxedykkrpmgdegpax/Build/Intermediates/CodiPark.build/Debug-iphoneos/Codipark.build/Objects-normal/armv7/CodiPark normal armv7
    cd /Users/noamsegev/git/codipark_ios_datapark/DATAPARK
    export IPHONEOS_DEPLOYMENT_TARGET=7.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/noamsegev/Library/Developer/Xcode/DerivedData/CodiPark-didqiygnaengxedykkrpmgdegpax/Build/Products/Debug-iphoneos -L/Users/noamsegev/git/codipark_ios_datapark/DATAPARK/ZBarSDK -L/Users/noamsegev/git/codipark_ios_datapark/DATAPARK/Codipark2 -L/Users/noamsegev/git/codipark_ios_datapark/DATAPARK/codipark2 -L/Users/noamsegev/git/codipark_ios_datapark/DATAPARK/ZBarSDK/Headers/ZBarSDK -L/Users/noamsegev/git/codipark_ios_datapark/DATAPARK/Codipark2/CardIO -F/Users/noamsegev/Library/Developer/Xcode/DerivedData/CodiPark-didqiygnaengxedykkrpmgdegpax/Build/Products/Debug-iphoneos -F/Users/noamsegev/git/codipark_ios_datapark/DATAPARK -F/Users/noamsegev/git/codipark_ios_datapark/DATAPARK/Codipark2 -filelist /Users/noamsegev/Library/Developer/Xcode/DerivedData/CodiPark-didqiygnaengxedykkrpmgdegpax/Build/Intermediates/CodiPark.build/Debug-iphoneos/Codipark.build/Objects-normal/armv7/CodiPark.LinkFileList -miphoneos-version-min=7.1 -dead_strip -ObjC -lGGLCloudMessaging -lGGLCore -lGGLInstanceIDLib -lGSDK_Overload -lGTMSessionFetcher_core -lGTMSessionFetcher_full -lGTMStackTrace -lGTM_AddressBook -lGTM_DebugUtils -lGTM_GTMURLBuilder -lGTM_KVO -lGTM_NSData+zlib -lGTM_NSDictionary+URLArguments -lGTM_NSScannerJSON -lGTM_NSStringHTML -lGTM_NSStringXML -lGTM_Regex -lGTM_RoundedRectPath -lGTM_StringEncoding -lGTM_SystemVersion -lGTM_UIFont+LineHeight -lGTM_core -lGTM_iPhone -lGcmLib -lProtocolBuffers -lsqlite3 -lz -framework AddressBook -framework AssetsLibrary -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreMotion -framework MessageUI -framework SystemConfiguration -force_load /Users/noamsegev/git/codipark_ios_datapark/DATAPARK/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib.a -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -framework ImageIO -framework CoreImage -framework MobileCoreServices -framework Security -framework EstimoteSDK -framework CoreBluetooth -framework CoreLocation -lCardIO -framework SystemConfiguration -lz -lsqlite3 -framework Instabug -lGoogleAnalyticsServices -framework CoreData -framework Foundation -framework GLKit -framework OpenGLES -framework MessageUI -framework CoreMotion -lzbar -lc++ -framework CoreTelephony -framework CoreGraphics -lGoogleAnalyticsServices -framework UIKit -framework AVFoundation -framework CoreMedia -framework CoreVideo -framework QuartzCore -liconv -framework AudioToolbox -lPods-Codipark -Xlinker -dependency_info -Xlinker /Users/noamsegev/Library/Developer/Xcode/DerivedData/CodiPark-didqiygnaengxedykkrpmgdegpax/Build/Intermediates/CodiPark.build/Debug-iphoneos/Codipark.build/Objects-normal/armv7/CodiPark_dependency_info.dat -o /Users/noamsegev/Library/Developer/Xcode/DerivedData/CodiPark-didqiygnaengxedykkrpmgdegpax/Build/Intermediates/CodiPark.build/Debug-iphoneos/Codipark.build/Objects-normal/armv7/CodiPark



Best Answer-推荐答案


通过将 $(inherited) 标志添加到库搜索路径来解决它

关于ios - ld : library not found for -lGGLCloudMessaging,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32972473/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap