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
  • 相关阅读:
    Express本地测试HTTPS
    在 WebStorm 中,配置能够识别 Vue CLI 3 创建的项目的别名 alias
    在线版本的ps
    功能强大的任务日历组件
    tree-shaking实战
    深入diff 算法
    【题解】[SHOI2001] Panda 的烦恼
    【题解】[JLOI2011]不重复数字
    「Codeforces Global Round #10」赛后个人总结
    【题解】[SCOI2004] 文本的输入
  • 原文地址:https://www.cnblogs.com/hjjun/p/7060117.html
Copyright © 2011-2022 走看看