Do we need to put clientid in between ’<‘ and ‘>’ when licensing for basic license?

3480
1
04-23-2015 01:57 AM
OguzhanTopsakal
New Contributor III

If I do not put my clientid in between ’<‘ and ‘>’, it gives EXC_BAD_ACCESS.  I wonder if I need to put my clientid in between ‘<‘ and ‘>’(If I put it in ‘<‘ and ‘>’, I do not get EXC_BAD_ACCESS but it says my client id is invalid but it should be valid..) I am trying to add the client id to remove 'Developer Use Only' mark by using the following code:

    NSString* clientID = @"<XYZ>";

    [AGSRuntimeEnvironment setClientID:clientID error:&error];

    if(error){

        // We had a problem using our client ID

        NSLog(@"Error using client ID : %@",[error localizedDescription]);

    }

Tags (2)
0 Kudos
1 Reply
GagandeepSingh
Occasional Contributor II

Hi Oguzhan Topsakal​,

You don't have to put the client id in between '<' and '>'. The EXC_BAD_ACCESS means you are trying to access an object that has already been released.

Tip: You can always put breakpoints and find out what object is causing the problem.

I hope it helps!

Gagan

0 Kudos