Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple TV 4K failures due to NSInternalInconsistencyException #543

Open
9 tasks
kostajaitachi opened this issue Jan 23, 2022 · 6 comments
Open
9 tasks

Apple TV 4K failures due to NSInternalInconsistencyException #543

kostajaitachi opened this issue Jan 23, 2022 · 6 comments

Comments

@kostajaitachi
Copy link

kostajaitachi commented Jan 23, 2022

MUST READ BEFORE YOU FILE (DELETE THIS SECTION BEFORE FILING)

Include the command line arguments you used for ios-deploy.

ios-deploy -r -d -b /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app -i 60bab40b51e7cde303632460e682a4362049b116

Don't forget to check out the README before filing this issue.

Expected behavior

The test application should open prime video application on an Apple TV 4K.

Actual behavior.

On the device, It goes into black screen with floating message as "Automation Running"

Steps to reproduce the problem

  1. Create a basic tvOS application and within UI tests just add these 2 lines
let pvApp = XCUIApplication(bundleIdentifier: "com.amazon.aiv.AIVApp")
pvApp.launch()
  1. Build the application for Generic tvOS.
  2. Execute it through
ios-deploy -r -d -b /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app -i 60bab40b51e7cde303632460e682a4362049b116

Getting following logs at my side

[....] Waiting for iOS device to be connected
[....] Using 60bab40b51e7cde303632460e682a4362049b116 (J105aAP, Apple TV 4K, appletvos, arm64, 15.2, ) a.k.a. 'LHR AVOC Apple TV 01'.
------ Uninstall phase ------
[ OK ] Uninstalled package with bundle id com.amazon.taas.tvos.PTSTVOSStartUITests.xctrunner
------ Install phase ------
[  0%] Found 60bab40b51e7cde303632460e682a4362049b116 (J105aAP, Apple TV 4K, appletvos, arm64, 15.2, ) a.k.a. 'LHR AVOC Apple TV 01' connected through WIFI, beginning install
[  5%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/META-INF/ to device
[  5%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/META-INF/com.apple.ZipMetadata.plist to device
[  5%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/_CodeSignature/ to device
[  6%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/_CodeSignature/CodeResources to device
[  6%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PTSTVOSStartUITests-Runner to device
[  7%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/ to device
[  7%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/ to device
[  8%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/_CodeSignature/ to device
[  8%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/_CodeSignature/CodeResources to device
[  8%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/PTSTVOSStartUITests to device
[  9%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/Info.plist to device
[  9%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/ to device
[ 10%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/ to device
[ 10%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Resources/ to device
[ 11%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Resources/DWARF/ to device
[ 11%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Resources/DWARF/PTSTVOSStartUITests to device
[ 13%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Resources/Swift/ to device
[ 14%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Resources/Swift/aarch64/ to device
[ 14%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Resources/Swift/aarch64/XCTest.swiftinterface to device
[ 15%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest.dSYM/Contents/Info.plist to device
[ 15%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/ to device
[ 15%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUnit.framework/ to device
[ 16%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUnit.framework/_CodeSignature/ to device
[ 16%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUnit.framework/_CodeSignature/CodeResources to device
[ 17%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUnit.framework/XCUnit to device
[ 17%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUnit.framework/Info.plist to device
[ 18%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUnit.framework/version.plist to device
[ 18%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTAutomationSupport.framework/ to device
[ 18%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTAutomationSupport.framework/_CodeSignature/ to device
[ 19%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTAutomationSupport.framework/_CodeSignature/CodeResources to device
[ 19%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTAutomationSupport.framework/Info.plist to device
[ 20%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTAutomationSupport.framework/XCTAutomationSupport to device
[ 23%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTAutomationSupport.framework/version.plist to device
[ 23%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUIAutomation.framework/ to device
[ 24%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUIAutomation.framework/_CodeSignature/ to device
[ 24%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUIAutomation.framework/_CodeSignature/CodeResources to device
[ 25%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUIAutomation.framework/XCUIAutomation to device
[ 30%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUIAutomation.framework/Info.plist to device
[ 30%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCUIAutomation.framework/version.plist to device
[ 31%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTest.framework/ to device
[ 31%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTest.framework/_CodeSignature/ to device
[ 32%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTest.framework/_CodeSignature/CodeResources to device
[ 32%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTest.framework/XCTest to device
[ 33%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTest.framework/Info.plist to device
[ 33%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTest.framework/version.plist to device
[ 34%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTestCore.framework/ to device
[ 34%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTestCore.framework/_CodeSignature/ to device
[ 35%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTestCore.framework/_CodeSignature/CodeResources to device
[ 35%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTestCore.framework/XCTestCore to device
[ 41%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTestCore.framework/Info.plist to device
[ 42%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/XCTestCore.framework/version.plist to device
[ 42%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Frameworks/libXCTestSwiftSupport.dylib to device
[ 44%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/embedded.mobileprovision to device
[ 49%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/Info.plist to device
[ 49%] Copying /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app/PkgInfo to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
[ 75%] CreatingContainer
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[ 95%] GeneratingApplicationMap
[100%] Installed package /Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app
------ Debug phase ------
Starting debug of 60bab40b51e7cde303632460e682a4362049b116 (J105aAP, Apple TV 4K, appletvos, arm64, 15.2, ) a.k.a. 'LHR AVOC Apple TV 01' connected through WIFI...
[  0%] Looking up developer disk image
[ 95%] Developer disk image mounted successfully
Symbol Path: /Users/pvlo/Library/Developer/Xcode/tvOS DeviceSupport/15.2 (19K53)/Symbols
[100%] Connecting to remote debug server
-------------------------
(lldb) command source -s 0 '/tmp/BEB7C5ED-F5D5-4FAF-B1A1-D0E20A48000D/fruitstrap-lldb-prep-cmds-60bab40b51e7cde303632460e682a4362049b116'
Executing commands in '/tmp/BEB7C5ED-F5D5-4FAF-B1A1-D0E20A48000D/fruitstrap-lldb-prep-cmds-60bab40b51e7cde303632460e682a4362049b116'.
(lldb)     platform select remote-ios --sysroot '/Users/pvlo/Library/Developer/Xcode/tvOS DeviceSupport/15.2 (19K53)/Symbols'
  Platform: remote-ios
 Connected: no
  SDK Path: "/Users/pvlo/Library/Developer/Xcode/tvOS DeviceSupport/15.2 (19K53)/Symbols"
(lldb)     target create "/Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app"
Current executable set to '/Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos/PTSTVOSStartUITests-Runner.app' (arm64).
(lldb)     script fruitstrap_device_app="/private/var/containers/Bundle/Application/554ABE60-E4E8-4D31-AD52-AE37DDD8975F/PTSTVOSStartUITests-Runner.app"
(lldb)     script fruitstrap_connect_url="connect://127.0.0.1:53424"
(lldb)     script fruitstrap_output_path=""
(lldb)     script fruitstrap_error_path=""
(lldb)     target modules search-paths add /usr "/Users/pvlo/Library/Developer/Xcode/tvOS DeviceSupport/15.2 (19K53)/Symbols/usr" /System "/Users/pvlo/Library/Developer/Xcode/tvOS DeviceSupport/15.2 (19K53)/Symbols/System" "/private/var/containers/Bundle/Application/554ABE60-E4E8-4D31-AD52-AE37DDD8975F" "/Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos" "/var/containers/Bundle/Application/554ABE60-E4E8-4D31-AD52-AE37DDD8975F" "/Users/pvlo/Library/Developer/Xcode/DerivedData/PTSTVOSStart-ehzmbryxboulaqgmscerqsfioirx/Build/Products/Debug-appletvos" /Developer "/Users/pvlo/Library/Developer/Xcode/tvOS DeviceSupport/15.2 (19K53)/Symbols/Developer"
(lldb)     command script import "/tmp/BEB7C5ED-F5D5-4FAF-B1A1-D0E20A48000D/fruitstrap_60bab40b51e7cde303632460e682a4362049b116.py"
(lldb)     command script add -f fruitstrap_60bab40b51e7cde303632460e682a4362049b116.connect_command connect
(lldb)     command script add -s asynchronous -f fruitstrap_60bab40b51e7cde303632460e682a4362049b116.run_command run
(lldb)     command script add -s asynchronous -f fruitstrap_60bab40b51e7cde303632460e682a4362049b116.autoexit_command autoexit
(lldb)     command script add -s asynchronous -f fruitstrap_60bab40b51e7cde303632460e682a4362049b116.safequit_command safequit
(lldb)     connect
(lldb)     run
success
2022-01-23 05:57:34.783717+0000 PTSTVOSStartUITests-Runner[340:5158] Running tests...
2022-01-23 05:57:34.804891+0000 PTSTVOSStartUITests-Runner[340:5158] Found most recent test bundle at NSBundle </var/containers/Bundle/Application/554ABE60-E4E8-4D31-AD52-AE37DDD8975F/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest> (not yet loaded)
2022-01-23 05:57:34.805044+0000 PTSTVOSStartUITests-Runner[340:5158] Synthesizing a test configuration for the test bundle
2022-01-23 05:57:34.805310+0000 PTSTVOSStartUITests-Runner[340:5158] Running with configuration <XCTestConfiguration: 0x105b0acf0>
UITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/
	         testBundleRelativePath:(null)
	              productModuleName:(null)
	                    testsToSkip:(null)
	                     testsToRun:(null)

	               testsDrivenByIDE:no
	              sessionIdentifier:(null)
	      disablePerformanceMetrics:no
	treatMissingBaselinesAsFailures:no
	                baselineFileURL:(null)
	       baselineFileRelativePath:(null)
icationPath:(null)
	      targetApplicationBundleID:(null)
	 testApplicationDependencies:(null)
	 testApplicationUserOverrides:(null)
	     targetApplicationArguments:(null)
	   targetApplicationEnvironment:(null)

	       testsMustRunOnMainThread:no
	         initializeForUITesting:YES
	         traceCollectionEnabled:(null)
	 enablePerformanceTestsDiagnostics:(null)
	 aggregateStatisticsBeforeCrash:(null)
	        automationFrameworkPath:(null)
          emitOSLogs:YES
	       systemAttachmentLifetime:0
	         userAttachmentLifetime:0
	   gatherLocalizableStringsData:no
	          testExecutionOrdering:alphabetical
	    randomExecutionOrderingSeed:(null)
<XCTRepetitionPolicy: 0x28027b420>
	            mode:None
	            maximumIterations:1
	            repeatInNewRunnerProcess:NO

	            testTimeoutsEnabled:NO
	 defaultTestExecutionTimeAllowance:600
	 maximumTestExecutionTimeAllowance:0
                IDECapabilities:(null)
	         applicationBundleInfos:(null)
2022-01-23 05:57:35.964291+0000 PTSTVOSStartUITests-Runner[340:5158] *** Assertion failure in -[XCUIApplication init], XCUIApplication.m:110
2022-01-23 05:57:35.964700+0000 PTSTVOSStartUITests-Runner[340:5158] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No target application path specified via test configuration: <XCTestConfiguration: 0x105b0acf0>
	                  testBundleURL:file:///var/containers/Bundle/Application/554ABE60-E4E8-4D31-AD52-AE37DDD8975F/PTSTVOSStartUITests-Runner.app/PlugIns/PTSTVOSStartUITests.xctest/
	         testBundleRelativePath:(null)
	              productModuleName:(null)
	                    testsToSkip:(null)
	                     testsToRun:(null)
tsToIDE:no
	               testsDrivenByIDE:no
	              sessionIdentifier:(null)
	      disablePerformanceMetrics:no
	treatMissingBaselinesAsFailures:no
	                baselineFileURL:(null)
	       baselineFileRelativePath:(null)
  targetApplicationPath:(null)
	      targetApplicationBundleID:(null)
	 testApplicationDependencies:(null)
	 testApplicationUserOverrides:(null)
	     targetApplicationArguments:(null)
	   targetApplicationEnvironment:(null)
tivities:YES
	       testsMustRunOnMainThread:no
	         initializeForUITesting:YES
	         traceCollectionEnabled:(null)
	 enablePerformanceTestsDiagnostics:(null)
	 aggregateStatisticsBeforeCrash:(null)
	        automationFrameworkPath:(null)
	                     emitOSLogs:YES
	       systemAttachmentLifetime:0
	         userAttachmentLifetime:0
	   gatherLocalizableStringsData:no
	          testExecutionOrdering:alphabetical
	    randomExecutionOrderingSeed:(null)
itionPolicy:<XCTRepetitionPolicy: 0x28027b420>
	            mode:None
	            maximumIterations:1
	            repeatInNewRunnerProcess:NO

	            testTimeoutsEnabled:NO
	 defaultTestExecutionTimeAllowance:600
lowance:0
	                IDECapabilities:(null)
	         applicationBundleInfos:(null)
'
*** First throw call stack:
4 0x105786614 0x105751f94 0x1057823ec 0x105751e10 0x1057bd9e0 0x1057bdb34 0x10577f8dc 0x10575aaf8 0x10577f67c 0x105750ee8 0x104f9555c 0x104f95540 0x188a39a08 0x188a38cb8 0x188a3344c 0x188a32bf4 0x18bc29afc 0x1c5244254 0x1c5249650 0x104f95770 0x1053311d0)
libc++abi: terminating with uncaught exception of type NSException
Process 340 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001886396f4 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
->  0x1886396f4 <+8>:  b.lo   0x188639710               ; <+36>
    0x1886396f8 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1886396fc <+16>: mov    x29, sp
    0x188639700 <+20>: bl     0x1886156f8               ; cerror_nocancel
Target 0: (PTSTVOSStartUITests-Runner) stopped.

System Specs

Please run the commands below in your Terminal.app and include it in the issue. Check when done and include results below.

  • 1. system_profiler SPSoftwareDataType
    Software:

    System Software Overview:

    System Version: macOS 11.6 (20G165)
    Kernel Version: Darwin 20.6.0
    Boot Volume: Macintosh HD
    Boot Mode: Normal
    Computer Name: PVLO’s Mac Pro
    User Name: PVLO (pvlo)
    Secure Virtual Memory: Enabled
    System Integrity Protection: Enabled
    Time since boot: 8 days 11:19
    
  • 2. ios-deploy -V

1.11.4

  • 3. xcodebuild -version
    Xcode 13.2.1
    Build version 13C100
  • 4. xcode-select --print-path

/Applications/Xcode.app/Contents/Developer

  • 5. gcc --version

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

  • 6. lldb --version

lldb-1300.0.42.3
Swift version 5.5.2-dev

  • If using NodeJS/npm
    • 7. npm -v
    • 8. node -v
@gabebear
Copy link

I don't think many people are using ios-deploy to run UI tests on iOS(much less on AppleTV). If this is an important use-case can you please give us more information on why?

UI Tests are usually run in simulators.

@kostajaitachi
Copy link
Author

We need a way to launch prime video application on Apple TV 4K devices. The use case is internal, and I cannot explain here.

For launching prime video application on Apple TV 4k devices, I was earlier using xcodebuild CLI but does not work on command line and works only through X code GUI. This is only observed with 4K and not Apple TV 4th Generation.

ios-deploy can connect to device, and launch something, but the tests fail to run. I am unable to understand why? Is there something I could do to this repository to make it work?

@kostajaitachi
Copy link
Author

Any updates on this ?

@gabebear
Copy link

I imagine you will need to dig into this yourself since I don't have the extra time or an AppleTV 4K.

@kostajaitachi
Copy link
Author

I understand. Can you help me with instructions to locally build after cloning this repo ? Probably a little summary on how this works would be great as well. It will help in the deep dive.

@gabebear
Copy link

gabebear commented Jan 28, 2022

ios-deploy doesn't have any dependencies(outside MacOS and Xcode). Just open ios-deploy.xcodeproj and run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants