Bug 6998 - Error MT5202: Native linking failed. Please review the build log. (MT5202) (OneGlobal.iPhone)
Summary: Error MT5202: Native linking failed. Please review the build log. (MT5202) (O...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.4.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
: 8322 10685 12276 ()
Depends on:
Blocks:
 
Reported: 2012-09-07 16:17 UTC by Gustavo
Modified: 2013-07-22 10:42 UTC (History)
10 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test.sh (507 bytes, application/octet-stream)
2012-09-18 05:05 UTC, Rolf Bjarne Kvinge [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Gustavo 2012-09-07 16:17:28 UTC
When trying to build for distribution for iOS 6 i'm getting this error, but when building and using the simulator, all is working ok.

What should i do ?

Thanks
Comment 1 Sebastien Pouliot 2012-09-13 16:02:03 UTC
Something went wrong and the details are in your build output. We'll need to see it in order to be able to help you.

You can find it inside MonoDevelop's Error List pad, in the Build Output (right). To be really useful start by adding "-v -v -v" to your Project Options, under "iPhone Build", in the "Additional mtouch arguments". Then clean your solution and rebuild it. The resulting build output will have more details about every step, including where it fails. Please attach it to the bug report (you can mark it private if you like).
Comment 3 Sebastien Pouliot 2012-09-14 10:04:07 UTC
Thanks for the extra details.

> collect2: ld terminated with signal 6 [Abort trap: 6]
> ld(33944,0x7fff7b993960) malloc: *** error for object 0x7fbe9b661270: pointer
> being freed was not allocated

^ this is Apple `ld` (native linker) tool crashing.

We have seen a few reports of this during the beta testing of iOS6. As far as we know this is fixed in the Xcode 4.5 GM release [1], i.e. at least we're sure the issue does not occurs on those projects (but we can't be sure if it's totally fixed).

From the logs:

> /Applications/Xcode45-DP4.app/

it seems you're still using DP4 (the previous version) where we know the issue still existed.

Can you update to MonoTouch 5.99.4 and Xcode 4.5 GM / iOS6 GM and see if this is really fixed ?



[1] which is the one you must use if you want Apple to accept the application on the AppStore (it's also the latest version and should be identical to what will be publicly available next week).
Comment 4 Adam Lonsdale 2012-09-15 10:54:26 UTC
Hello, 

I am on Xcode 4.5 (1839) and MonoTouch 5.4.0 Release ID 30004006 and am getting this problem. Is this expected?
Comment 5 Sebastien Pouliot 2012-09-15 11:27:41 UTC
Adam, did you start Xcode and allow it to update it's device libraries (first) and update it's "Command-line tools" ?
Comment 6 Adam Lonsdale 2012-09-15 15:29:39 UTC
Hello, This was a new installation of Xcode and MonoTouch (purchased last night) so I assume I wouldn't need to update things?
Comment 7 Sebastien Pouliot 2012-09-15 19:28:30 UTC
Adam, can you share the project with us ? So far we have not been able to reproduce the issue (it's very uncommon) to see what's going on and could not fill a bug with Apple (`ld` should not crash like this, whatever the reason).
Comment 8 Rolf Bjarne Kvinge [MSFT] 2012-09-18 05:05:22 UTC
Created attachment 2563 [details]
test.sh

I just ran into this today and managed to narrow it down a bit.

Attached is a shell script that reproduces the crash for me (there is no reference to MonoTouch in the script, so this crash is not caused by MonoTouch) - in fact there is only a single line of code compiled, the main function.
Comment 9 Rolf Bjarne Kvinge [MSFT] 2012-09-18 05:40:56 UTC
It is a bug in Apple's tool chain, I've filed a bug with them (12318665).

The following must be true for this to happen:
a) Deployment Target = 6.0
b) Linking with CoreFoundation.framework.

Obviously it's easier to workaround a) than b) (just change Deployment Target to 5.1 for instance and the project will compile).

Note that it seems to be possible to use values that don't exist for Deployment Target, so you can even set it to something like 5.2 and it will compile, and effectively only run on iOS 6.

Sebastien, maybe we could detect this condition and show a better error message than MT5202 when it happens?
Comment 10 Sebastien Pouliot 2012-09-18 10:57:50 UTC
Great catch! and I do not think we need a better error message :-) because we do not have to explicitly link CoreFoundation (like we do) since it will be implicitly linked by other frameworks that are required to build any iOS app.

That should solve the issue for most cases (unless [LinkWith] is used and specify this framework).
Comment 11 Sebastien Pouliot 2012-09-18 11:01:32 UTC
Fixed in ios6: 8210eb47ef738ca8c11125c754df3efb85d16a7c

The upcoming MT 6.0 will have this fix.
Comment 12 Lx Nickel 2012-09-20 05:32:39 UTC
Sorry i don't get this.

i use iOS 6 SDK (i hope to copy it next to the 5 SDK is enough)
i use MT 6.0.0 and get evertime i try to build this error.
Simulator works fine, just the Hardware doesn't

the iPad has iOS6 and the Deveopment Target is 6.0
and sorry i have no clue what you mean with, "linking the CoreFoundation directly". =/
Comment 13 Rolf Bjarne Kvinge [MSFT] 2012-09-20 05:49:48 UTC
Try to set Development Target to 5.1 to see if that works.
Comment 14 Lx Nickel 2012-09-20 06:35:54 UTC
hmm maybe because i just have the 5.0 target where do i get the 5.1? i can't find it in the iOS Dev Center since our admin enabled iOS 6
Comment 15 Rolf Bjarne Kvinge [MSFT] 2012-09-20 06:42:19 UTC
Do you get this exact message in the build output? If not, please create a new bug since it's not the same issue.

collect2: ld terminated with signal 6 [Abort trap: 6]
Comment 16 Lx Nickel 2012-09-20 06:44:52 UTC
Process exited with code 1, command:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc  -Wl,-no_pie  -miphoneos-version-min=5.0 -gdwarf-2  -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk  /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/Ade.Components.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/SourceExtension.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/Ade.ComponentsImpl.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/Ade.Ios.Util.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/System.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/System.Xml.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/Ade.OnlineImpl.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/Ade.Online.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/System.Core.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/monotouch.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/mscorlib.dll.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/iOSAFTest.exe.7.o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/Mono.Security.dll.7.o /Users/lx.nickel/hsowl-svn/kw-mono/02-Sources/Projektstand_010512/Remoting_clearProjekts/iOSAFTest/obj/Debug/mtouch-cache/main.7.cache.DqursAAta90vN8x803k3e3w3MLA=.o /Users/lx.nickel/hsowl-svn/kw-mono/02-Sources/Projektstand_010512/Remoting_clearProjekts/iOSAFTest/obj/Debug/mtouch-cache/registrar.7.cache.rgslEpuMoByTr1BM49siodynWZM=.o -o /var/folders/my/2l35w1wn41j41sh5950zqjdc0000gp/T/tmp7c2a775d.tmp/iOSAFTest -framework CFNetwork -framework AssetsLibrary -framework Accounts -framework CoreBluetooth -framework CoreTelephony -framework EventKit -framework EventKitUI -framework Foundation -framework CoreMotion -framework GameKit -framework GLKit -framework iAd -framework MapKit -framework MediaPlayer -framework MessageUI -framework NewsstandKit -framework OpenGLES -framework StoreKit -framework Twitter -framework UIKit -framework AddressBookUI -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AVFoundation -framework QuartzCore -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreText -framework ImageIO -framework MobileCoreServices -framework Security -framework CoreData -framework CoreMedia -framework CoreMIDI -framework CoreVideo -framework ExternalAccessory -framework QuickLook -weak_framework MediaToolbox -weak_framework Social -weak_framework PassKit -weak_framework AdSupport -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip
Undefined symbols for architecture armv7:
  "_get_bundled_machine_config", referenced from:
      wrapper_managed_to_native_System_Configuration_DefaultConfig_get_bundled_machine_config in SourceExtension.dll.7.o
      wrapper_managed_to_native_System_Configuration_InternalConfigurationHost_get_bundled_machine_config in SourceExtension.dll.7.o
  "_get_bundled_app_config", referenced from:
      wrapper_managed_to_native_System_Configuration_InternalConfigurationHost_get_bundled_app_config in SourceExtension.dll.7.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status

error MT5202: Native linking failed. Please review the build log.



these are the last few lines from the output.

maybe i missing some other issue =/
Comment 17 Rolf Bjarne Kvinge [MSFT] 2012-09-20 06:50:56 UTC
Yes, this is a different issue, please open a new bug report for it.
Comment 18 Lx Nickel 2012-09-20 06:54:32 UTC
ok thx, and sorry to bother here :)
Comment 19 Sebastien Pouliot 2012-11-12 13:50:33 UTC
*** Bug 8322 has been marked as a duplicate of this bug. ***
Comment 20 Dorababu 2012-11-27 02:30:26 UTC
Native linking failed. Please review the build log. (MT5202)

