【发布时间】:2020-10-21 20:23:21
【问题描述】:
所以我的 ios 项目使用 ad-hoc|iphone 配置构建得很好。我能够在调试模式下针对模拟器运行。我遇到的问题是当我尝试归档项目时出现以下错误:
Severity Code Description Project File Line Suppression State
Error The OutputPath property is not set for project 'arnBooking.iOS.csproj'. Please check to
make sure that you have specified a valid combination of Configuration and Platform for this project.
Configuration='Ad-Hoc' Platform='iPhoneSimulator'. This error may also appear if some other project
is trying to follow a project-to-project reference to this project, this project has been unloaded or
is not included in the solution, and the referencing project does not build using the same or an
equivalent Configuration or Platform. arnBooking.iOS
我查看了我的项目属性,调试是针对 iPhoneSimulator 构建的唯一配置,也是唯一将模拟器作为其输出路径的配置。我试图弄清楚为什么归档文件的构建配置与正常构建不同。
有人遇到过这种情况吗?
我正在使用 Visual Studio Community 2019 版本 16.7.5
【问题讨论】:
-
...Configuration='Ad-Hoc' Platform='iPhoneSimulator'...:不确定这是否是错误,但您的平台设置为(?)因为您无法为模拟器构建版本。 -
@SushiHangover 澄清构建工作正常。我只得到这个错误,为什么我要构建->存档。 buld 设置为 adhoc|iphone
-
奇怪的是错误将
iPhoneSimulator声明为平台,因此OutputPath property is not set for project失败,您是否检查过这是否是一个已知问题?仅供参考:构建/归档正在对项目进行完整构建(或在这种情况下尝试) -
奇怪的是,所以我提出这个问题。我已经检查但没有找到任何结果
-
我更新了 Visual Studio 并重新启动了机器。但是当我从命令行运行显式设置输出路径时仍然看到问题。
标签: ios visual-studio xamarin