【问题标题】:Xamarin archive build fails for ios adhoc distributionios adhoc 分发的 Xamarin 存档构建失败
【发布时间】: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


【解决方案1】:

这一定是由 Visual Studio 缓存或其他原因引起的。清理后,手动删除 bin 和 obj 文件夹,然后重新启动我的机器和 mac 就可以了。我想只是 Xamarin 是它一贯挑剔的自我

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-20
    • 2020-05-05
    • 1970-01-01
    • 2019-08-02
    • 1970-01-01
    • 2019-02-22
    相关资源
    最近更新 更多