I am writing library which I am trying to distribute via cocoa pods, but when I run pod lib lint my build fails only for watchOS, it says that can not find watch OS simulator with specific ID, but after that list all simulators and at that list there is a simulator with that ID. Please take a look at image.
why is this happening and how I can resolve it?
I’ve tried to keep open that watch os simulator and closed also while I am running pod lib lint command, but same result.
2
Answers
This issue was introduced with Xcode 14. The CocoaPods tracking issue at https://github.com/CocoaPods/CocoaPods/issues/11558.
One workaround is to use Xcode 13.
For me, changing the deployment target to a simulator version you have installed solved the issue. Here’s how to download earlier simulator runtimes.