简体   繁体   English

运行脚本后应用崩溃

[英]App crashes after I run the script

I'm trying to run my tests scripts on different device(iPhone, iPad, Air), but all the same. 我正在尝试在其他设备(iPhone,iPad,Air)上运行测试脚本,但是都一样。 When i push Play button ,app started and crashed. 当我按“播放”按钮时,应用启动并崩溃了。 And my scripts can not be executed.(Simply stopped). 而且我的脚本无法执行。(已停止)。 Please tell me why!?I use UI automation tool. 请告诉我为什么!我使用UI自动化工具。

Thanks! 谢谢!

in main.m in main function use this code, 在main.m中的main函数中使用此代码,

@try {
        @autoreleasepool {
            return UIApplicationMain(argc, argv, nil, NSStringFromClass([RRAppDelegate class]));
        }
    }
    @catch (NSException *exception) {
        NSLog( @"There is some error === %@",[NSString stringWithFormat:@"%@",exception]);
    }

It will show u the err reason. 它会向您显示错误的原因。 I haven't 50 reputation, so i am unable to comment. 我没有50声望,所以我无法发表评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM