I'm using the UA Xamarin iOS sdk package. Building gives me an error:
Failed to resolve "UserNotifications.UNNotificationRequest" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" <myprojectName.iOS C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets
It sounds like your Xamarin project may not have the correct iOS SDK downloaded, is that correct?
Can you confirm that your Xamarin project has the latest version of the iOS SDK downloaded and installed on your computer?
Thanks, is it requiring the latest version, or which version?
Yes, it would require the latest version.
Thanks. I tried removing the package temporarily, and removed all references to Urban Airship. The project still doesn't build with the same error. Is there an artifact left over possibly?
It sounds like your environment might not be set up correctly if you're still running into the same error.
Are you working with Xamarin Studio, or using the Xamarin Studio Plugin?
I'm using Visual Studio Community 2015 Update 3. I've cleared the cache on the Mac build host as well. I'm not sure what 'environment' is required when using the Urban Airship SDK. I added it simply by using the 'add components' feature in the iOS project in Visual Studio. This is the way most Xamarin components are added. All that did was add a reference .dll called 'AirshipBindings'. I got the build error after adding this .dll. After removing the .dll, the error remains, even after removing the dll and everything else I mentioned. There must be some artifact either in the Xamarin cache on the local machine or the Mac build host where its still trying to reference this class.
I'm mostly wanting to make sure you've run through these steps.
Thanks, yes those steps are complete. I'm able to create, build and run numerous other Xamarin projects just fine.
And you've already clean and rebuilt your project already?
Does a new project yield the same results?
Yes I've cleaned and rebuilt, as well as removed every reference from the iOS project. A new project works fine
Well, at least the new project works fine. Does the new project also build properly with UA in the project? Or does that continue to give you problems?
If so, would you be able to post your full logs and/or your project? I'd like to take a closer look at it if I can. Visual Studio can be a bit picky sometimes.
Thanks, the project still builds with error when UA is added back in. Where can I get the logs to post?
These should just be your Visual Studio Logs
Ok thanks. Is there a private location I can send them to?
I just sent an invite to upload your files.
I'll send them. Thank you very much
Just to confirm, which version of Xcode are you currently running on the Mac?
I'm running version 7.2. Thanks
That might be an issue. Could you update to Xcode 8?
Unfortunately I can't do that right in the middle of multiple projects. I understand that what the UA lib needs, I will get to that when I can. Right now I just want to remove the library cleanly. Was hoping you could help locate where the leftover artifact is. I'm not including it in the project at all, but still the project does not build. I'm trying to avoid starting over from scratch on a new project and copying in all existing code
Out of curiosity, does the project build in Xamarin Studio at all?
I'm not able to find much in the logs that indicates anything, so I can't say with much certainty what the problem is.
I found out it was actually another library! I'm eating crow at this point! My apologies and thanks for your support!
No worries! Good to hear you got it working!