calabash / run_loop

The bridge between Calabash iOS and Xcode command-line tools like instruments and simctl.
Other
32 stars 41 forks source link

It does not work in xcode14.3, so please update deviceagent and iosmanager to the latest version. #791

Open DragonClub opened 1 year ago

DragonClub commented 1 year ago

It does not work in xcode14.3, so please update deviceagent and iosmanager to the latest version.

NlsMyFox commented 1 year ago

Hi,

We faced the same issue on our side, the W/A we found consists in recompile APPS and device_agent using CommandLineTool XCode 14.2 with Xcode 14.3.

Also interesting in a fix for XCode 14.3 and later iOS17...

Kind regards

NlsMyFox commented 11 months ago

Hi all,

Still not working with iOS17/Xcode15 ! Please help.

Kind regards

NlsMyFox commented 11 months ago

All,

Found and fix the issue... It is located on https://github.com/calabash/DeviceAgent.iOS but I have no rights to push my dev branch !

Here is my proposal patch to be applied on "DeviceAgent.iOS", then a new run_loop release must be done with updated Device_Agent:

From 2615d4f955edb672353025890260d83efc09131e Mon Sep 17 00:00:00 2001
From: Nicolas LOUIS <nicolas.louis@somfy.com>
Date: Tue, 10 Oct 2023 16:50:12 +0200
Subject: [PATCH] Fix DeviceAgent running on iOS17/Xcode15

Signed-off-by: Nicolas LOUIS <nicolas.louis@somfy.com>
---
 DeviceAgent/DeviceAgent-device.xctestrun | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/DeviceAgent/DeviceAgent-device.xctestrun b/DeviceAgent/DeviceAgent-device.xctestrun
index aa84b007..74197b40 100644
--- a/DeviceAgent/DeviceAgent-device.xctestrun
+++ b/DeviceAgent/DeviceAgent-device.xctestrun
@@ -6,8 +6,12 @@
    <dict>
        <key>IsUITestBundle</key>
        <true/>
-       <key>TestBundleDestinationRelativePath</key>
-       <string>__TESTHOST__/PlugIns/DeviceAgent.xctest</string>
+       <key>TestBundlePath</key>
+       <string>__TESTHOST__/Plugins/DeviceAgent.xctest</string>
+       <key>TestHostPath</key>
+       <string>__TESTROOT__/../../../DeviceAgent-Runner.app</string>
+       <key>UITargetAppPath</key>
+       <string>__TESTROOT__/../../../DeviceAgent-Runner.app</string>
        <key>TestHostBundleIdentifier</key>
        <string>sh.calaba.DeviceAgent.xctrunner</string>
        <key>TestingEnvironmentVariables</key>
@@ -21,8 +25,6 @@
        </dict>
        <key>UITargetAppBundleIdentifier</key>
        <string>com.example.AUT</string>
-       <key>UseDestinationArtifacts</key>
-       <true/>
        <key>UseUITargetAppProvidedByTests</key>
        <true/>
    </dict>
-- 
2.42.0