Hi,

I followed the Guide to using Xamarin iOS Binding, but even the sample program on github won't compile. Giving the same error i'm getting on my test.

-- the errors are with a bunch of symbols not found, i.e.:

undefined symbol: _SecItemCopyMatching. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in'

--

any ideas?

asked 17 Mar '14, 19:33
troabrea's gravatar image

troabrea
12

You should to add Security Framework to "PushNotificationManager.linkwith.cs" in PushwooshBinding:

[assembly: LinkWith ("PushNotificationManager.a", LinkTarget.Simulator | LinkTarget.ArmV7, ForceLoad = true, Frameworks = "CoreGraphics CoreFoundation Security")]
permanent link
answered 20 Mar '14, 09:28
Fectum's gravatar image

Fectum
2604

Hi,

Thanks for the reply. Now it compiles, but at runtime i get the same error mentioned in the following post.

https://community.pushwoosh.com/questions/357/xamarin-ios-sample-crashes-on-startup

(25 Mar '14, 12:57) troabrea troabrea's gravatar image

Step 5 of the iOS Xamarin Guide has been updated recently (public void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo)), you might need to refresh the page to see changes.

5) Add the methods below to the AppDelegate class:

public override void RegisteredForRemoteNotifications (UIApplication application, NSData deviceToken)
 { PushNotificationManager.PushManager.HandlePushRegistration (deviceToken); }
public override void FailedToRegisterForRemoteNotifications (UIApplication application , NSError error)
 { PushNotificationManager.PushManager.HandlePushRegistrationFailure (error); }
[Export ("application:didReceiveRemoteNotification:")]
public void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo)
 { PushNotificationManager.PushManager.HandlePushReceived (userInfo); }
(25 Mar '14, 13:33) Alex Spotar Alex%20Spotar's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×353
×24

question asked: 17 Mar '14, 19:33

question was seen: 2,131 times

last updated: 25 Mar '14, 13:33