You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having an issue where apple doc would bail out of a class and report no errors. I was getting docs generated to a specific point in the file anything above this would work anything below would not be parsed.
I tracked it down to this line of code:
NSLog(@"auth.login response : %@", body);
It seems to be the auth.login that causes issues and other strings cause the same issue like video.preupload for example.
Commenting out the code or adding a space is a workaround.
Here is a full(ish) listing of the code that causes the issue.
/**
*
* Login to the XXXXXX webservice.
*
* The topic `auth.login` is sent with a message dictionary containing the keys `username` and `password`, these correspond to the parameters.
*
* The message received back after calling `auth.login` will have a `status`, if this is "ok" the `body` will contain a dictionary with the following parameters:
*
* - `sessionID`
* - `user`
*
* @param username Either the users email or XXXXX number
* @param password Password or PIN
* @param successBlock A block called when the user successfuly login in, this has no parameters
* @param failBlock A block called when the server returns an error, an NSError object is returned to this block
*/
- (void)loginWithUsername:(NSString *)username andPassword:(NSString *)password success:(void (^)())successBlock failure:(void (^)(NSError *error))failBlock
{
if (username.length == 0) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
_sessionId = @"VALID_SESSION";
successBlock();
});
}
else {
[_bus send:@"auth.login" message:@{@"username": username, @"password": password} replyHandler:^(id<GDCMessage> message) {
NSMutableDictionary *body = [message body];
//NSLog(@"auth.login response : %@", body); //<--- This causes appledoc to bail
NSLog(@"%@ response : %@", @"auth.login", body); //<--- this is fine!!!!
NSString *status = [body objectForKey:@"status"];
if ([status isEqualToString:@"ok"]) {
//code here...
successBlock();
}
else {
failBlock([[NSError alloc] initWithDomain:kZoomServerErrorDomain code:kZoomErrorAuthLogin userInfo:body]);
}
}];
}
}
The text was updated successfully, but these errors were encountered:
I was having an issue where apple doc would bail out of a class and report no errors. I was getting docs generated to a specific point in the file anything above this would work anything below would not be parsed.
I tracked it down to this line of code:
It seems to be the auth.login that causes issues and other strings cause the same issue like video.preupload for example.
Commenting out the code or adding a space is a workaround.
Here is the command I used to generate the docs:
Here is a full(ish) listing of the code that causes the issue.
The text was updated successfully, but these errors were encountered: