"__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
 

转载于:https://www.cnblogs.com/hjjun/p/7060117.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值