1

Similar to this problem.

Below is a snippet from the console.

Timestamp App Name[315:36110] [INFO] [IMFPushClient] -[IMFPushClient registerDeviceToken:completionHandler:] in IMFPushClient.m:70 :: Verifying previous device registration.
IMFAuthorizationManager.m:453 :: There is no cached authorization header, use obtainAuthorizationHeaderWithCompletionHandler to get the header
Timestamp App Name[315:36110] +[IMFResponse responseWithWLResponse:]: unrecognized selector sent to class 0x100101c30
  1. Did not use cocoapod to install IMFCore framework. Reference framework directly.
  2. Added -Objc flag in linker->other linker flags for Project and target.
  3. Problem detected when debugging on iPhone 6+ iOS version 9.2.1.
  4. Cannot recreate issue with Xcode iPhone 6+ simulator iOS version 9.2.

Would appreciate it if anyone could shed some light on my problem. Thank you.

Community
  • 1
  • 1
Jason Lee
  • 11
  • 2
  • What is the specific problem you're having? – thanksd Jan 26 '16 at 16:13
  • Can you write down the error/problem while debugging iPhone 6+ iOS version 9.2.1. – Mihriban Minaz Jan 26 '16 at 16:17
  • One thing to note is you cannot do push notification registration on a simulator so it would make sense it was not reproducible there. Please provide the code you are using for registration – Joshua Alger Jan 26 '16 at 16:36
  • @Jaalger thank you for pointing that out. I will try to trigger the IMFPushClient.sharedInstance().registerDeviceToken function programmatically to see if if the problem can be replicated in the simulator. – Jason Lee Jan 27 '16 at 02:11
  • @MihribanMinaz I am trying to register my app to receive remote notification from APNS using Bluemix's IMFPush framework. The IMFPushClient.sharedInstance().registerDeviceToken is called in the didRegisterForRemoteNotificationsWithDeviceToken delegate function. I hit unrecoginzed selector error even with -Objc linker flag set. – Jason Lee Jan 27 '16 at 02:17
  • I've triggered the IMFPushClient.sharedInstance().registerDeviceToken function programmatically using the simulator. I hit the unrecognized selector error even in the iOS 9.2 simulator. – Jason Lee Jan 27 '16 at 02:50
  • Hi All. Thank you for you feedbacks. Problem solved. Problem was with the other linker flag value. Entered -Obj*c* instead of -Obj*C* – Jason Lee Jan 27 '16 at 09:40

1 Answers1

0

As Jason pointed out in his latest comment, please make sure the -ObjC flag under Build Settings>Linking>Other Linker Flags is entered correctly. This value is case sensitive so make sure the O and C are capitalized correctly:

-ObjC

Joshua Alger
  • 2,122
  • 1
  • 14
  • 25