2013-12-12 22 views
0

我有一個很大的問題。 我是ios應用程序領域的新客戶,我正在嘗試與Xamarin Studio合作。 這是在我的ios設備上開始調試後的輸出錯誤:iphone ios 7.0.4。 Monotouch 5.0.1和Xamarin版本4.0.5 有人可以幫助我? ios模擬器運行正常(調試和發佈模式),但我無法在我的iphone上部署應用程序。單點觸控錯誤:mtouch退出並顯示代碼1

這裏使用iPhone Simulator 7.0編譯輸出。 試圖自己解決這個問題我已經使情況變得更糟,現在我也無法使用模擬器進行調試。

Performing main compilation... 
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/Blumotix/Projects/HelloWorld/HelloWorld/bin/iPhoneSimulator/Debug/HelloWorld.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 /debug:full /optimize- /codepage:utf8 "/define:DEBUG;__MOBILE__;__IOS__" /t:exe "/Users/Blumotix/Projects/HelloWorld/HelloWorld/Main.cs" "/Users/Blumotix/Projects/HelloWorld/HelloWorld/AppDelegate.cs" "/Users/Blumotix/Projects/HelloWorld/HelloWorld/HelloWorldViewController.cs" "/Users/Blumotix/Projects/HelloWorld/HelloWorld/HelloWorldViewController.designer.cs" 
Generazione completata -- 0 errori, 0 avvisi 

Compiling to native code 
/Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -sim "/Users/Blumotix/Projects/HelloWorld/HelloWorld/bin/iPhoneSimulator/Debug/HelloWorld.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" -debug -nolink -sdk "7.0" "/Users/Blumotix/Projects/HelloWorld/HelloWorld/bin/iPhoneSimulator/Debug/HelloWorld.exe" 
Framework does not exist /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk 
    Platform = iPhoneSimulator 
    SDK = 7.0 
    Deployment Version: 3.0 
Framework is: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk 

Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/SDKSettings.plist". 
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) 
    at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String& absoluteUriString) [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.PeekChar() [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.ReadContent() [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.Read() [0x00000] in <filename unknown>:0 
    at System.Xml.XmlTextReader.Read() [0x00000] in <filename unknown>:0 
    at Mono.Xml.EntityResolvingXmlReader.Read() [0x00000] in <filename unknown>:0 
    at Mono.Xml.DTDValidatingReader.ReadContent() [0x00000] in <filename unknown>:0 
    at Mono.Xml.DTDValidatingReader.Read() [0x00000] in <filename unknown>:0 
    at Mono.Xml.Schema.XsdValidatingReader.Read() [0x00000] in <filename unknown>:0 
    at System.Xml.XmlValidatingReader.Read() [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in <filename unknown>:0 
    at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/SDKSettings.plist". 
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) 
    at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String& absoluteUriString) [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.PeekChar() [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.ReadContent() [0x00000] in <filename unknown>:0 
    at Mono.Xml2.XmlTextReader.Read() [0x00000] in <filename unknown>:0 
    at System.Xml.XmlTextReader.Read() [0x00000] in <filename unknown>:0 
    at Mono.Xml.EntityResolvingXmlReader.Read() [0x00000] in <filename unknown>:0 
    at Mono.Xml.DTDValidatingReader.ReadContent() [0x00000] in <filename unknown>:0 
    at Mono.Xml.DTDValidatingReader.Read() [0x00000] in <filename unknown>:0 
    at Mono.Xml.Schema.XsdValidatingReader.Read() [0x00000] in <filename unknown>:0 
    at System.Xml.XmlValidatingReader.Read() [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0 
    at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in <filename unknown>:0 
    at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 
mtouch exited with code 1 

謝謝。 E.

+0

請提供完整的構建輸出(單擊錯誤墊中的* Build Output *以查看它)。 –

+0

我編輯了錯誤輸出的問題。希望它會很好:我不到10分,所以我不能在我的問題上回答8個小時。謝謝。 – blumotix

+0

您安裝了哪個版本的Xcode並在哪裏安裝? –

回答

1

這是因爲MonoTouch 5.0.1太老了 - 它是在2年前發佈的。

自發布以來,蘋果改變了它的一些.plist文件的格式:從XML到二進制格式。

您需要更新到Xamarin.iOS(MonoTouch的新名稱)的更新版本,該版本將以二進制方式處理這些文件。由於您使用的是最新的Xcode,我建議您使用最新的Xamarin.iOS版本(當前爲7.0.x)。

+0

感謝poupou。所以假設如果我將Xcode降級到以前的版本(第4系列),我可以使用Monotouch 5.0.1調試我的應用程序,是否正確?其次,Monotouch 5.0.1是否適合用於調試iOS7設備? – blumotix

+0

**(a)**使用舊的Xcode可以工作(只要您的操作系統支持舊版本),但我不記得哪個Xcode版本改變了這一點(但您可以查看Xamarin.iOS發行說明來查找) 。 **(b)**調試*應該*工作,但它不是我嘗試過自己的版本組合,所以YMMV。 – poupou

相關問題