App crashes when join meeting (iOS)

i followed “build your app” guide with sdk version v4.6.21666.0428.
when i joined the meeting room then i got error

xcode : v11

**2020-05-08 13:55:20.528493-0500 zoomTest[31829:6377816] [logging-persist] os_unix.c:43353: (0)open(/var/mobile/Containers/Data/Application/CF5D7903-57A7-4756-93B3-62DE77702AC5/Documents/data/zoomus.tmp.db) - Undefined error: 0**

**2020-05-08 13:55:20.530425-0500 zoomTest[31829:6377816] [logging] table zoom_meet_participants already exists in "create table zoom_meet_participants (itemID integer64, name text, avatar text,snsID text, snsType integer, deviceID text,roleType integer);"**

**2020-05-08 13:55:20.530665-0500 zoomTest[31829:6377816] [logging] table zoom_kv already exists in "create table zoom_kv (key text, value text, section text);"**

**2020-05-08 13:55:20.701921-0500 zoomTest[31829:6377816] MobileRTC Version: 4.6.21666.0428**

**2020-05-08 13:55:21.386340-0500 zoomTest[31829:6377816] onMobileRTCAuthReturn 0**

**error was 0**

**2020-05-08 13:55:40.581913-0500 zoomTest[31829:6377816] meetingNO: 77791903539**

**2020-05-08 13:55:40.596491-0500 zoomTest[31829:6377816] -[AppDelegate window]: unrecognized selector sent to instance 0x283c0aee0**

**2020-05-08 13:55:40.598490-0500 zoomTest[31829:6377816] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate window]: unrecognized selector sent to instance 0x283c0aee0'**

***** First throw call stack:**

**(0x1a5b0496c 0x1a581d028 0x1a5a02dcc 0x1a9c34884 0x1a5b08dc0 0x1a5b0b3a0 0x103214f80 0x1a5eceffc 0x1a5a5c99c 0x1a5a5c9ec 0x1a5a5bce4 0x1a5a5b97c 0x1a59d4910 0x1a5a5b2ac 0x103087d60 0x103636a20 0x10361c650 0x103614748 0x1036137f0 0x103614e14 0x1037474d4 0x1031db9bc 0x102bd12b8 0x102bd10bc 0x1a5818cc8 0x1a9c06918 0x1a9615380 0x1a96156f4 0x1a9614704 0x1a9c4178c 0x1a9c42a7c 0x1a9c1e600 0x1a9c98a58 0x1a9c9b010 0x1a9c94194 0x1a5a80108 0x1a5a8005c 0x1a5a7f7c8 0x1a5a7a694 0x1a5a79f40 0x1afd0a534 0x1a9c05580 0x102bd0ff0 0x1a58f8e18)**

**libc++abi.dylib: terminating with uncaught exception of type NSException**


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    // Step 1: Set SDK Domain and Enable log (You may disable the log feature in release version).
//      [[MobileRTC sharedRTC] setMobileRTCDomain:kSDKDomain enableLog:YES];
      [[MobileRTC sharedRTC] setMobileRTCDomain:kSDKDomain];
      // Step 2: Get Auth Service
      MobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService];
      NSLog(@"MobileRTC Version: %@", [[MobileRTC sharedRTC] mobileRTCVersion]);
      if (authService) {
          // Step 3: Setup Auth Service
          authService.delegate        = self;
          authService.clientKey       = kSDKAppKey;
          authService.clientSecret    = kSDKAppSecret;
          // Step 4: Call authentication function to initialize SDK
          [authService sdkAuth];
    return YES;

- (void)onMobileRTCAuthReturn:(MobileRTCAuthError)returnValue {
    NSLog(@"onMobileRTCAuthReturn %d", returnValue);
    if (returnValue != MobileRTCAuthError_Success)
        NSString *message = [NSString stringWithFormat:NSLocalizedString(@"SDK authentication failed, error code: %zd", @""), returnValue];
        NSLog(@"%@", message);


- (void) joinMeeting: (NSString*) meetingNo withPassword:(NSString*)pwd {
    NSLog(@"meetingNO: %@", meetingNo);
    if(![meetingNo length]) {
        // If the meeting number is empty, return error.
        NSLog(@"Please enter a meeting number");
    } else {
        // If the meeting number is not empty.
        MobileRTCMeetingService *service = [[MobileRTC sharedRTC] getMeetingService];
        if (service) {
            service.delegate = self;
            // initialize a parameter dictionary to store parameters.
            NSDictionary *paramDict = @{
                                        kMeetingParam_Username: kSDKUserName,
            MobileRTCMeetError response = [service joinMeetingWithDictionary:paramDict];
            NSLog(@"onJoinMeeting, response: %d", response);

Hi taehunchoi,

Thanks for the post. I see you have another post for this issue

please have a look and see if it helps.


Any update on Xcode 11?

I am not able to start a meeting. When I do, it crashed with:

***** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[MYApp.AppDelegate window]: unrecognized selector sent to instance 0x283ae0410’**

Hi ddev,

Thanks for the reply. I see you have another post regarding the issue you are facing Xcode 11 start meeting crash. I will provide further assistance over there.