Open ypo777 opened 8 hours ago
@ypo777 Is this happening for Simulators or real device?
If its real device can you please check if the model is present in this file - https://github.com/AppiumTestDistribution/appium-device-farm/blob/main/src/device-managers/IOSDeviceType.ts
Thank you for sharing the file. I can confirm that the model for iPhone 16 Pro (iPhone16,1) and iPhone 16 Pro Max (iPhone16,2) is present in the IOSDeviceType.ts file. However, the issue occurs immediately after starting Appium, even without any iOS devices connected.
The error refers to IOSDeviceManager.js with the message "Cannot read properties of undefined (reading ‘Width’)." This seems to be happening before any device connection is made. Could this indicate a configuration or initialization issue within the appium-device-farm plugin?
Any guidance on resolving this error would be greatly appreciated.
@ypo777 Can you please tell me the command you have used to start the server? Also give me the output of xcrun simctl list --json
Describe the bug
I am encountering an issue where the Appium server fails to start whenever iOS-related options are included in the server config file while using the appium-device-farm plugin. The server throws an error related to the IOSDeviceManager.js file, specifically indicating that it “Cannot read properties of undefined (reading ‘Width’).”
Link to Appium logs LOG
Environment