urbanairship/urbanairship-xamarin

Dyld Error Message: Library not loaded

Closed this issue · 5 comments

@marc-scig @rlepinski
Getting the following error when deploying which crashes the app.

Dyld Error Message:
Dyld Message: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
  Referenced from: /private/var/containers/Bundle/Application/B6FB66F7-2D65-408A-9EC0-BB0CE5731EBA/Demo.app/Frameworks/AirshipAppExtensions.framework/AirshipAppExtensions
  Reason: image not found
  Dyld Version: 390.7

Seems like a ios 10 compatiblity issue. But my deployment target is 9.3 and my device ios is 9.3

@keshavkaul You need to set the base SDK to 10. You can do that in Xamarin studio by right clicking the project -> Options -> iOS Build -> SDK version. Make sure its set to 10.

@rlepinski All members in our team don't have xcode 8 installed hence i cannot explicity add ios 10 as sdk version. Also even after setting sdk version to 10, the problem didn't get solved.

@keshavkaul 3.0+ requires building with iOS 10. Do you have the same error when running on an iOS 10 device?

3.1 and 3.0 use the same us sdk version. 3.1 added the app extension framework, but due to limitations with xamarin we had to bundle it with the main package. I'll try to reproduce on some older devices, if I can I'll release a patch that drops support for the extension until I figure out a different way to package it.

@keshavkaul I was able to reproduce the issue, working on a fix.

@keshavkaul Nuget package updated to 3.1.1, submitted a component but it takes a few days to publish. You can remove the component and just use the nuget packages directly.

Thanks for reporting the issue.