I have recorder script using appium inspector, when i am trying to run the project from eclipse I am getting issues

package loginwithphone;

import io.appium.java_client.AppiumDriver;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.ios.IOSDriver;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

public class LoginWithPhone {
public static AppiumDriver wd;

@BeforeTest
public static void main(String[] args) {
	DesiredCapabilities capabilities = new DesiredCapabilities();
	capabilities.setCapability("appium-version", "1.0");
    capabilities.setCapability("platformName", "iOS");
	capabilities.setCapability("platformVersion", "9.3");
	capabilities.setCapability("deviceName", "iPhone 6s Plus");
	capabilities.setCapability("app", "/Users/xxx/Desktop/xxx.app");
	wd = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
	wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);

@Test
wd.findElement(By.name(“Connect With Facebook”)).click();
wd.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIAScrollView[1]/UIAWebView[1]/UIATextField[1]")).sendKeys(“xxx”);
wd.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIAScrollView[1]/UIAWebView[1]/UIASecureTextField[1]")).sendKeys(“xxxx”);
wd.findElement(By.name(“OK”)).click();
wd.findElement(By.name(“Allow”)).click();
wd.findElement(By.name(“OK”)).click();
wd.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATextField[1]/UIATextField[1]")).sendKeys(“byg1234”);
wd.findElement(By.name(“Apply Referral Code”)).click();
wd.findElement(By.name(“OK”)).click();
wd.close();

**On Compilation I get **

Exception in thread “main” java.lang.Error: Unresolved compilation problems:
Syntax error, insert “VariableDeclarators” to complete LocalVariableDeclaration
Syntax error, insert “;” to complete LocalVariableDeclarationStatement
findElement cannot be resolved or is not a field
The method click() is undefined for the type By

at loginwithphone.LoginWithPhone.main(LoginWithPhone.java:32)

Try replace
@BeforeTest
public static void main(String[] args)

With
@BeforeTest
public void BeforeMethod()