jma*_*yor 7 xcode xamarin.ios xamarin visual-studio-2017
我正在尝试从Windows PC在Visual Studio中编译Xamarin IOS解决方案,但是我收到以下错误2> C:\ Program Files(x86)\ Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS .Common.targets(624,3):错误:找不到SDK bin目录
我已经在线查看了xCode的默认路径,一切正常.我将mac上的xCode更新为10.0版
这是失败的IOS.Common.targets上的行
<DetectSdkLocations
SessionId="$(BuildSessionId)"
Condition="'$(IsMacEnabled)' == 'true'"
SdkVersion="$(MtouchSdkVersion)"
TargetFrameworkIdentifier="$(TargetFrameworkIdentifier)"
TargetArchitectures="$(TargetArchitectures)"
>
<Output TaskParameter="SdkVersion" PropertyName="MtouchSdkVersion" />
<Output TaskParameter="SdkRoot" PropertyName="_SdkRoot" />
<Output TaskParameter="SdkBinPath" PropertyName="_SdkBinPath" />
<Output TaskParameter="SdkDevPath" PropertyName="_SdkDevPath" />
<Output TaskParameter="SdkUsrPath" PropertyName="_SdkUsrPath" />
<Output TaskParameter="SdkPlatform" PropertyName="_SdkPlatform" />
<Output TaskParameter="SdkIsSimulator" PropertyName="_SdkIsSimulator" />
<Output TaskParameter="IsXcode8" PropertyName="_IsXcode8" />
</DetectSdkLocations>
Run Code Online (Sandbox Code Playgroud)
更新: 截至2018年9月20日,Visual Studio 15.8.5版已发布,其中包含对XCode 10的官方Xamarin支持.
编辑: 一位同事报告说,对他来说,启动XCode 10并等待它完成升级配置,使他能够正常构建Xamarin iOS项目.我在回滚之前尝试过这个并且没有运气,但也许是YMMV.关于回滚到下面9.4.1的原始答案.
我尝试了很多不同的方法.在我接受XCode 10更新后,Xamarin构建立即开始失败.在尝试了其他一些事情后,有效的事情就是将XCode回滚到9.4.1.
您可以通过从应用程序中删除应用程序然后从Apple开发人员站点下载9.4.1来回滚XCode,如本答案所示.
当我查看时,我已经安装了 Visual Studio 2017 v15.7.2,因此从https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes下载最新的 15.8.4
解决了我的问题,我重新运行 IOS在我的 Windows PC 上使用 Visual Studio 编译应用程序,Mac 上安装了 Xcode 10。
感谢 LucasZ 提供的链接,我尝试安装 Alpha,但在尝试时它警告我没有最新的 Visual Studio,这就是我安装 v15.8.4 的方法
| 归档时间: |
|
| 查看次数: |
4881 次 |
| 最近记录: |