When using WebViewGold, Xcode may occasionally show the following error:
Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType
This error is not directly related to WebViewGold itself but is instead caused by an issue within the Xcode Simulator.
Solution:
Simply cleaning the project may not resolve the problem. Follow these steps to quickly fix this issue:
- Open the Terminal on your Mac.
- Enter and execute the following command:
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
- After running the command, restart your Simulator or relaunch your project through Xcode.
Alternative Solutions: If the issue persists:
- Restart your Mac entirely.
- Clean your build folder in Xcode:
- Click on “Product” from the top menu.
- Hold down the Option key and select “Clean Build Folder”.
These steps typically resolve the issue effectively, allowing you to run WebViewGold apps successfully via the Simulator.