iOS crash: library not loaded mremap_encrypted

2019-04-11 00:11发布

The app review team says my app always crash on launch, they gave me some crash logs, looks like this:

Dyld Error Message:
Dyld Message: Library not loaded: @rpath/RestKit.framework/RestKit
  Referenced from: /var/mobile/Containers/Bundle/Application/EF2027CE-CEE4-4DB3-AC86-7AA3796FE67C/Udinn.app/Udinn
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/EF2027CE-CEE4-4DB3-AC86-7AA3796FE67C/Udinn.app/Frameworks/RestKit.framework/RestKit: mremap_encrypted() => -1, errno=12 for /private/var/mobile/Containers/Bundle/Application/EF2027CE-CEE4-4DB3-AC86-7AA3796FE67C/Udinn.app/Frameworks/RestKit.framework/RestKit
  Dyld Version: 370.1

This is dynamic link error, seems it's failed when load RestKit.framework(other logs are about other frameworks, like SwiftAddressbook, TransitionKit, but all with a same reason), I did see a lot people have a similar error with "mmap error 1", but not any one met the same error "mremap_encrypted" with me. The problem is I can't reproduce it, so I have no idea if upload a new binary could work. Any body has an idea what this means and how to fix it? Thanks.

1条回答
Summer. ? 凉城
2楼-- · 2019-04-11 00:48

I think the issue is a matter of running out of memory and iOS not really dealing with this in a great way and that the only reason your app was accepted when you resubmitted was because the (new) reviewer’s device was not in the same situation.

I did a write-up of the issue on our app’s repo: https://github.com/artsy/eigen/issues/1246

查看更多
登录 后发表回答