3

我收到以下错误......

错误 MT5202:本机链接失败。请查看构建日志。(MT5202)。

编译为本机代码 /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache "/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample /obj/Debug/mtouch-cache" --nomanifest --nosign -sim "/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app" -r "/Developer /MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono /2.1/System.Core.dll"-r"/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"-r"/Users/ravichandra/Downloads/monotouch-bindings-master/ATMHud/sample/MonoTouch .Dialog.dll" -r "/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/binding/Facebook.dll”-r“/Developer/MonoTouch/usr/lib/mono/2.1/System.Json.dll”-r“/Developer/MonoTouch/usr/lib/mono/2.1/System.Web.Services.dll”-debug -profiling -nolink -sdk "6.0" "/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.exe" MonoTouch 版本 6.0.0 使用框架:/Applications/Xcode。 app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk 已复制 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.exe 到 /用户/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/sample.exe 已复制/Developer/MonoTouch/usr/lib/mono/2.1/monotouch。dll 到 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/monotouch.dll 复制 /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll 到/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/mscorlib.dll 已复制 /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll 到/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Core.dll 已复制 /Developer/MonoTouch/usr/lib/mono/2.1/System.dll 到/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.dll 已复制 /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll 到/Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/Mono。Security.dll 复制 /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll 到 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/ System.Xml.dll 已将 /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/Facebook.dll 复制到 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample。 app/Facebook.dll 复制 /Users/ravichandra/Downloads/monotouch-bindings-master/ATMHud/sample/MonoTouch.Dialog.dll 到 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/ Debug/sample.app/MonoTouch.Dialog.dll 复制 /Developer/MonoTouch/usr/lib/mono/2.1/System.Web.Services.dll 到 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/ bin/iPhoneSimulator/Debug/sample.app/System.Web.Services。dll 将 /Developer/MonoTouch/usr/lib/mono/2.1/System.Json.dll 复制到 /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System。 Json.dll 生成 /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/main.m /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386 - gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=6.0 -arch i386 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -c /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/main.m -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/main.x86.o /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -Wl,-no_pie -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version- min=6.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/main.x86。 o -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c。tmp/sample -framework CFNetwork -framework Foundation -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AVFoundation -framework QuartzCore -framework CoreGraphics -framework CoreLocation -framework MobileCoreServices -framework Security -framework CoreData -framework ExternalAccessory -framework Accounts -framework Social -weak_framework AssetsLibrary -weak_framework CoreBluetooth -weak_framework CoreTelephony -weak_framework EventKit -weak_framework EventKitUI -weak_framework CoreMotion -weak_framework GLKit -weak_framework iAd -weak_framework MediaToolbox - weak_framework NewsstandKit -weak_framework Twitter -weak_framework PassKit -weak_frameworkCoreImage -weak_framework CoreText -weak_framework ImageIO -weak_framework CoreMedia -weak_framework CoreMIDI -weak_framework CoreVideo -weak_framework AdSupport -weak_framework QuickLook -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u _catch_exception_raise -force_load /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/libFacebookSDK.a -ObjC -lsqlite3 进程退出,代码为 1 ,命令:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -Wl,-no_pie -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-版本=2 -miphoneos-version-min=6.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator。平台/开发者/SDKs/iPhoneSimulator6.0.sdk /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/main.x86.o -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h00058/T/tmp658.tmp/sample -framework CFNetwork -framework Foundation -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AVFoundation -framework QuartzCore -framework CoreGraphics -framework CoreLocation -framework MobileCoreServices -framework Security -framework CoreData -framework ExternalAccessory -framework Accounts -framework Social -weak_framework AssetsLibrary -weak_framework CoreBluetooth -weak_framework CoreTelephony -weak_framework EventKit -weak_framework EventKitUI -weak_framework CoreMotion -weak_framework GLKit -weak_framework iAd -weak_framework MediaToolbox - weak_framework NewsstandKit -weak_framework Twitter -weak_framework PassKit -weak_frameworkCoreImage -weak_framework CoreText -weak_framework ImageIO -weak_framework CoreMedia -weak_framework CoreMIDI -weak_framework CoreVideo -weak_framework AdSupport -weak_framework QuickLook -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u _catch_exception_raise -force_load /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp658e855c.tmp/libFacebookSDK.a -ObjC -lsqlite3 ld:找不到框架AdSupport collect2: ld 返回 1 退出状态ld 返回 1 个退出状态ld 返回 1 个退出状态找不到框架 AdSupport collect2: ld 返回 1 退出状态找不到框架 AdSupport collect2: ld 返回 1 退出状态

错误 MT5202:本机链接失败。请查看构建日志。

4

2 回答 2

2
ld: framework not found AdSupport collect2: ld returned 1 exit status

您需要更新的 Xcode 版本(任何稳定的 4.5 版本 - 不是开发者预览版),您拥有的版本不包含 AdSupport 框架。

于 2012-11-27T09:31:56.783 回答
2

错误 MT5202:本机链接失败。请查看构建日志。(MT5202)。

MonoTouch 告诉您本机链接器不满意。构建日志中提供了详细信息(您可以从 MonoDevelop 的错误列表面板中查看,单击构建输出按钮)。

遗憾的是,不发布构建日志并没有多大帮助。您可以编辑您的问题并在 MT5202 之前添加输出的一些错误/警告行吗?

一个快速的猜测是绑定只使用 ARMv6二进制文件,而 Xcode 4.5(及更高版本)将允许您生成 ARMv7(和 ARMv7s)二进制文件。解决此问题需要更新的绑定(使用 ARMv7 的二进制文件编译)或使用允许构建 ARMv6 二进制文件的 Xcode 4.4 / iOS5.1 SDK。

于 2012-11-26T19:43:28.163 回答