i am also facing same problem  

my monodeveloper versions are 

MonoDevelop 3.0.4.7
Installation UUID: d9012fd4-f121-4a57-839d-50ccdf232e64
Runtime:
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Apple Developer Tools:
	 Xcode 4.5 (1817)
	 Build 4G78z
Mono for Android: 4.2.7
Android SDK: Not found

Monotouch: 6.0.6 (Evaluation)
Build information:
	Release ID: 30004007
	Git revision: ea0108260c6a376ecaeffcdb7d03387bd51edda3
	Build date: 2012-09-17 14:09:17+0000
	Xamarin addins: ec43fd5cb223ead4234a9858d1b56eef03dad53a-dirty
Operating System:
	Mac OS X 10.7.5
	Darwin Ravi-Chandras-iMac.local 11.4.2 Darwin Kernel Version 11.4.2
	    Thu Aug 23 16:25:48 PDT 2012
	    root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Comment 21 Rolf Bjarne Kvinge [MSFT] 2012-11-27 03:36:50 UTC
Dorababu, can you provide the entire build output? Most likely you're running into a different issue (but the same error message).
Comment 22 Dorababu 2012-11-27 03:51:49 UTC
Compiling to native code
/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 version 6.0.6 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk
Copied /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.exe to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/sample.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Xml.dll
Copied /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.tmp/Facebook.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/Facebook.dll
Copied /Users/ravichandra/Downloads/monotouch-bindings-master/ATMHud/sample/MonoTouch.Dialog.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/MonoTouch.Dialog.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Web.Services.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Web.Services.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Json.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Json.dll
Generated /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.tmp/main.i386.m
/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=3.0 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk  /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/obj/Debug/mtouch-cache/main..i386.cache.3dylwcKbXwCEN3YQuQ4AkA8teDE=.o -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.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 NewsstandKit -weak_framework Twitter -weak_framework PassKit -weak_framework CoreImage -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/tmp3a651ba9.tmp/libFacebookSDK.a -ObjC -lsqlite3
Process exited with code 1, command:
/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=3.0 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk  /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/obj/Debug/mtouch-cache/main..i386.cache.3dylwcKbXwCEN3YQuQ4AkA8teDE=.o -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.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 NewsstandKit -weak_framework Twitter -weak_framework PassKit -weak_framework CoreImage -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/tmp3a651ba9.tmp/libFacebookSDK.a -ObjC -lsqlite3
ld: framework not found AdSupport
collect2: ld returned 1 exit status

