NSURL urlWithSpotifyLink: unrecognized selector sent to class Spotify iPhone error

Go To StackoverFlow.com

0

The Spotify iPhone app I was working on, was running fine, but now I keep on getting this error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSURL urlWithSpotifyLink:]: unrecognized selector sent to class 0x1e7621c

Any ideas?

Thanks!

2012-04-04 17:58
by Andrei


2

As mentioned in the CocoaLibSpotify readme, you need to add the -ObjC and -all_load flags to the "Other Linker Flags" build setting in Xcode.

2012-04-04 18:03
by iKenndac
Yep, thanks. Also, don't be so fast to down vote. I am using the Parse framework in my application and apparently having these settings in the XCode project don't play nice with the Parse framework: as in, the project does not build with these flags and Parse - Andrei 2012-04-04 19:05
I dunno why people downvoted - I certainly didn't. Anyway, these flags are linker flags, not compiler flags, so they shouldn't affect compilation at all - iKenndac 2012-04-04 20:56
Or you can use -force_load for just spotify, see: http://stackoverflow.com/a/5095793/19389 - bendytree 2012-10-23 23:58
Ads