我昨天更新了我的monotouch到最新版本,并使用iOS sdk将Xcode更新为3.2.5以支持iOS SDK 4.2(支持4.2.1的ipod touch)。
我现在在编译设备时遇到问题,'mtouch失败,没有输出(1)'。 我的解决方案在文件夹或项目名称中没有任何空格。
我以前更新了SDK,并成功使用了“Base SDK Missing”问题的建议。
关于'mtouch失败但无输出(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
答案 0 :(得分:1)
右键单击您的项目,然后选择“选项”。在“Build”下有一个名为“iPhone Build”的选项。在“SDK版本”下,确保选择已安装的选项。
例如,当我升级到4.2时,未安装3.2。如果我从Github下载一个针对3.2的示例项目,那么在我修复该选项之前它不会构建。
答案 1 :(得分:1)
似乎存在与之相关的问题 http://forums.monotouch.net/yaf_postst1323.aspx
Monotouch 3.2.2的最新版本似乎有问题 gcc_flags -framework AudioUnit 这会导致错误 ld:找不到框架AudioUnit
发布的解决方案设置了链接选项以打开链接器,编译,然后再次关闭链接器并再次编译。 这适用于一个简单的项目,但不适用于我更复杂的项目。我现在不得不恢复Monotouch 3.1.3。希望这将在下一个版本中修复。 谢谢你的帮助!