Failed to start twitter api in my iOS program, error with Fabric

I recently tried embedding twitter with my application using Fabric. Following their tutorial, I made a small change - instead of defining TWTRLogInButton in my .m file, I first defined it in my .h file.

So, in my .h file, I set the button:

 @property (strong, nonatomic) IBOutlet TWTRLogInButton *twitterButton; 

And in my .m file, the code is:

 _twitterButton = [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { if (session) { NSLog(@"signed in as %@", [session userName]); } else { NSLog(@"error: %@", [error localizedDescription]); } }]; 

And this leads to an error:

"[Cloth] Could not find application icon"

And since I can’t find a way to solve this problem. I tried to change the code exactly the same as the tutorial said, but that didn't work either. I just don’t understand why Fabric cannot find my icon ...

Any help is appreciated. Thank you in advance.

+5
source share

All Articles