Mobile Safari doesn't start automatically


I am testing with a real iOS device.
My test script stops at the following line (line 53), but the process is still active and seems to be waiting for Mobile safari launch. So, I manually launch mobile safari on the device, test script starts the rest of the script.

The same script worked well yesterday. I needed to update the provisioning profile today, and the problem started after that. What I did was re-generate the provisioning profile at, retrieved it from Xcode and built safariLauncher and WebDriverAgent manually without changing any build setting. I think the cause lies in signing for safariLauncher, but stuck. Any suggestions is appreciated.

#Line 53. Attached the link of the full Appium log below.
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“”,“arguments”:["-u",“”],“shouldWaitForQuiescence”:true}}

Full Appium Log

Mac 10.12.4
Xcode 8.3
Appium 1.6.3
iPhone 7 with iOS 10.2.1

Desired Capabilities
caps.setCapability(MobileCapabilityType.BROWSER_NAME, “Safari”);
caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, “10.2”);
caps.setCapability(MobileCapabilityType.PLATFORM_NAME, “iOS”);
caps.setCapability(MobileCapabilityType.DEVICE_NAME,“iPhone 7”);
caps.setCapability(“autoWebview”, true);
caps.setCapability(“safariInitialUrl”, “”);
caps.setCapability(“bundleid”, “”);
caps.setCapability(“startIWDP”, true);
caps.setCapability(“safariAllowPopups”, “true”);
caps.setCapability(“unexpectedAlertBehaviour”, “accept”);
caps.setCapability(“appiumVersion”, “1.6.3”);
caps.setCapability(“safariOpenLinksInBackground”, “true”);
caps.setCapability(“nativeWebTap”, “true”);
caps.setCapability(“showIOSLog”, “true”);

Closing this thread as Mobile Safari is now launching automatically today.

What I did today is just rebooting the device.
I did reboot yesterday, but it didn’t work at that time. It is weird.