简体   繁体   English

Xamarin.iOS错误:未安装Apple iOS SDK。 (iOS9,XCode 7 Beta)

[英]Xamarin.iOS Error: The Apple iOS SDK is not installed. (iOS9, XCode 7 beta)

I have installed XCode 7 beta, Xamarin.iOS 8.99.4 and Xamarin Studio 5.9 on Mac OSX 10.10.5. 我已经在Mac OSX 10.10.5上安装了XCode 7 beta,Xamarin.iOS 8.99.4和Xamarin Studio 5.9。

I refer this article. 我参考这篇文章。 https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/ . https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/

If I debug/run a Xamarin.iOS app on iOS Simulator (iOS9), it works well. 如果我在iOS Simulator(iOS9)上调试/运行Xamarin.iOS应用程序,它将很好地工作。

But when I debug/run it on my iPhone5s device (iOS9), Xamarin shows this error message. 但是,当我在iPhone5s设备(iOS9)上调试/运行它时,Xamarin会显示此错误消息。

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: The Apple iOS SDK is not installed. (ex33.iOS)

The "Build Output" window show following message. “ Build Output”窗口显示以下消息。

__________________________________________________
Project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj" (Build target(s)):

    Target PrepareForBuild:
        Configuration: Debug Platform: iPhone

    Target _DetectAppManifest:
        FindItemWithLogicalName Task
          Items:
            Info.plist
            Entitlements.plist
            packages.config
          LogicalName: Info.plist
          ProjectDir: /Users/username/Projects/ex33/iOS
          ResourcePrefix: Resources

    Target _DetectSdkLocations:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : The Apple iOS SDK is not installed.
        DetectSdkLocations Task
          TargetFrameworkIdentifier: Xamarin.iOS
          TargetArchitectures: ARMv7, ARM64
          SdkVersion: <null>
          XamarinSdkRoot: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
          SdkRoot: <null>
          SdkDevPath: /Applications/Xcode-beta.app/Contents/Developer
          SdkUsrPath: <null>
          SdkPlatform: <null>
          SdkIsSimulator: False
    Task "DetectSdkLocations" execution -- FAILED
    Done building target "_DetectSdkLocations" in project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj".-- FAILED

Done building project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj".-- FAILED

Build FAILED.
Errors:

/Users/username/Projects/ex33/iOS/ex33.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_DetectSdkLocations target) ->

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : The Apple iOS SDK is not installed.

     0 Warning(s)
     1 Error(s)


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

What can I do? 我能做什么?

PS When I debug/run a app in XCode 7 beta, it works on my iPhone well. PS当我在XCode 7 beta中调试/运行一个应用程序时,它在我的iPhone上运行良好。

Check the preferences in Xamarin Studio.. you may need to change the Apple SDK path to point to the Beta location. 检查Xamarin Studio中的首选项。您可能需要更改Apple SDK路径以指向Beta位置。

By default, it should be looking in the default location, but that will only be present if you have the General Release (non Beta) Xcode and iOS SDK installed too. 默认情况下,它应该在默认位置查找,但是只有在您同时安装了通用发行版(非Beta版)Xcode和iOS SDK的情况下,它才会出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM