Bug 3626 - Error compiling to native code in release mode - System.ComponentModel.Win32Exception: ApplicationName='/usr/bin/strip'
Summary: Error compiling to native code in release mode - System.ComponentModel.Win32E...
Status: RESOLVED DUPLICATE of bug 3559
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-02-23 20:45 UTC by siraleigh2012
Modified: 2012-02-24 09:51 UTC (History)
3 users (show)

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

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 DUPLICATE of bug 3559

Description siraleigh2012 2012-02-23 20:45:53 UTC
Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --nomanifest --nosign -dev "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.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" -sdk "5.0" "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.exe"
MonoTouch version 5.2.5 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
Copied /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.exe to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/masterdetail.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/System.Xml.dll
Linking assembly /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.exe into /Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app
MONO_PATH=/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/masterdetail.exe.6.s "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/masterdetail.exe"
MONO_PATH=/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/monotouch.dll.6.s "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/monotouch.dll"
MONO_PATH=/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.dll.6.s "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/System.dll"
MONO_PATH=/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Core.dll.6.s "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/System.Core.dll"
MONO_PATH=/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Xml.dll.6.s "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/System.Xml.dll"
MONO_PATH=/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/mscorlib.dll.6.s "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/mscorlib.dll"
Generated /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/main.m
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/monotouch.dll.6.s -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/monotouch.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/masterdetail.exe.6.s -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/masterdetail.exe.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.dll.6.s -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/mscorlib.dll.6.s -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/mscorlib.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Core.dll.6.s -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Core.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Xml.dll.6.s -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Xml.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/registrar.m -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/registrar.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -c /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/main.m -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/main.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=3.0 -arch armv6  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.dll.6.o  /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/monotouch.dll.6.o  /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Core.dll.6.o  /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/System.Xml.dll.6.o  /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/masterdetail.exe.6.o  /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/mscorlib.dll.6.o  /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/registrar.6.o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/main.6.o -o /var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/masterdetail -framework CFNetwork -framework Foundation -framework MessageUI -framework UIKit -framework AVFoundation -framework CoreGraphics -framework MediaPlayer -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
/usr/bin/dsymutil "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/masterdetail" -o "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app.dSYM"
/usr/bin/strip -s "/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/symbol-file" "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/masterdetail"
error MT0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com
System.ComponentModel.Win32Exception: ApplicationName='/usr/bin/strip', CommandLine='-s "/var/folders/xg/vg9hhtz5141g6jkcjt60t3_00000gn/T/tmp35fc96ad.tmp/symbol-file" "/Users/brokeoldman/Documents/masterdetail/masterdetail/bin/iPhone/Release/masterdetail.app/masterdetail"', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0 
  at MTouch.RunCommand (System.String path, System.String args, System.String[] env) [0x00000] in <filename unknown>:0 
  at MTouch.RunCommand (System.String path, System.String args) [0x00000] in <filename unknown>:0 
  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

---------------------- Done ----------------------

Build: 1 error, 75 warnings
Comment 1 siraleigh2012 2012-02-23 20:53:05 UTC
project builds fine in Debug mode|iPhone, but throws the exception when trying to build in Release|iPhone. Also builds fine when building for simulator (both debug and release mode)
Comment 2 Sebastien Pouliot 2012-02-24 09:51:52 UTC
You'll need to install the (optional) "Command-Line Tools" inside Xcode 4.3 to get the missing tools. Note: this happens on Release build only since we do not `strip` the debug builds.

See: https://bugzilla.xamarin.com/show_bug.cgi?id=3559#c3

*** This bug has been marked as a duplicate of bug 3559 ***