PDA

View Full Version : iOS cocoa pod install 2.5.1 bug



Plinn
09.05.2016, 18:25
Hi,

I used to work with the SDK installed manually (on swift). The code I used works perfectly when I install the SDK manually. I tried to install it with cocoa pods. Everything works smoothly, all the functions are recognized and I don't get any error on the build.
However, I can define the SKMapView but when I try to add the map to the view I get a NSException:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SKVectorMapView displayTrafficWithMode:]: unrecognized selector sent to instance 0x7af23590'

I haven't define any SKTrafficMode since I am using the public sdk. Any idea?

Adela_Silvia
11.05.2016, 14:26
Please check if this was causing the issue:
Go to your target-> Build Settings-> Other Linker flags and make sure there is a -ObjC flag.