Webdriveragent: xcode 8.3 build error

Created on 29 Mar 2017  路  14Comments  路  Source: facebookarchive/WebDriverAgent

While building module 'XCTest' imported from /Users/devicepass/stf/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m:10:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.h:57:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCUIDevice.h:50:22: error: 'XCUISiriService' is partial: introduced in iOS 10.3 [-Werror,-Wunguarded-availability]
@property (readonly) XCUISiriService *siriService NS_AVAILABLE_IOS(10_3);
^
While building module 'XCTest' imported from /Users/devicepass/stf/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m:10:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.h:57:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCUIDevice.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCUISiriService.h:17:12: note: 'XCUISiriService' has been explicitly marked partial here
@interface XCUISiriService : NSObject
^
While building module 'XCTest' imported from /Users/devicepass/stf/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m:10:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.h:57:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCUIDevice.h:50:22: note: explicitly redeclare 'XCUISiriService' to silence this warning
@property (readonly) XCUISiriService *siriService NS_AVAILABLE_IOS(10_3);
^
1 error generated.
/Users/devicepass/stf/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m:10:9: fatal error: could not build module 'XCTest'

import

~~~^
2 errors generated.

Most helpful comment

the same issue like u , hope for updating

All 14 comments

the same issue like u , hope for updating

hope for updating to solve this issue

I am getting a RoutingConnection.h not found issue on build

@patchthecode If you change the Deployment Target to 10.3 on WebDriverAgentLib then you are doing wrong.
Here is the fix

The latest release ought to fix this error and allow testing in 10.3

@imurchie : when is this scheduled? I just downloaded the latest Appium 1.6.4-beta.2, but still had to manually update the below file to get around the XCUISiriService build warning/error:

/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig

Can you provide a link to a gist of the logs?

@imurchie : here you go (output of npm install and cat of ProjectSettings.xcconfig):
https://gist.github.com/davidschwab/6c58d81527588264c739fe14b44ec00e

This has been resolve by @imurchie I believe?

Yes.

i have the same error!i hasn't resolve

xcode8.3.3 cannot build

@sixleaves More information is necessary. Versions, logs, etc. "Same error" is rarely diagnostically relevant.

Was this page helpful?
0 / 5 - 0 ratings