zoukankan      html  css  js  c++  java
  • "__BuglySetUserId", referenced from:---bugly 错误

    Ld /Users/youyoulewan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzavjwcgmewityensvisnzxcabpn/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/hero.app/hero normal armv7
        cd "/Users/youyoulewan/Desktop/Unity XCode Project/Hero_iOS_20151224"
        export IPHONEOS_DEPLOYMENT_TARGET=5.1
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/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/iPhoneOS8.4.sdk -L/Users/youyoulewan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzavjwcgmewityensvisnzxcabpn/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath -L/Users/youyoulewan/Desktop/Unity XCode Project/Hero_iOS_20151224 -L/Users/youyoulewan/Desktop/Unity XCode Project/Hero_iOS_20151224/Libraries -F/Users/youyoulewan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzavjwcgmewityensvisnzxcabpn/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath -F/Users/youyoulewan/Desktop/Unity XCode Project/Hero_iOS_20151224/../../../../Shared/Unity/client/Assets/Editor/XUPorter/Mods/Bugly -filelist /Users/youyoulewan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzavjwcgmewityensvisnzxcabpn/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/hero.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -ObjC -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=5.1 -lstdc++ -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -weak_framework GameKit -lz -lc++ -framework Security -framework Bugly -Xlinker -dependency_info -Xlinker /Users/youyoulewan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzavjwcgmewityensvisnzxcabpn/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/hero_dependency_info.dat -o /Users/youyoulewan/Library/Developer/Xcode/DerivedData/Unity-iPhone-gzavjwcgmewityensvisnzxcabpn/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/hero.app/hero

    Undefined symbols for architecture armv7:
      "__BuglySetUserId", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglySetTag", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglySetExtraConfig", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglyReportException", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglyLogMessage", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglyInit", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglyDefaultConfig", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglySetKeyValue", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
      "__BuglyConfigCrashReporterType", referenced from:
          RegisterMonoModules() in RegisterMonoModules.o
    ld: symbol(s) not found for architecture armv7

    clang: error: linker command failed with exit code 1 (use -v to see invocation)


     
     这个编译报错问题是因为定义及实现C函数的静态库libBuglyBridge.a没有集成到Xcode工程导致。

    如果楼主在Unity工程中手动集成iOS 静态库请确保Bugly.framework 和libBuglyBridge.a 都已成功集成,没有的话去下载个libBuglyBridge.a 导入

    建议 楼主使用新版本的Bugly Unity Plugin版本采用XUPorter插件自动集成iOS SDK
     
    完事皆项目,感兴趣可联系我邮箱~hjjuny@163.com
  • 相关阅读:
    什么是蓝绿部署和滚动部署
    北漂--我的2018
    辛苦俩月总结的面试题,掌握它怼翻面试官不是梦~
    记一次项目谈判的失败经历,要拒绝免费开发!
    程序员技术入股的那些坑
    记一次程序员在办公室里的“撕逼”经历
    公司来了个“奇葩”的程序员
    苦逼程序员如何在公司生存的经验分享
    (第二部)程序员逆天改命之胜天半子
    别闹了,颠覆世界不是为了让它变得更糟
  • 原文地址:https://www.cnblogs.com/hjjun/p/7060117.html
Copyright © 2011-2022 走看看