majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.34k stars 466 forks source link

The process cannot access the file because it is being used by another process. #213

Closed ClapperJack closed 11 months ago

ClapperJack commented 12 months ago

What happened?

So, I have managed to log into my account, authenticate, find the desired application and initiate the download. However, upon finishing the download I encounter this error.

1:45PM ERR error="failed to remove original file: rename C:\Users\Name\Desktop/com.Appname.ipa.tmp C:\Users\Name\Desktop/com.Appname.ipa: The process cannot access the file because it is being used by another process." success=false

I am not quite sure how to circumvent this error and what is causing it

Version

ipatool-2.1.3-windows-amd64.tar.gz

Relevant log output

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> cd F:
PS F:\> cd .\IPA\                                                                                                       
PS F:\IPA> .\ipatool-2.1.3-windows-amd64.exe auth login --email emailname --password pass
1:45PM INF enter passphrase to unlock "C:\\Users\\User\\.ipatool" (this is separate from your Apple ID password):
1:45PM INF email=emailname name="Name" success=true
PS F:\IPA> .\ipatool-2.1.3-windows-amd64.exe download -b com.Appname --output C:\Users\Name\Desktop
1:45PM INF enter passphrase to unlock "C:\\Users\\Name\\.ipatool" (this is separate from your Apple ID password):
1:45PM ERR error="failed to remove original file: rename C:\\Users\\Name\\Desktop/com.Appname.tmp C:\\Users\\Name\\Desktop/com.Appname.ipa: The process cannot access the file because it is being used by another process." success=false
PS F:\IPA>