# App Wrapper and "failed to move item from the temporary folder"

**URL:** <https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515>\
**Category:** Extras\
**Created:** [December 13, 2023, 5:17pm UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515 "2023-12-13T17:17:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 13, 2023, 5:17pm UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/1 "2023-12-13T17:17:49Z")

</div>

I’ve emailed support but I think it’s the middle of the night for them there.  
Has anyone else seen this in App Wrapper?  
This is the first time ever and now I can’t move past it.I’ve restarted the Mac and I’ve run Disk Utility, first aid.

Any help would be appreciated. I’m virtually stuck.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [December 13, 2023, 5:59pm UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/2 "2023-12-13T17:59:57Z")

</div>

Can you post the complete error message?

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 13, 2023, 6:18pm UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/3 "2023-12-13T18:18:33Z")

</div>

Here is the entire message: “failed Unable to move item from the temporary folder.”

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 13, 2023, 6:20pm UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/4 "2023-12-13T18:20:57Z")

</div>

it builds a zip in a temporary location and then moves it to a sub-folder next to the app that is being signed and notarized.  
It does build the zip in the temporary location.  
It does build the sub-folder.  
So I don’t know if it’s tripping with moving it out of the temp folder or into the new folder.

Sam’s great though, and I’m sure he’ll respond with a solution when it’s daylight there. Just hoping to resolve it now for a customer who needs a build.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [December 14, 2023, 12:21am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/5 "2023-12-14T00:21:35Z")

</div>

Alrighty, finally got a moment to eat breakfast. But not at my work puter.

IIRC, I explicitly ask for the temporary folder on the same volume as the destination folder, otherwise the move won’t work. I do this to stop iCloud, DropBox, OneDrive, GoogleDrive and any other friking file sharing service from interfering.

Without seeing your logs (because different computer), my guess would be that its giving me a temporary folder on a different volume. What can you tell me about where the destination is?

There may also not be an error message from the Apple API as it might be a really old API. A lot of the Swift equivalents are more communicative with errors, but I honestly have no idea how to access Swift API with Xojo and at this point, I’m not going to try.

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 14, 2023, 12:45am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/6 "2023-12-14T00:45:25Z")

</div>

Morning Sam  
Same volume  
No iCloud or anything like that.  
Here’s the kicker: other projects are working fine.  
I can’t understand this.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [December 14, 2023, 12:51am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/7 "2023-12-14T00:51:30Z")

</div>

If you look at the wrapping log, it should tell you where it created the Zip file, and no the path ain’t an easy one to figure out. But from here, you should be to manually move it.

Is this only happens for one project… What’s the name of the app?

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 14, 2023, 1:07am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/8 "2023-12-14T01:07:29Z")

</div>

It opens the temp folder when it can’t move the file out.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [December 14, 2023, 1:16am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/9 "2023-12-14T01:16:59Z")

</div>

Ha… I forgot I did that.

So I looked at your log and found the problem.

/var/folders/zr/mp7szfxd4h10lgswmgcnkn\_c0000gn/T/TemporaryItems/NSIRD\_App Wrapper 4\_mR8rxP/Nix Print Pro 2023.12.13\n.zip

See that “\n” before .zip. That’s an escaped endofline character. I think it must in the version number.

If you enable "Make websafe and replace the unsafe characters with a “\_” it _should_ solve it.

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 14, 2023, 1:27am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/10 "2023-12-14T01:27:57Z")

</div>

I’ll try. Funny that it never happened before.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [December 14, 2023, 1:31am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/11 "2023-12-14T01:31:25Z")

</div>

Looking at the AW data file, I don’t see that AW is injecting anything in the archive name (I can always be wrong). If this only occurs for this one project, I would think that the version number in the Xojo IDE has an endofline at the end. Try clicking into the field and pressing the down arrow to see if it scrolls.

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [December 14, 2023, 8:39am UTC](https://forum.xojo.com/t/app-wrapper-and-failed-to-move-item-from-the-temporary-folder/78515/12 "2023-12-14T08:39:56Z")

</div>

it did not, but I retyped all the version number fields anyway and now it’s working.  
Thanks, Sam!
