Brightcove implementation + unrecognized selector in iOS

128 Views Asked by At

I am facing a strange issue while integrating Brightcove library (version 4.2.1) in my iOS app.

    -(void) setupForBrightcove{
NSString *playlistID = [NSString stringWithFormat:@"%lld",self.playListID];
BCOVCatalogService *catalog = [[BCOVCatalogService alloc] initWithToken:VIDEO_TOKEN];

//Find Playlist
    [catalog findPlaylistWithPlaylistID:playlistID
                             parameters:nil
                             completion:^(BCOVPlaylist *playlist,
                                          NSDictionary *jsonResponse,
                                          NSError      *error) {
}];

}

I just ran this much piece of code with valid playlist ID and Video Token.

It is giving me following error:

-[__NSDictionaryM bcov_UTF8EncodedRequestParameterString]: unrecognized selector sent to instance 0x7a40f910

The only dictionary over here is jsonResponse.

Can anyone help on this? Thanks.

1

There are 1 best solutions below

2
On

It sounds like you didn't add -ObjC to your "Other Linker Flags" in your Xcode project build settings. Be sure to follow the installation steps exactly.