Xamarin iOS開發中的編輯、鏈接、運行

Xamarin iOS開發中的編輯、鏈接、運行

建立好工程後,就能夠單擊Xamarin Studio上方的運行按鈕,如圖1.37所示,對HelloWorld項目進行編輯、鏈接以及運行了。運行效果如圖1.38所示本文選自Xamarin iOS開發實戰大學霸出品spa

1.38  運行效果code

因爲在此HelloWorld的功能中沒有作任何的事情,因此,運行結果是不會產生任何效果的。orm

注意:若是是第一次運行Xamarin Studio的程序,可能會出現以下的錯誤:ci

Error: A valid Xcode installation could not be found. If your copy of Xcode is installed to a non-standard prefix, please specify the location in Xamarin Studio's Preferences under 'SDK Locations'.開發

此錯誤是沒有找到安裝的Xcode,解決此錯誤的步驟以下本文選自Xamarin iOS開發實戰大學霸出品it

1)選擇菜單欄中的Xamarin|Preferences,彈出選項對話框,如圖1.39所示。io

1.39  操做步驟1iOS開發

2)選擇SDK Locations下的Apple選擇,在Apple SDK中單擊「瀏覽」按鈕,找到Xcode的位置,或者直接輸入Xcode的位置,如圖1.40所示。程序

1.40  操做步驟2im

3)單擊「肯定」按鈕,就能夠看到此錯誤就沒有了本文選自Xamarin iOS開發實戰大學霸出品

相關文章
相關標籤/搜索