Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipsw download ipa windows: access is denied #623

Open
2 tasks done
mikeo opened this issue Jan 16, 2025 · 6 comments
Open
2 tasks done

ipsw download ipa windows: access is denied #623

mikeo opened this issue Jan 16, 2025 · 6 comments
Assignees
Labels
bug Something isn't working triage

Comments

@mikeo
Copy link

mikeo commented Jan 16, 2025

What happened?

⨯ failed to download app YouTube: Watch, Listen, Stream: failed to download app: failed to download file: failed to rename C:\Users***~1\AppData\Local\Temp\appstore.ipa2465566577.download to C:\Users***~1\AppData\Local\Temp\appstore.ipa2465566577: rename C:\Users***~1\AppData\Local\Temp\appstore.ipa2465566577.download C:\Users***~1\AppData\Local\Temp\appstore.ipa2465566577: Access is denied.

cant download any ipa from the appstore
(of course its in temp folder tho but idk if its completed everything it needs to do
like apply patches idk)
works on wsl but just doesnt work on windows : (

i lowkey tried to fix it myself but i am stupid
probably more of an issue of renaming the .download file to replace the ipa file
cuz i tried having a completely different output file and it doesnt have the same issue

How can we reproduce this?

ipsw download ipa --search youtube
windows

ipsw version

Version: 3.1.564, BuildCommit: 0bee5f0552e83074752b38aeb5c4f4b3bd2ddb61

Search

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@mikeo mikeo added bug Something isn't working triage labels Jan 16, 2025
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@blacktop
Copy link
Owner

I think this might be to me being too strict when creating folder with 0o750 perms?

I think I'll open them up in a test branch if you wouldn't mind testing?

@blacktop
Copy link
Owner

does it work if you don't run in Temp? or download to Temp?

@mikeo
Copy link
Author

mikeo commented Feb 23, 2025

well im running it in desktop folder but the file downloads to temp

@blacktop
Copy link
Owner

@mikeo
Copy link
Author

mikeo commented Feb 23, 2025

i dont think its the same issue as that because youre not renaming a folder but a file. i dont really know golang too well but ill try see if i can fix it for myself. i had a bit of success with avoiding using the same file name ( mikeo@ce60db6 ) but im really new to ipsw and the apple ecosystem and i couldnt get the ipa to actually run

i asked around and someone said its because os.rename is not atomic on non-unix platforms, and to quote:

if it has to remove the old file, then rename the new one, there's a race condition in that a new file may come around with the same name after the old one is removed

it is not an urgent issue since windows users can and should use WSL anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants