I'm developing an app where I have integrated sky drive framework. But when I try to login my app crashes with:
uncaught exception 'NSInternalInconsistencyException
Reason:
Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/
Using the "LiveSDK/Library" it works fine but the library does not work with ARC. What am I doing wrong?
Here is my code:
(void)signInMethod {
self.liveClient =
[[LiveConnectClient alloc] initWithClientId:APP_CLIENT_ID
delegate:self
userState:@"initialize"];
}
-(void)authCompleted:(LiveConnectSessionStatus) status
session:(LiveConnectSession *) session
userState:(id) userState { if ([userState isEqual:@"initialize"]) {
[self.liveClient login:self
scopes:[NSArray arrayWithObjects:@"wl.signin", nil]
delegate:self
userState:@"signin"];
} if ([userState isEqual:@"signin"]) {
if (session != nil)
{
NSLog(@"signed in");
}
} }
-(void)authFailed:(NSError *) error
userState:(id)userState { NSLog(@"%@",[NSString stringWithFormat:@"Error: %@", [error localizedDescription]]); }