ERROR EPIPE running appium programmatically with gradle in a bash -c

hey! I’m using appium with selenium grid, Jenkins and gradle.
In gradle you’re not allow to start process in background except if you have no problems with path environment variable
here i use workaround by forking a bash -c I do this to let jenkins run other process (like cucumber)
BUT when i run my command with gradle it start successfully appium, it connect to selenium grid and i start a new test AND THEN it crash with an error epipe T_T

[Appium] Welcome to Appium v1.6.4
[Appium] Non-default server args:
[Appium]   safari: true
[Appium]   nodeconfig: /Users/admin/Documents/installations/SeleniumGridLocalHost/IOSSeleniumGrid.json
[Appium]   platformName: iOS
[Appium]   platformVersion: 10.2
[Appium]   deviceName: iPad de Admin
[Appium]   browserName: Safari
[Appium]   udid: auto
[Appium] Deprecated server args:
[Appium]   --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium]   --platform-version => --default-capabilities '{"platformVersion":"10.2"}'
[Appium]   --device-name => --default-capabilities '{"deviceName":"iPad de Admin"}'
[Appium]   --browser-name => --default-capabilities '{"browserName":"Safari"}'
[Appium]   -U,--udid => --default-capabilities '{"udid":"auto"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium]   platformName: 'iOS'
[Appium]   platformVersion: '10.2'
[Appium]   deviceName: 'iPad de Admin'
[Appium]   browserName: 'Safari'
[Appium]   udid: 'auto'
[debug] [Appium] Starting auto register thread for grid. Will try to register every 5000 ms.
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4723 in the registry.
[debug] [Appium] Appium successfully registered with the grid on 172.30.6.34:4444
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"autoWebviewTimeout":"10000","screen-resolution":"1280x1024","startIWDP":true,"version":"","deviceName":"iPad de admin","platform":"MAC","platformVersion":"10.2","automationName":"XCUITest","useNewWDA":true,"browserName":"Safari","takesScreenshot":true,"javascriptEnabled":true,"udid":"auto","platformName":"iOS"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"autoWebviewTimeout":"10000","screen-resolution":"1280x1024","startIWDP":true,"version":"","deviceName":"iPad de admin","platform":"MAC","platformVersion":"10.2","automationName":"XCUITest","useNewWDA":true,"browserName":"Safari","takesScreenshot":true,"javascriptEnabled":true,"udid":"auto","platformName":"iOS"},null,null,null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1492532995798 (18:29:55 GMT+0200 (CEST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium]   autoWebviewTimeout: '10000'
[Appium]   screen-resolution: '1280x1024'
[Appium]   startIWDP: true
[Appium]   version: ''
[Appium]   deviceName: 'iPad de admin'
[Appium]   platform: 'MAC'
[Appium]   platformVersion: '10.2'
[Appium]   automationName: 'XCUITest'
[Appium]   useNewWDA: true
[Appium]   browserName: 'Safari'
[Appium]   takesScreenshot: true
[Appium]   javascriptEnabled: true
[Appium]   udid: 'auto'
[Appium]   platformName: 'iOS'
[debug] [XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] The following capabilities were provided, but are not recognized by appium: autoWebviewTimeout, screen-resolution, version, platform, takesScreenshot, javascriptEnabled.
[BaseDriver] Session created with session id: 429a3b78-bff0-42b7-8258-440ee96f9907
[debug] [XCUITest] Xcode version set to '8.2.1' (tools v8.2.0.0.1.1480973914)
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1492532997393 (18:29:57 GMT+0200 (CEST))
[debug] [XCUITest] Auto-detecting real device udid...
[debug] [XCUITest] Using idevice_id
[debug] [XCUITest] Detected real device udid: 'MYUDID'
[debug] [XCUITest] Creating iDevice object with udid 'MYUDID'
[XCUITest] Determining device to run tests on: udid: 'MYUDID', real device: true
[XCUITest] Safari test requested
[debug] [BaseDriver] Event 'appConfigured' logged at 1492533000396 (18:30:00 GMT+0200 (CEST))
[debug] [BaseDriver] Event 'resetStarted' logged at 1492533000397 (18:30:00 GMT+0200 (CEST))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1492533000399 (18:30:00 GMT+0200 (CEST))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1492533000819 (18:30:00 GMT+0200 (CEST))
[XCUITest] Setting up real device
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1492533000822 (18:30:00 GMT+0200 (CEST))
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] Capability 'useNewWDA' set, so uninstalling WDA before proceeding
[debug] [XCUITest] Removing WDA application from device
[debug] [BaseDriver] Event 'wdaUninstalled' logged at 1492533001373 (18:30:01 GMT+0200 (CEST))
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=MYUDID -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.2' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-04-18 18:30:20.599 xcodebuild[2102:66929]  IDELogStore: Failed to remove screenshot at path: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/Screenshot_A93EB65E-F885-4D18-B1A8-B0ECC17C9C3E.png. Error: Error Domain=NSCocoaErrorDomain Code=513 "“Screenshot_A93EB65E-F885-4D18-B1A8-B0ECC17C9C3E.png” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/Screenshot_A93EB65E-F885-4D18-B1A8-B0ECC17C9C3E.png, NSUserStringVariant=(
[Xcode]     Remove
[Xcode] ), NSUnderlyingError=0x7fbeb8d54260 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}. User info: {
[Xcode]     NSFilePath = "/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/Screenshot_A93EB65E-F885-4D18-B1A8-B0ECC17C9C3E.png";
[Xcode]     NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"";
[Xcode]     NSUserStringVariant =     (
[Xcode]         Remove
[Xcode]     );
[Xcode] }.
[Xcode] 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 2017-04-18 18:30:20.670 xcodebuild[2102:66929]  IDELogStore: Failed to remove screenshot at path: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/Screenshot_EC211226-E20C-4D23-B0CE-F24C6296081F.png. Error: Error Domain=NSCocoaErrorDomain Code=513 "“Screenshot_EC211226-E20C-4D23-B0CE-F24C6296081F.png” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/Screenshot_EC211226-E20C-4D23-B0CE-F24C6296081F.png, NSUserStringVariant=(
[Xcode]     Remove
[Xcode] ), NSUnderlyingError=0x7fbeb8dab160 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}. User info: {
[Xcode]     NSFilePath = "/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/Screenshot_EC211226-E20C-4D23-B0CE-F24C6296081F.png";
[Xcode]     NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"";
[Xcode]     NSUserStringVariant =     (
[Xcode]         Remove
[Xcode]     );
[Xcode] }.
[Xcode] 
[Xcode] 2017-04-18 18:30:20.670 xcodebuild[2102:66929]  IDELogStore: Failed to remove elements of interest file at path: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/ElementsOfInterest_47F5FDAD-76F6-493A-B723-8D8B91550E80. Error: Error Domain=NSCocoaErrorDomain Code=513 "“ElementsOfInterest_47F5FDAD-76F6-493A-B723-8D8B91550E80” couldn’t be removed because you don’t have permission to access it." UserInfo={NSFilePath=/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/ElementsOfInterest_47F5FDAD-76F6-493A-B723-8D8B91550E80, NSUserStringVariant=(
[Xcode]     Remove
[Xcode] ), NSUnderlyingError=0x7fbeb8b39050 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}. User info: {
[Xcode]     NSFilePath = "/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments/ElementsOfInterest_47F5FDAD-76F6-493A-B723-8D8B91550E80";
[Xcode]     NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"";
[Xcode]     NSUserStringVariant =     (
[Xcode]         Remove
[Xcode]     );
[Xcode] }.
[Xcode] 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] === BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
[Xcode] 
[Xcode] 
[Xcode] Check dependencies
[Xcode] 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 
[Xcode] 
[Xcode] === BUILD TARGET WebDriverAgentRunner OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
[Xcode] 
[Xcode] 
[Xcode] Check dependencies
[Xcode] 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] 
[Xcode] 
[Xcode] ** TEST BUILD SUCCEEDED **
[Xcode] 
[Xcode] 
[debug] [XCUITest] Log file for xcodebuild test: /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/CD2C44F0-4935-4D6C-88A7-261C18F23559/Session-WebDriverAgentRunner-2017-04-18_183022-IJOZLT.log
[Xcode] 2017-04-18 18:30:22.809 xcodebuild[2102:66931]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
[Xcode] /Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/CD2C44F0-4935-4D6C-88A7-261C18F23559/Session-WebDriverAgentRunner-2017-04-18_183022-IJOZLT.log
[Xcode] 
[Xcode] 2017-04-18 18:30:22.819 xcodebuild[2102:66882] [MT] IDETestOperationsObserverDebug: (A9233F46-B544-45CF-8A56-C79DE918A448) Beginning test session WebDriverAgentRunner-A9233F46-B544-45CF-8A56-C79DE918A448 at 2017-04-18 18:30:22.819 with Xcode 8C1002 on target <DVTiOSDevice: 0x7fbeb8c62240> {
[Xcode] 		deviceSerialNumber:         DMPQ9AJLG5VT
[Xcode] 		identifier:                 MYUDID
[Xcode] 		deviceClass:                iPad
[Xcode] 		deviceName:                 iPad de admin
[Xcode] 		deviceIdentifier:           MYUDID
[Xcode] 		productVersion:             10.2
[Xcode] 		buildVersion:               14C92
[Xcode] 		deviceSoftwareVersion:      10.2 (14C92)
[Xcode] 		deviceArchitecture:         arm64
[Xcode] 		deviceTotalCapacity:        12246020096
[Xcode] 		deviceAvailableCapacity:    8840294400
[Xcode] 		deviceIsTransient:          NO
[Xcode] 		ignored:                    NO
[Xcode] 		deviceIsBusy:               NO
[Xcode] 		deviceIsActivated:          YES
[Xcode] 		deviceActivationState:      Activated
[Xcode] 		deviceType:                 <DVTDeviceType:0x7fbeb5eda5e0 Xcode.DeviceType.iPhone>
[Xcode] 		supportedDeviceFamilies:    (
[Xcode]     1,
[Xcode]     2
[Xcode] )
[Xcode] 		applications:              (null)
[Xcode] 		provisioningProfiles:      (null)
[Xcode] 		activityProgress:          -2
[Xcode] 		activityTitle:             
[Xcode] 		hasInternalSupport:        NO
[Xcode] 		isSupportedOS:             YES
[Xcode] 		developerDiskMountError:   (null)
[Xcode] (null)
[Xcode] 	} (10.2 (14C92))
[Xcode] 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[Xcode] writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/q_/qrljfd293hq15gq3f1_rdyg40000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/fe71017246a3b1ea5b4f5b2053e24027/MYUDID/ManifestCache.plist
[Xcode] 
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : {\n    \"state\" : \"success\",\n    \"os\" : {\n      \"name\" : \"iOS\",\n      \"version\" : \"10.2\"\n    },\n    \"ios\" : {\n      \"simulatorVersion\" : \"10.2\",\n      \"ip\" : \"172.30.3.70\"\n    },\n    \"build\" : {\n      \"time\" : \"Apr 10 2017 17:19:55\"\n    }\n  },\n  \"sessionId\" : \"898C4274-9402-4D0A-9B72-16D53D188F10\",\n  \"status\" : 0\n}"
[debug] [XCUITest] WebDriverAgent running on ip '172.30.3.70'
[debug] [XCUITest] WebDriverAgent successfully started after 24804ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1492533031454 (18:30:31 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.apple.mobilesafari","arguments":["-u","http://appium.io"],"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"993FF9EE-433B-43CB-AAF2-39D6BF6011A1","capabilities":{"device":"ipad","browserName":"Safari","sdkVersion":"10.2","CFBundleIdentifier":"com.apple.mobilesafari"}},"sessionId":"993FF9EE-433B-43CB-AAF2-39D6BF6011A1","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1492533034250 (18:30:34 GMT+0200 (CEST))
[debug] [XCUITest] Found WDA derived data folder: '/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy'
[XCUITest] Setting '555' permissions to '/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments' folder
[debug] [XCUITest] Found WDA derived data folder: '/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs'
[XCUITest] Setting '555' permissions to '/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments' folder
[debug] [XCUITest] Found WDA derived data folder: '/Users/admin/Library/Developer/Xcode/DerivedData/WebDriverAgent-folfazwwukpzfkegdblpnfuwlvfn'
[debug] [BaseDriver] Event 'wdaPermsAdjusted' logged at 1492533034333 (18:30:34 GMT+0200 (CEST))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1492533034335 (18:30:34 GMT+0200 (CEST))
[debug] [XCUITest] Setting initial orientation to 'PORTRAIT'
[debug] [JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/993FF9EE-433B-43CB-AAF2-39D6BF6011A1/orientation] with body: {"orientation":"PORTRAIT"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{},"sessionId":"993FF9EE-433B-43CB-AAF2-39D6BF6011A1","status":0}
[debug] [BaseDriver] Event 'orientationSet' logged at 1492533036981 (18:30:36 GMT+0200 (CEST))
[debug] [BaseDriver] Event 'iwdpStarting' logged at 1492533036982 (18:30:36 GMT+0200 (CEST))
[debug] [iOS] Starting ios_webkit_debug_proxy at port 27753 on device MYUDID
[debug] [BaseDriver] Event 'iwdpStarted' logged at 1492533037003 (18:30:37 GMT+0200 (CEST))
[debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:27753
[debug] [XCUITest] Waiting for initial webview
[debug] [iOS] Waiting for 3000 ms before navigating to view.
Error: write EPIPE
    at exports._errnoException (util.js:890:11)
    at WriteWrap.afterWrite (net.js:769:14)

i did run the same command line in a terminal with bash -c
btw i redirect my logs to a file but i don’t think that the problem could be link to it
here is my command :

bash -c 'PATH=$PATH:/opt/X11/bin:/Applications/android-sdk-macosx/platform-tools:/Applications/android-sdk-macosx/tools:/Documents/installations/gradle//bin:/Applications/Appium.app/Contents/Resources/app/node_modules;echo $PATH;/Applications/Appium.app/Contents/Resources/app/node_modules/appium/build/lib/main.js --log-level "debug" --nodeconfig "/Users/admin/Documents/installations/SeleniumGridLocalHost/IOSSeleniumGrid.json" --platform-version "10.2" --platform-name "iOS" --safari --browser-name "Safari" --udid "auto" --device-name "iPad of Admin">AppiumSpecialLogV2.txt'

so i think it’s should be an error about the integration of appium in gradle but i’m not sure.
If someone could help me to find out what is the problem it could be great :slight_smile:
if it’s needed i can provide more information about my working environment

edit(should i post this on git ?)

hello everyone,
i fixed the problem :
the redirection to the file was not clean… and node was waiting for the error output…
so i had to redirect the error output to my file :

/Applications/Appium.app/Contents/Resources/app/node_modules/appium/build/lib/main.js --log-level "debug" --nodeconfig "/Users/admin/Documents/installations/SeleniumGridLocalHost/IOSSeleniumGrid.json" --platform-version "10.2" --platform-name "iOS" --safari --browser-name "Safari" --udid "auto" --device-name "iPad de Admin" > AppiumSpecialLogV2.txt 2>&1

good luck for your futurs tests