【发布时间】: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