Some users are unable to load dynamic libraries from frameworks

I have apps that depend on loading dynamic libraries at runtime. It works for most users, but a small number of users are reporting issues. The dlopen() call fails with the following error message:

Failed loading awk from awk.framework/awk, cause = dlopen(awk.framework/awk, 0x0009): tried: '/private/var/containers/Bundle/Application/84E2C6C9-CCF1-4E92-9B4E-29557B0F9E
9E/a-Shell.app/Frameworks/awk.framework/awk' (could not register fairplay decryption, mremap_encrypted() => -1)

From the error message, dlopen() has found the dynamic library (awk.framework/awk), but failed to open it because of an issue with fairplay or mremap_encrypted().

I haven't found any documentation on the issue. Do you have any idea what is happening?

Some users are unable to load dynamic libraries from frameworks

What platform is this on?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Oh, sorry, it's on iOS. I have reports of the issue occuring on iOS 15.7, 16 and 16.1. Re-installing the app usually fixes the problem.

Oh, sorry, it's on iOS.

OK. That radically reduces the scope for weirdness, at least compared to macOS.

I suspect that these folks are using a device with unsupported modifications (that is, jailbreaks). If you’re in touch with a user who’s having this problem, ask them about that. If that is the case, then Apple can’t really help them.

However, if that’s not the case then, yeah, this is a weird bug, and the next step would be to get a sysdiagnose log from the user, captured shortly after they’ve reproduced the problem.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks a lot for the feedback. I'll ask the question.

In case it's the latter, how do they "get a sysdiagnose log from the user"?

I've received feedback from several users that their devices were never jailbroken.

So the next question is: how can they produce a useful diagnosis?

I've received feedback from several users that their devices were never jailbroken.

Well that’s good news.

how do they "get a sysdiagnose log from the user"?

Our Bug Reporting > Profiles and Logs page has info about that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

One user has reported that the issue solved itself without action (which confirms it's a "weird bug", as you said). Another user has experienced the issue and managed to generate a sysdiagnose log (256 MB). What is the next step for me? Should I file an official bug report?

For orders of magnitude, I've had 5 different users reporting this issue over the past month for 10,000 installs. Assuming only one out of 10 users affected takes the time to raise a complaint (it's a free app), it happens roughly once every 200 installs.

What is the next step for me? Should I file an official bug report?

Probably.

Before doing that I have a quick question: This app is distributed via the App Store, right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

It is, yes. It's named a-Shell and it weighs around 1.2 GB once expanded.

Hmmm, that’s an exciting product.

Given the nature of your product, I wonder if perhaps you’re running out of address space. When I user sees this problem, do they see it always? Or after using your app for a while?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

It is not a very common issue, so it's hard to infer things from a small sample size. But, from what I understand:

  • if it happens, it happens immediately after installation, for the first command.
  • rebooting does not help.
  • re-installing usually helps, but not always.
  • some users report that re-opening the app after a few days fixed the issue.

OK, that puts paid to my address space theory.

At this point my recommendation is that you file a bug about this, making sure to include the sysdiagnose log that you got from your customer.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Some users are unable to load dynamic libraries from frameworks
 
 
Q