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

后端 未结 2 441
[愿得一人]
[愿得一人] 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:38

    Encountered the same issue and solved with the following steps:

    1. Copy Xcode from the Applications folder to another location
    2. Delete the copy left in Applications & make sure no copies of Xcode remain
    3. Move the copy from step 1 back to the Applications folder
    4. Restarted machine

    It appears that some value is not being set, since Xcode is not being installed through the App store.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题