SimulatorRemoteNotifications icon indicating copy to clipboard operation
SimulatorRemoteNotifications copied to clipboard

Has anyone ever used this with Swift?

Open michaelbina opened this issue 8 years ago • 2 comments

I'm getting this error:

ld: library not found for -lObjC

screen shot 2016-05-13 at 11 53 25 pm

michaelbina avatar May 14 '16 06:05 michaelbina

It works fine for me when I install it with Cocoapods in my Swift project. You just have to add a Swift bridging header.

Ingibjorg avatar Jul 06 '16 21:07 Ingibjorg

just in case you need steps for that, the easy way:

  • create a new "objective c" file.
  • say "yes" create a new bridging header
  • delete the file you just created

In the bridging header, write

#import <SimulatorRemoteNotifications/UIApplication+SimulatorRemoteNotifications.h>

chug2k avatar Aug 12 '16 04:08 chug2k