Our app is seeing sporadic crashes on launch when using dynamic libraries. This is only when running the app store release on device.
We are using CocaPods, which seems to be the cause of this issue for other developers, but we aren't seeing it 100% of the time that we run. It's probably less than a tenth of a percent. We've randomly had one user at our office have it occur and grabbed his crash logs. Every time he tries to launch the app it crashes, but for some reason if he enters the app from a push notification it launches fine!
For example:
Dyld Error Message:
Dyld Message: Library not loaded: @rpath/MoPub.framework/MoPub
Referenced from: /var/mobile/Containers/Bundle/Application/5D64892C-E1A7-4BCE-9154-E28B397C7258/<AppName>.app/<AppName>
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/5D64892C-E1A7-4BCE-9154-E28B397C7258/<AppName>.app/Frameworks/MoPub.framework/MoPub: mremap_encrypted() => -1, errno=12 for /private/var/mobile/Containers/Bundle/Application/5D64892C-E1A7-4BCE-9154-E28B397C7258/<AppName>.app/Frameworks/MoPub.framework/MoPub
/private/var/mobile/Containers/Bundle/Application/5D64892C-E1A7-4BCE-9154-E28B397C7258/<AppName>.app/Frameworks/MoPub.framework/MoPub: mremap_encrypted() => -1, errno=12 for /private/var/mobile/Containers/Bundle/Application/5D64892C-E1A7-4BCE-9154-E28B397C7258/<AppName>.app/Frameworks/MoPub.framework/MoPub
/private/var/mobile/Containers/Bundle/Application/5D64892C-E1A7-4BCE-9154-E28B397C7258/<AppName>.app/Frameworks/MoPub.framework/MoPub: mremap_encrypted() => -1, errno=12 for /private/var/mobil
Dyld Version: 370.6
(App name obfuscated as <AppName>)
Any idea why this would be happening only some of the time?