Failed loading ls ... ls: command not found
- Dominant language
- Perl
- Stars
- 3.9k
- Forks
- 213
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
When I run the `ls` command, I often get the following error
> Failed loading ls from files.framework/files, cause = dlopen(files.framework/files, 0x0009): tried: '/private/var/containers/Bundle/Application/7D9DFCD1-6F01-4A8B-9041-F111E6EEBAEC/a-Shell.app/Frameworks/files.framework/files' (could not register fairplay decryption, mremap_encrypted() => -1), '/private/var/containers/Bundle/Application/7D9DFCD1-6F01-4A8B-9041-F111E6EEBAEC/a-Shell.app/Frameworks/ios_system.framework/Frameworks/files.framework/files' (no such file), '/usr/lib/swift/files.framework/files' (no such file), '/private/var/containers/Bundle/Application/7D9DFCD1-6F01-4A8B-9041-F111E6EEBAEC/a-Shell.app/Frameworks/files.framework/files' (could not register fairplay decryption, mremap_encrypted() => -1), 'files.framework/files' (relative path not allowed in hardened program), '/System/Library/Frameworks/files.framework/files' (no such file)
ls: command not found
Then, when I run the `ssh` command, I get the similar error as below.
> Failed loading ssh from ssh_cmd.framework/ssh_cmd, cause = dlopen(ssh_cmd.framework/ssh_cmd, 0x0009): tried: '/private/var/containers/Bundle/Application/7D9DFCD1-6F01-4A8B-9041-F111E6EEBAEC/a-Shell.app/Frameworks/ssh_cmd.framework/ssh_cmd' (could not register fairplay decryption, mremap_encrypted() => -1), '/private/var/containers/Bundle/Application/7D9DFCD1-6F01-4A8B-9041-F111E6EEBAEC/a-Shell.app/Frameworks/ios_system.framework/Frameworks/ssh_cmd.framework/ssh_cmd' (no such file), '/usr/lib/swift/ssh_cmd.framework/ssh_cmd' (no such file), '/private/var/containers/Bundle/Application/7D9DFCD1-6F01-4A8B-9041-F111E6EEBAEC/a-Shell.app/Frameworks/ssh_cmd.framework/ssh_cmd' (could not register fairplay decryption, mremap_encrypted() => -1), 'ssh_cmd.framework/ssh_cmd' (relative path not allowed in hardened program), '/System/Library/Frameworks/ssh_cmd.framework/ssh_cmd' (no such file)
ssh: command not found
If I `exit` and start a-Shell, then run both `ls` and `ssh`, I get the error, but if I repeat exit - start several times, both `ls` and `ssh` work correctly.
However, if I try to exit - start from that state, the error occurs again.
Restarting the iPad did not help.
Reinstalling a-Shell did not help.
NG: a-Shell 1.9.8 on iPad OS 15.7 on iPad 9th Generation.
This does not happen on the other one so far.
OK: a-Shell 1.9.8 on iPad OS 15.7 on iPad 7th Generation.
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the repeated exit/start cycle on iPadOS 15.7 using the `ls` and `ssh` entry points, comparing the failing and working launches. Done means both commands load reliably after restarting a-Shell without the reported framework-loading errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, shell
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100