报错尝试:
1、如果将 app 置于后台:[Xcode] t = 1682.74s Pressing Home button
[Xcode]
[Xcode] t = 1684.16s Find the Application 'com.apple.springboard'

2、使用 driver.activate_app('目标包名'):A session is either terminated or not started


↙↙↙阅读原文可查看相关链接,并与作者交流