【问题标题】:Visual Studio 2022 cannot archive an iOS AppVisual Studio 2022 无法存档 iOS 应用程序
【发布时间】:2022-12-15 00:58:47
【问题描述】:

我正在尝试在 Visual Studio 中存档 iOS 应用程序。该应用程序之前可以运行,但开发人员和分发证书已过期。我通过 Visual Studio for Windows 中的界面创建了新证书。据我所知,当我自动配置时,它会找到正确的证书。它将在本地 iPhone 上正常编译和运行。当我尝试将其存档时,出现以下错误:

    Cannot create an IOS archive 'MYAPP.iOS'. Process cannot be executed on XMA server.
System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/myuser/Library/Caches/Xamarin/mtbs/builds/DLLForMyApp.iOS/b638ce99e69d13fe4bbc255fa8e9522c059ce7093e06611ac8cf8c4f2831be49/obj/iPhone/Release/actool/bundle/AppIcon60x60@2x.png".

/Users/myuser/Library/Caches/Xamarin 文件夹在 windows 计算机上是空的。有谁知道为什么会这样?

谢谢, 吉姆

【问题讨论】:

  • Windows 上的文件目录名称有限制,您可以尝试将存档路径更改为更短的路径,转到工具 -> 选项 -> Xamarin -> iOS 设置 -> VS 中的存档,将路径更改为“/Users/myuser /测试”

标签: visual-studio xamarin xamarin.ios visual-studio-2022


【解决方案1】:

最终问题不是路径长度问题。我过去已经采取措施解决这个问题。问题是证书问题。我最终删除了所有旧证书,并确保在编译和存档时使用相同的分发证书和配置文件。我不得不走手动配置路线以确保情况如此。

【讨论】:

    猜你喜欢
    • 2021-12-22
    • 2022-06-25
    • 2022-01-10
    • 2022-01-19
    • 2022-12-10
    • 1970-01-01
    • 2022-10-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多