error MT5202: Native linking failed. Please review the build log.

---------------------- Done ----------------------
Comment 23 Dorababu 2012-11-27 03:55:23 UTC
Compiling to native code
/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 version 6.0.6 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk
Copied /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.exe to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/sample.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Xml.dll
Copied /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.tmp/Facebook.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/Facebook.dll
Copied /Users/ravichandra/Downloads/monotouch-bindings-master/ATMHud/sample/MonoTouch.Dialog.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/MonoTouch.Dialog.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Web.Services.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Web.Services.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Json.dll to /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/bin/iPhoneSimulator/Debug/sample.app/System.Json.dll
Generated /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.tmp/main.i386.m
/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=3.0 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk  /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/obj/Debug/mtouch-cache/main..i386.cache.3dylwcKbXwCEN3YQuQ4AkA8teDE=.o -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.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 NewsstandKit -weak_framework Twitter -weak_framework PassKit -weak_framework CoreImage -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/tmp3a651ba9.tmp/libFacebookSDK.a -ObjC -lsqlite3
Process exited with code 1, command:
/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=3.0 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk  /Users/ravichandra/Downloads/monotouch-bindings-master/facebook/sample/obj/Debug/mtouch-cache/main..i386.cache.3dylwcKbXwCEN3YQuQ4AkA8teDE=.o -o /var/folders/w9/w_xlv4x54j97t8kpzlq2531h0000gn/T/tmp3a651ba9.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 NewsstandKit -weak_framework Twitter -weak_framework PassKit -weak_framework CoreImage -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/tmp3a651ba9.tmp/libFacebookSDK.a -ObjC -lsqlite3
ld: framework not found AdSupport
collect2: ld returned 1 exit status

error MT5202: Native linking failed. Please review the build log.

---------------------- Done ----------------------
Comment 24 Rolf Bjarne Kvinge [MSFT] 2012-11-27 03:58:56 UTC
Dorababu, that looks very strange, you should have the AdSupport framework.

Do you have this file on your system: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks/AdSupport.framework/AdSupport ?
Comment 25 Dorababu 2012-11-27 04:07:38 UTC
ya   but i found upto  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks     only .
Comment 26 Dorababu 2012-11-27 04:09:05 UTC
I am using Xcode 4.5DP  is this problem ?
Comment 27 Rolf Bjarne Kvinge [MSFT] 2012-11-27 04:10:18 UTC
I found it: the reason is you have an old Xcode version installed (the AdSupport framework wasn't added until one of the last Developer Previews) - if you update your Xcode to the latest stable version it should work.
Comment 28 Dorababu 2012-11-27 04:17:22 UTC
did you men Xcode 4.5.1
Comment 29 Rolf Bjarne Kvinge [MSFT] 2012-11-27 04:18:30 UTC
Any stable 4.5.* - 4.5.1 would do just fine).
Comment 30 Dorababu 2012-11-27 04:29:19 UTC
Ok thank you very much  Rolf Bjarne Kvinge  
 i am just doenloading the xcode after updated i will check weather it will going to work or not.
Comment 31 Rolf Bjarne Kvinge [MSFT] 2013-05-20 07:53:26 UTC
*** Bug 12276 has been marked as a duplicate of this bug. ***
Comment 32 Rolf Bjarne Kvinge [MSFT] 2013-07-22 10:42:53 UTC
*** Bug 10685 has been marked as a duplicate of this bug. ***