I am trying to archive an iOS app in Visual Studio. The app had worked before, but the developer and distribution certificates had expired. I created the new certificates via the interface in Visual Studio for Windows. When I auto provision, it finds the correct certificates as far as I can tell. It will compile and run on a local iPhone fine. When I try to archive it, it gives the following error:
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/[email protected]".
The /Users/myuser/Library/Caches/Xamarin folder is empty on the windows computer. Does anyone know why this might be happening?
Thanks, Jim
CodePudding user response:
It ends up that the problem wasn't a path length problem. I had already taken steps to fix that in the past. The problem was a certificate problem. I ended up deleting all of my old certificates and making sure that I was using the same Distribution Certificate and Provisioning Profile when I compiled and archived. I had to go the Manual Provisioning route to make sure this was so.