appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.18k stars 368 forks source link

I have no issues running WDA directly through Xcode on a real device. Whether started by clicking or through Sib, it works fine. However, after packaging WDA into an IPA file, installing it via Sib, and then launching WDA, it crashes. It doesn't happen every time, but the occurrence probability is quite high. #829

Closed guoxiangyang163 closed 8 months ago

guoxiangyang163 commented 8 months ago

crash log crash.txt

KazuCocoa commented 8 months ago

Did you start the WDA process as XCTest process? hm, no idea from the crash log. Btw, what is the Sib?

guoxiangyang163 commented 8 months ago

The root cause of the issue has been identified. It was due to the fact that in the Scheme Build configuration, IntegrationApp was included in the packaging: <BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" buildForProfiling = "YES" buildForArchiving = "YES" buildForAnalyzing = "YES"> <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "EE9B75D31CF7956C00275851" BuildableName = "IntegrationApp.app" BlueprintName = "IntegrationApp" ReferencedContainer = "container:WebDriverAgent.xcodeproj"> </BuildableReference> </BuildActionEntry> This caused issues with both WDA IPA installation and startup.