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:
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 导入
如果楼主在Unity工程中手动集成iOS 静态库,请确保Bugly.framework 和libBuglyBridge.a 都已成功集成,没有的话去下载个libBuglyBridge.a 导入
建议 楼主使用新版本的Bugly Unity Plugin版本,采用XUPorter插件自动集成iOS SDK