Urbanairship NuGet package issues with Xamarin

Hi, I previously had the urbanairship component being used in my iOS app project in a Xamarin.Forms solution for the past year.  This worked great, but recently Xamarin discontinued support for Components.  I replaced the component with the NuGet package and now every time  I run the iOS app in the simulator, the simulator loads the app icon, then the project stops and crashes.  There is NO error reported anywhere. I have narrowed this down to the code UAirship.TakeOff().  If I comment the line UAirship.TakeOff() then the app runs fine.  The thing that makes this so hard to debug is that no code in the app executes before this line is called.  I put a breakpoint on the first line of code in the App Delegate and it never reaches it.  I also put a breakpoint in the main class and it is not reached either.  If I comment that line, it first hits the breakpoint in main as it should and continues to execute the app just fine.

It is urbanairship 4.6.4

Any ideas?

Didn't find what you were looking for?

New post

Comments

2 comments

  • Hi Jesse,

    This is Sean with Urban Airship Technical Support.

    Have you taken a look at the (Build section of the Readme in our github repo?](https://github.com/urbanairship/xamarin-component#building) It contains specific instructions around making sure that Carthage is installed an up to date.

    Please let me know if you have any other questions or concerns.

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon

     

    0
  • Hi Sean, you are referring to the component and the Urban Airship documentation still refers to the Component, yet Microsoft has ended support for components in Xamarin projects.  Also, I am not familiar with Carthage and don't see why I need it.  I never needed it before about a month ago.  Is it absolutely necessary?  I installed it using brew but when I do carthage update, it says there is no such file cartfile...

    0

Please sign in to leave a comment.