aws-samples / aws-device-farm-sample-app-for-ios

Apache License 2.0
44 stars 25 forks source link

UITest failing on device farm #12

Open VidhiDifferenz opened 3 years ago

VidhiDifferenz commented 3 years ago

I created an ipa file of my application from product-> Archive-> Distribute-> Appstore-> Export. I used this ipa for UITest on the device farm. First I tried with Standard environment which gave me the below error -

Setup Test skipped: Not enough suites found to execute

Then I tried with custom environment with Default TestSpec for iOS XCTest UI and I got issue on launching the application. I got the below error from device farm -

UITests.swift:20: error: -[SomeAppUITests.SomeAppUITests testExample] : Failed to get launch progress for <XCUIApplicationImpl: 0x280b47bd0 com.developer.SomeApp.Staging at /private/tmp/scratchPTi3vk.scratch/Productsedbz37/Debug-iphoneos/SomeApp.app>: Unable to launch com.developer.SomeApp.Staging. (Underlying Error: Request to launch com.developer.SomeApp.Staging failed. The operation couldn’t be completed. The process failed to launch. : Failed to launch process with bundle identifier 'com.developer.SomeApp.Staging'. (Underlying Error: The operation couldn’t be completed. The process failed to launch. (Underlying Error: The operation couldn’t be completed. Launch failed. (Underlying Error: Launchd job spawn failed with error: 88. Malformed Mach-o file))))

Then I tried the fuzz test, but it gave me a different error. Here's the screenshot - https://imgur.com/a/AKATt22