Résolution de problèmes iOS

Résolution de problèmes iOS

 

1 - Error Domain=DTXProxyChannel Code=1 « (null) » UserInfo={DTXProxyChannelErrorMessage=Channel disconnected}

Solution : Insérer le câble USB dans un autre port

 


2 - xcodebuild: error: Unable to find a destination matching the provided destination specifier.

Solution : Il s'agit d'un problème de connexion entre l'appareil et l'ordinateur. Dans Xcode, aller à Window > Devices and Simulators, et vérifier si l'appareil est toujours connecté.

 


3 - Erreur Testrunner “Failed to terminate”

ERRO[2025-04-28T09:55:38+02:00] Error when launching the test: Test Suite 'All tests' started at 2025-04-28 09:54:38.522. Test Suite 'ios-testing-toolsUITests.xctest' started at 2025-04-28 09:54:38.522. Test Suite 'ios_testing_toolsUITests' started at 2025-04-28 09:54:38.522. Test Case '-[ios_testing_toolsUITests.ios_testing_toolsUITests testMain]' started. t = 0.00s Start Test at 2025-04-28 09:54:38.523 t = 0.06s Set Up t = 0.07s Open [PACKAGE-APP] t = 0.12s Launch [PACKAGE-APP] t = 0.12s Terminate [PACKAGE-APP] /Users/greenspector/gspt/ios-testing-tools/ios-testing-toolsUITests/action/Application.swift:22: error: -[ios_testing_toolsUITests.ios_testing_toolsUITests testMain] : Failed to terminate [PACKAGE-APP]:242: Failed to terminate [PACKAGE-APP]:0

Solution : Il s’agit d’un échec du test à fermer l’application. Il faut donc le faire manuellement : ouvrir et fermer l’application sur l’iphone à la main, puis relancer le test.