TestNG - Original error: You must include a platformName capability

MacOS sierra
Appium v1.6.4-beta

I tried to run test with TestNG, but cannot run it.
I have started server as well before run. But it does not work.

TestNG script

Eclipce log

Try removing or commenting this out:

capabilities.setCapability(“u_did”, “6E500C3C-A91D-40A5-BB99-D89A0B0610CD”);

I don’t believe you need to pass a udid for a simulator. You can always tell a simulator udid because it has dashes.