【问题标题】:monotouch 'mtouch failed with no output (1)'monotouch 'mtouch 失败,无输出 (1)'
【发布时间】:2011-05-24 17:54:58
【问题描述】:

我昨天将我的 monotouch 更新到最新版本,并使用 iOS sdk 将 Xcode 更新到 3.2.5 以支持 iOS SDK 4.2(以支持 4.2.1 的 ipod touch)。

我现在在为设备编译时遇到问题,'mtouch failed with no output (1)'。 我的解决方案在文件夹或项目名称中都没有空格。

我过去更新了 SDK,并成功使用了“Base SDK Missing”问题的建议。

所有关于“mtouch failed with no output (1)”的在线建议都涉及项目/文件夹名称中的空格。我什至尝试使用 monotouch 创建一个新的琐碎项目,但仍然遇到这个问题。

有什么想法吗?

Building: TestNewVersion (Release|iPhone)

Building Solution TestNewVersion

Building: TestNewVersion (Release|iPhone)

Detecting signing identity...
Provisioning profile: "Team Provisioning Profile: *" (XXXXXX)
Signing Identity: "iPhone Developer: MyName (XXXXXX)"
App ID: "XXXX.testnewversion"

Performing main compilation...

Updating CodeBehind files
Updated MainWindow.xib.designer.cs
Updated RootViewController.xib.designer.cs
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.exe" "/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" /nologo /warn:4 /optimize- /codepage:utf8 /t:exe "/Users/MyName/Projects/TestNewVersion/TestNewVersion/Main.cs" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/MainWindow.xib.designer.cs" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/RootViewController.xib.cs" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/RootViewController.xib.designer.cs" 
Compilation succeeded - 1 warning(s)

/Users/MyName/Projects/TestNewVersion/TestNewVersion/RootViewController.xib.cs(75,44): warning CS0414: The private field `TestNewVersion.RootViewController.DataSource.controller' is assigned but its value is never used


Build complete -- 0 errors, 1 warning

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch  -v --nomanifest --nosign -dev "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.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" -nolink -sdk="4.2" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.exe"
Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
Copied /Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.exe to /Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/TestNewVersion.exe
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/TestNewVersion.exe"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/mscorlib.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/monotouch.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/System.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/Mono.Security.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/System.Core.dll"
Generated /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.m
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.m -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.o 
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/registrar.m -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.o -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion -framework CFNetwork -framework AssetsLibrary -framework CoreTelephony -framework EventKit -framework Foundation -framework CoreMotion -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework iAd -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AudioUnit -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework Security -framework CoreMedia -framework ExternalAccessory -framework EventKitUI -framework QuickLook -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip
Process exited with code 1, command:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/registrar.m -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.o -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion -framework CFNetwork -framework AssetsLibrary -framework CoreTelephony -framework EventKit -framework Foundation -framework CoreMotion -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework iAd -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AudioUnit -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework Security -framework CoreMedia -framework ExternalAccessory -framework EventKitUI -framework QuickLook -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip

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

Build: 1 error, 2 warnings

【问题讨论】:

  • 将“额外参数”设置为“-v -v -v”并发布完整的构建输出。

标签: xamarin.ios


【解决方案1】:

右键单击您的项目并选择“选项”。在“Build”下有一个名为“iPhone Build”的选项。在“SDK 版本”下,确保选择已安装的选项。

例如,当我升级到 4.2 时,没有安装 3.2。如果我从 Github 下载一个针对 3.2 的示例项目,在我修复该选项之前它不会构建。

【讨论】:

  • 您好,我已经确认“SDK 版本”设置为 4.2。 (选择是“默认”和 4.2。我都试过了。)我只能为模拟器构建,不能为设备构建。
【解决方案2】:

好像有问题 http://forums.monotouch.net/yaf_postst1323.aspx

最新版的 Monotouch 3.2.2 好像有问题 gcc_flags -framework AudioUnit 导致错误 ld:未找到 AudioUnit 框架

发布的解决方案将链接选项设置为打开链接器,编译,然后再次关闭链接器并再次编译。 这适用于一个琐碎的项目,但不适用于我更复杂的项目。我现在不得不恢复到 Monotouch 3.1.3。希望这将在下一个版本中得到修复。 感谢您的帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-15
    • 2011-01-11
    • 2013-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多