# Can someone using appium(1.18) with Xcode 12 and iOS 14

**URL:** <https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925>\
**Category:** Issues/Bugs\
**Created:** [September 21, 2020, 9:59am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925 "2020-09-21T09:59:17Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himabindu\_Kethireddy](https://discuss.appium.io/user_avatar/discuss.appium.io/himabindu_kethireddy/32/5841_2.png) [@Himabindu\_Kethireddy](https://discuss.appium.io/u/Himabindu_Kethireddy)\
**Post date:** [September 21, 2020, 9:59am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/1 "2020-09-21T09:59:17Z")

</div>

Hi,

I am trying to install webdriveragentrunner for Xcode 12 with appium 1.18?

observing error as build failed.

 ![13](https://discuss.appium.io/uploads/default/original/2X/8/808f588924ac97411f865a3469f503bf1fc84452.png)

could someone help me out.

---

<div class="post-metadata">

**Author:** ![kurniawanfjr](https://discuss.appium.io/user_avatar/discuss.appium.io/kurniawanfjr/32/7348_2.png) [@kurniawanfjr](https://discuss.appium.io/u/kurniawanfjr)\
**Post date:** [September 30, 2020, 11:15am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/2 "2020-09-30T11:15:24Z")

</div>

I’m facing the same issue.

Hi @mykola-mokhnach could you help.

---

<div class="post-metadata">

**Author:** ![Michael\_Miroshnichen](https://discuss.appium.io/user_avatar/discuss.appium.io/michael_miroshnichen/32/8216_2.png) [@Michael\_Miroshnichen](https://discuss.appium.io/u/Michael_Miroshnichen)\
**Post date:** [October 2, 2020, 12:24pm UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/3 "2020-10-02T12:24:05Z")

</div>

I have the same issue with one of my laptops.

Reinstalling everything related to Appium, Carthage, Xcode didn’t help.

More interesting, that in that log file (mentioned in terminal) there are no errors, only “Compilation successful”.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [October 2, 2020, 4:22pm UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/4 "2020-10-02T16:22:12Z")

</div>

DerivedData folder cleared?

---

<div class="post-metadata">

**Author:** ![hoangtransdet](https://discuss.appium.io/user_avatar/discuss.appium.io/hoangtransdet/32/8198_2.png) [@hoangtransdet](https://discuss.appium.io/u/hoangtransdet)\
**Post date:** [October 6, 2020, 3:50am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/5 "2020-10-06T03:50:09Z")

</div>

I solved this issue by update WebDriverAgent from the latest release at [https://github.com/appium/WebDriverAgent](https://github.com/appium/WebDriverAgent).

---

<div class="post-metadata">

**Author:** ![Mike\_C](https://discuss.appium.io/user_avatar/discuss.appium.io/mike_c/32/8140_2.png) [@Mike\_C](https://discuss.appium.io/u/Mike_C)\
**Post date:** [October 6, 2020, 4:13pm UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/6 "2020-10-06T16:13:08Z")

</div>

This worked for me, thanks!

---

<div class="post-metadata">

**Author:** ![kurniawanfjr](https://discuss.appium.io/user_avatar/discuss.appium.io/kurniawanfjr/32/7348_2.png) [@kurniawanfjr](https://discuss.appium.io/u/kurniawanfjr)\
**Post date:** [October 9, 2020, 10:54am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/7 "2020-10-09T10:54:07Z")

</div>

I solved this issue by update Appium version to 1.18.2

---

<div class="post-metadata">

**Author:** ![jaimin](https://discuss.appium.io/user_avatar/discuss.appium.io/jaimin/32/5500_2.png) [@jaimin](https://discuss.appium.io/u/jaimin)\
**Post date:** [October 13, 2020, 11:19am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/8 "2020-10-13T11:19:58Z")

</div>

Is there any update on this issue? I am facing the same issue…tried with 12.2 beta as well still not able to launch webdriver agent on ios -14 - iPhone 6s.  
Appium version : 1.18.2  
Please refer attached log for more reference.

Please find the error below.

Testing started on ‘iPhone’  
2020-10-13 16:14:53.971 xcodebuild[25581:172603] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:  
/Users/rheemprojecttestlab/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.10.13\_16-14-06-+0530.xcresult/Staging/1\_Test/Diagnostics/WebDriverAgentRunner-81923ACC-9255-4E7D-B5D4-3ED022E2112A/WebDriverAgentRunner-1D7E56DA-6B84-43B5-A166-F3E7652387FE/Session-WebDriverAgentRunner-2020-10-13\_161453-PvgBNc.log  
2020-10-13 16:14:53.973 xcodebuild[25581:171672] [MT] IDETestOperationsObserverDebug: (222F0B3B-3101-410C-9311-758E0D4696A9) Beginning test session WebDriverAgentRunner-222F0B3B-3101-410C-9311-758E0D4696A9 at 2020-10-13 16:14:53.972 with Xcode 11B500 on target 📱\<DVTiOSDevice (0x7fb684ae07f0), iPhone, iPhone, 14.0.1 (18A393), a2e7b37a3ec4a4e0edda107246b413da2d047d87\> {  
deviceSerialNumber: FK1T7AE8HFLV  
identifier: a2e7b37a3ec4a4e0edda107246b413da2d047d87  
deviceClass: iPhone  
deviceName: iPhone  
deviceIdentifier: a2e7b37a3ec4a4e0edda107246b413da2d047d87  
productVersion: 14.0.1  
buildVersion: 18A393  
deviceSoftwareVersion: 14.0.1 (18A393)  
deviceArchitecture: arm64  
deviceTotalCapacity: 25503211520  
deviceAvailableCapacity: 18485395456  
deviceIsTransient: NO  
ignored: NO  
deviceIsBusy: NO  
deviceIsPaired: YES  
deviceIsActivated: YES  
deviceActivationState: Activated  
isPasscodeLocked: NO  
deviceType: \<DVTDeviceType:0x7fb684b397a0 Xcode.DeviceType.iPhone\>  
supportedDeviceFamilies: (  
1  
)  
applications: (null)  
provisioningProfiles: (null)  
hasInternalSupport: NO  
hasWritableSystem: NO  
isSupportedOS: YES  
bootArgs: (null)  
nextBootArgs: (null)  
connected: YES  
isWirelessEnabled: NO  
connectionType: direct  
hostname: (null)  
bonjourServiceName: 5c:f7:e6:a6:67:0a@fe80::5ef7:e6ff:fea6:670a.\_apple-mobdev2.\_tcp.local.  
activeProxiedDevice: (null)  
} (14.0.1 (18A393))  
2020-10-13 16:14:54.105 xcodebuild[25581:171672] [MT] IDETestOperationsObserverDebug: (222F0B3B-3101-410C-9311-758E0D4696A9) Failed to make test runner session:  
Error Domain=com.apple.dt.xctest.error Code=9 “Unable to connect to test manager on a2e7b37a3ec4a4e0edda107246b413da2d047d87” UserInfo={NSLocalizedDescription=Unable to connect to test manager on a2e7b37a3ec4a4e0edda107246b413da2d047d87, NSUnderlyingError=0x7fb68497c5b0 {Error Domain=XCTMobileDeviceFramework Code=34 “The service is invalid.” UserInfo={NSLocalizedDescription=The service is invalid.}}}  
2020-10-13 16:14:54.436 xcodebuild[25581:171672] [MT] DTDKRemoteDeviceConnection: Failed to start Instruments daemon on device “a2e7b37a3ec4a4e0edda107246b413da2d047d87”: Error Domain=com.apple.dtdevicekit Code=-402653150 “An error was encountered while attempting to communicate with this device. (The service is invalid.)” UserInfo={NSLocalizedFailureReason=Please try rebooting and reconnecting the device. (0xE8000022)., com.apple.dtdevicekit.stacktrace=(  
0 DTDeviceKitBase 0x0000000115a7c6e7 DTDKCreateNSError + 109  
1 DTDeviceKitBase 0x0000000115a7cde9 DTDK\_AMDErrorToNSError + 792  
2 DTDeviceKitBase 0x0000000115a8dd0c \_\_63-[DTDKRemoteDeviceConnection startFirstServiceOf:unlockKeybag:]\_block\_invoke + 301  
3 DTDeviceKitBase 0x0000000115a8d4db \_\_48-[DTDKRemoteDeviceConnection futureWithSession:]\_block\_invoke\_3 + 22  
4 DTDeviceKitBase 0x0000000115a7f15f \_\_DTDKExecuteInSession\_block\_invoke\_2 + 35  
5 DTDeviceKitBase 0x0000000115a7e593 \_\_DTDKExecuteWithConnection\_block\_invoke\_2 + 473  
6 DTDeviceKitBase 0x0000000115a7e391 \_\_DTDKExecuteWithConnection\_block\_invoke + 106  
7 libdispatch.dylib 0x00007fff6f850658 \_dispatch\_client\_callout + 8  
8 libdispatch.dylib 0x00007fff6f85ca38 \_dispatch\_sync\_invoke\_and\_complete\_recurse + 65  
9 libdispatch.dylib 0x00007fff6f85c5ab \_dispatch\_sync\_f\_slow + 195  
10 DVTFoundation 0x0000000106617650 DVTDispatchBarrierSync + 208  
11 DVTFoundation 0x00000001065eea78 -[DVTDispatchLock performLockedBlock:] + 64  
12 DTDeviceKitBase 0x0000000115a7e292 DTDKExecuteWithConnection + 226  
13 DTDeviceKitBase 0x0000000115a7efc9 DTDKExecuteInSession + 376  
14 DTDeviceKitBase 0x0000000115a8d410 \_\_48-[DTDKRemoteDeviceConnection futureWithSession:]\_block\_invoke\_2 + 112  
15 DVTFoundation 0x00000001066153ba **DVT\_CALLING\_CLIENT\_BLOCK** + 7  
16 DVTFoundation 0x0000000106616a92 \_\_DVTDispatchAsync\_block\_invoke + 809  
17 libdispatch.dylib 0x00007fff6f84f6c4 \_dispatch\_call\_block\_and\_release + 12  
18 libdispatch.dylib 0x00007fff6f850658 \_dispatch\_client\_callout + 8  
19 libdispatch.dylib 0x00007fff6f855c44 \_dispatch\_lane\_serial\_drain + 597  
20 libdispatch.dylib 0x00007fff6f8565d6 \_dispatch\_lane\_invoke + 363  
21 libdispatch.dylib 0x00007fff6f85fc09 \_dispatch\_workloop\_worker\_thread + 596  
22 libsystem\_pthread.dylib 0x00007fff6faaea3d \_pthread\_wqthread + 290  
23 libsystem\_pthread.dylib 0x00007fff6faadb77 start\_wqthread + 15  
), DVTRadarComponentKey=487927, NSLocalizedDescription=An error was encountered while attempting to communicate with this device. (The service is invalid.)}

\*\*\* If you believe this error represents a bug, please attach the result bundle at /Users/rheemprojecttestlab/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.10.13\_16-14-06-+0530.xcresult

2020-10-13 16:14:54.442 xcodebuild[25581:171672] [MT] IDETestOperationsObserverDebug: 0.481 elapsed – Testing started completed.  
2020-10-13 16:14:54.442 xcodebuild[25581:171672] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start  
2020-10-13 16:14:54.442 xcodebuild[25581:171672] [MT] IDETestOperationsObserverDebug: 0.481 sec, +0.481 sec – end

Test session results, code coverage, and logs:  
/Users/rheemprojecttestlab/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.10.13\_16-14-06-+0530.xcresult

Testing failed:  
WebDriverAgentRunner:  
The test runner encountered an error (Failed to establish communication with the test runner. (Underlying error: Unable to connect to test manager on a2e7b37a3ec4a4e0edda107246b413da2d047d87. (Underlying error: The service is invalid.)))

\*\* TEST FAILED \*\*[log.txt](https://discuss.appium.io/uploads/short-url/6h28jtN3vvMOeUQxuo9gGYc7ChB.txt) (16.9 KB)

---

<div class="post-metadata">

**Author:** ![Nimai\_Walsh](https://discuss.appium.io/user_avatar/discuss.appium.io/nimai_walsh/32/6790_2.png) [@Nimai\_Walsh](https://discuss.appium.io/u/Nimai_Walsh)\
**Post date:** [October 20, 2020, 1:21am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/9 "2020-10-20T01:21:58Z")

</div>

I had issue with this too. It was caused by Carthage. Simple fix is installing the latest Appium Beta, and rebuild your WDA file.

npm install -g appium@beta

1.19.0-beta.0 at the time of writing.

---

<div class="post-metadata">

**Author:** ![Vans](https://discuss.appium.io/user_avatar/discuss.appium.io/vans/32/8287_2.png) [@Vans](https://discuss.appium.io/u/Vans)\
**Post date:** [November 9, 2020, 8:06am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/11 "2020-11-09T08:06:39Z")

</div>

hello! Did you solve this issue?

---

<div class="post-metadata">

**Author:** ![jaimin](https://discuss.appium.io/user_avatar/discuss.appium.io/jaimin/32/5500_2.png) [@jaimin](https://discuss.appium.io/u/jaimin)\
**Post date:** [November 27, 2020, 12:58pm UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/12 "2020-11-27T12:58:03Z")

</div>

Yes , It’s working with the same versions now

---

<div class="post-metadata">

**Author:** ![Lien\_Khuong](https://discuss.appium.io/user_avatar/discuss.appium.io/lien_khuong/32/8241_2.png) [@Lien\_Khuong](https://discuss.appium.io/u/Lien_Khuong)\
**Post date:** [November 30, 2020, 1:48am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/13 "2020-11-30T01:48:29Z")

</div>

I must make some modification

\*I used the “idevicescreenshot” for taking the screenshot, there is a error

> Could not connect to screenshotr!  
> Need to get the latest source code from [GitHub - libimobiledevice/libimobiledevice: A cross-platform protocol library to communicate with iOS devices](https://github.com/libimobiledevice/libimobiledevice) and recompile

- The hidden keyboard board in keyboard of ipad is changed

> iOS 14: キーボードを非表示  
> iOS 13/iOS19: キーボードを隠す

- Before sending the value into textfield, I must to add

> element.click()  
> sleep(1)

- on iOS14, I cant use the “value” attribute to get the value of element, It must be changed to “name” or “label”

---

<div class="post-metadata">

**Author:** ![Deep\_Das](https://discuss.appium.io/user_avatar/discuss.appium.io/deep_das/32/7222_2.png) [@Deep\_Das](https://discuss.appium.io/u/Deep_Das)\
**Post date:** [December 15, 2020, 1:49pm UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/14 "2020-12-15T13:49:47Z")

</div>

Hello All,  
I am very much excited with lots of techies with good information sharing for iOS automation . Thanks .  
I have xcode 11.5 , iOS 13.4(iPhone11) and one more device with iOS 14 ( iphone7) , so which appium version will work for automation ? If at all any changes required , what are those changes I have to do? Can you please guide me. I am new to this. Thanks a ton in advance. Please help me.  
Thanks,  
Deep

---

<div class="post-metadata">

**Author:** ![Conrad\_Braam](https://discuss.appium.io/user_avatar/discuss.appium.io/conrad_braam/32/7031_2.png) [@Conrad\_Braam](https://discuss.appium.io/u/Conrad_Braam)\
**Post date:** [April 28, 2022, 7:44am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/15 "2022-04-28T07:44:18Z")

</div>

confused, can someone explain what the screenshotr! service is, where it executes and what is the steps to find and mount a developer image as described in some documentation. what is a developer image (or is that a .dmg?)  
appium @1.22.3 on both of my machines one works. one does not.  
ios-deploy @1.11.4

They are on different OS (Monterey machine is non-working, BigSur machine is working) and thus on different Xcode versions

---

<div class="post-metadata">

**Author:** ![Conrad\_Braam](https://discuss.appium.io/user_avatar/discuss.appium.io/conrad_braam/32/7031_2.png) [@Conrad\_Braam](https://discuss.appium.io/u/Conrad_Braam)\
**Post date:** [April 28, 2022, 10:10am UTC](https://discuss.appium.io/t/can-someone-using-appium-1-18-with-xcode-12-and-ios-14/31925/16 "2022-04-28T10:10:33Z")

</div>

worked for me when I found that:  
if idevicescreenshot errors with

“unable to connect to screenshotr!”

This might have led me to the problem being in libimobiledevice, but I went down a rabbit hole around the imagemount command and disk image mount failure that was not relevant to me.

I found this was a bit harder to troubleshoot and some errors in some peoples steps

> brew uninstall --force ideviceinstaller  
> brew uninstall --force libimobiledevice  
> brew install --HEAD libimobiledevice -g  
> brew install ideviceinstaller -g

this fails, due to a new module called libimobiledevice-glue which is omitted from the brew recipe, I eventually found these steps solved it [Homebrew installation of libimobiledevice from HEAD fails with missing package libimobiledevice-glue-1.0 · Issue #1217 · libimobiledevice/libimobiledevice · GitHub](https://github.com/libimobiledevice/libimobiledevice/issues/1217#issuecomment-1009402345)

> brew create “[GitHub - libimobiledevice/libimobiledevice-glue: A library with common code used by libraries and tools around the libimobiledevice project](https://github.com/libimobiledevice/libimobiledevice-glue.git)”

in vim tap GV to select all text, hit del

paste the following text

> class LibimobiledeviceGlue \< Formula  
> desc “”  
> homepage “”  
> license “”  
> head “[GitHub - libimobiledevice/libimobiledevice-glue: A library with common code used by libraries and tools around the libimobiledevice project](https://github.com/libimobiledevice/libimobiledevice-glue.git)”
> 
> depends\_on “autoconf” =\> :build  
> depends\_on “automake” =\> :build  
> depends\_on “libtool” =\> :build  
> depends\_on “pkg-config” =\> :build  
> depends\_on “libplist”
> 
> def install  
> system “./autogen.sh”, “–prefix=#{prefix}”  
> system “make”, “install”  
> end
> 
> end

(my indentation here might be a bit off) if you get that bit wrong just go

> brew edit libimobiledevice-glue

next go

> brew install --HEAD libimobiledevice-glue

> brew edit libimobiledevice

add this line

> `depends_on "libimobiledevice-glue"`

and then run

> brew install --HEAD libimobiledevice
