Xamarin.iOS project issue

We have an Xamarin.Forms project.  I have updated the Xamarin.Forms and UrbanAirship  nuget packages to the latest versions. MY .NetStandard and Android  projects are compiling fine. My Xamarin iOS   project is throwing following errors: 

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT2101: Can't resolve the reference 'Foundation.NSArray Foundation.NSArray::FromNSObjects(!!0[])', referenced from the method 'System.Void UrbanAirship.UAScheduleInfoBuilder::set_Triggers(UrbanAirship.UAScheduleTrigger[])' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.
2> --- inner exception


 Mono.Linker.MarkException: Error processing method: 'System.Void UrbanAirship.UAScheduleInfoBuilder::set_Triggers(UrbanAirship.UAScheduleTrigger[])' in assembly: 'AirshipBindings.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve Foundation.NSArray Foundation.NSArray::FromNSObjects(!!0[])

 

 

Didn't find what you were looking for?

New post

Comments

6 comments

  • Hello Nasir,

    May I ask if you can return the following information in order for me to troubleshoot the problem?

    - The version of Xamarin.iOS you have installed (I would recommend updating to the latest if you haven't already done so).
    - The version of the Airship SDK you are using
    - A screenshot of your Project list/solution explorer so I can see which packages are installed and where
     
    Kind regards,
    Chilun Liu
    Senior Technical Support Engineer
    Airship
    Comment actions Permalink
    0
  • Thanks.

     

    Here are the info you needed:

     

    1- Xamarin.forms version 4.2.0709249

    2- Airship versions are as below

     

    - .netstandard is installed in all projects.

    - other nugetpackage are installed in relevant projects. 

    3- solution explorer. I am not sure though what view you are looking for. 

     
    Comment actions Permalink
    0
  • Hi Nasir,

    Can you install the urbanairship.portable package through NuGet as well?

     

    Comment actions Permalink
    0
  • Hi Nasir,

    Can you install the urbanairship.portable package through NuGet as well?

     

    Comment actions Permalink
    0
  • It didn't make any difference.

     

    I have installed urbanairship.portable in all three projects, cleaned the solution and build did give the same error for IOS project. 

     

    Severity Code Description Project File Line Suppression State
    Error Can't resolve the reference 'Foundation.NSArray Foundation.NSArray::FromNSObjects(!!0[])', referenced from the method 'System.Void UrbanAirship.UAScheduleInfoBuilder::set_Triggers(UrbanAirship.UAScheduleTrigger[])' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Healthbit.iOS

     
    Comment actions Permalink
    0
  • May I ask if you can email support@airship.com with this information as well as providing your App Key?

    Here is a link to some instructions on finding your App Key - https://support.airship.com/hc/en-us/articles/213491663-How-do-I-find-my-App-Key-or-App-Secret-

     

    Comment actions Permalink
    0

Please sign in to leave a comment.