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]);
}
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