How can i fix this warning: CoreSimulator is attempting to unload a stale CoreSimulatorService job

后端 未结 2 473
[愿得一人]
[愿得一人] 2021-02-02 09:57

I have a warning in my build log in teamcity. I\'ve updated Xcode on my CI-Server from 7.3.1 to 8. The step run successfully but I have this:

[Step 3/3] Startin         


        
2条回答
  •  终归单人心
    2021-02-02 10:41

    I had the same issue. I've to run both Xcode 7 (to build old version) and Xcode 8 (to build current develop branch) in my Jenkins server and I was having the issue all the time.

    Solution:

    launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true
    

    This happens because, even if you quit the simulator app, the service is still running. The above command is needed to remove the service called com.apple.CoreSimulator.CoreSimulatorService. The || true is to avoid failure when that service is not running.

提交回复
热议问题