[Crash-iOS]app crashed while using TWTRComposer to compse a tweet

ios

#1
  • iOS version 10.3.1

  • twitter kit version:1.15.3 or 2.8.1

  • there is no twitter account in system configuration
    *my code is like this:

      TWTRComposer *composer = [[TWTRComposer alloc] init];
      [composer setText:@"text"l];
      [composer setImage:image];
      [composer setURL:url];
      [composer showFromViewController:fromViewController
                                              completion:completion];
    
  • the crash info is:

      Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target....