Unable to launch ios app in mac machine due to following error

[AppiumDriver@cce6] Event ‘newSessionStarted’ logged at 1706075248261 (11:17:28 GMT+0530 (India Standard Time))

[AppiumDriver@cce6] Encountered internal error running command: Error: /Users/stpl/Documents/yourpal_mobile_automation/resources/apps/iOS_DemoApp.ipa did not have any matching .app or .ipa bundles. Please make sure the provided package is valid and contains at least one matching application bundle which is not nested.

Really not much info here. Can you share capabilities and full log?

Looks like something is wrong with the iOS build file. Is it available at this path?
You can follow the steps here for ios configuration with appium -

Hello I’m having the same error. I am trying to run the automation on sauce lab since I’m using windows but it is not proceeding due to this error. I make sure that the .app is on the zip file I am using but still no luck

[
2  {
3    "screenshot": 0,
4    "suggestion_values": [],
5    "start_time": 1709605443.120625,
6    "request": {
7      "capabilities": {
8        "alwaysMatch": {
9          "sauce:options": {},
10          "appium:automationName": "XCUITest",
11          "appium:newCommandTimeout": 240,
12          "appium:deviceName": "iPhone 14",
13          "appium:platformVersion": "16.2",
14          "platformName": "iOS",
15          "appium:orientation": "PORTRAIT"
16        },
17        "firstMatch": [
18          {}
19        ]
20      }
21    },
22    "result": {
23      "message": "An unknown server-side error occurred while processing the command. Original error: /var/folders/z9/rg8m2_gs5yq64gd5h71df2cc0000kr/T/tmpFCoqo1/{projetct-name}.zip did not have any matching .app or .ipa bundles. Please make sure the provided package is valid and contains at least one matching application bundle which is not nested.",
24      "error": "unknown error"
25    },
26    "duration": 1.2462198734283447,
27    "path": "/session",
28    "hide_from_ui": false,
29    "between_commands": null,
30    "visual_command": false,
31    "HTTPStatus": 500,
32    "suggestion": null,
33    "request_id": "f3a2d76236d74420a1bef954df6099eb",
34    "in_video_timeline": 21.75,
35    "method": "POST",
36    "statusCode": 1
37  }
38]

[AppiumDriver@643a] Appium v2.5.1 creating new XCUITestDriver (v7.3.0) session
[AppiumDriver@643a] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@643a] Appium’s BaseDriver version is 9.5.2
[AppiumDriver@643a] XCUITestDriver’s BaseDriver version is 9.5.2
[XCUITestDriver@751d] Creating session with W3C capabilities: {
[XCUITestDriver@751d] “alwaysMatch”: {
[XCUITestDriver@751d] “platformName”: “iOS”,
[XCUITestDriver@751d] “appium:deviceName”: “iPhone 15 Pro”,
[XCUITestDriver@751d] “appium:automationName”: “XCUITest”,
[XCUITestDriver@751d] “appium:platformVersion”: “17.4”,
[XCUITestDriver@751d] “appium:app”: “/Users/stpl/Desktop/Yourpal_Automation_Project/yourpal-mobile-automation/resources/apps/YourPal.ipa”,
[XCUITestDriver@751d] “appium:includeSafariInWebviews”: true,
[XCUITestDriver@751d] “appium:newCommandTimeout”: 3600,
[XCUITestDriver@751d] “appium:connectHardwareKeyboard”: true
[XCUITestDriver@751d] },
[XCUITestDriver@751d] “firstMatch”: [
[XCUITestDriver@751d] {}
[XCUITestDriver@751d] ]
[XCUITestDriver@751d] }
[XCUITestDriver@751d (dac3941f)] Session created with session id: dac3941f-d7aa-44c2-b040-fb89f000b43d
[XCUITest] Current user: ‘stpl’
[XCUITestDriver@751d (dac3941f)] No real device udid has been provided in capabilities. Will select a matching simulator to run the test.
[XCUITestDriver@751d (dac3941f)] iOS SDK Version set to ‘17.4’
[XCUITest] Looking for an existing Simulator with platformName: iOS, platformVersion: 17.4, deviceName: iPhone 15 Pro
[iOSSim] Constructing iOS simulator for Xcode version 15.3 with udid ‘38DED653-8A4B-4086-BBC5-E880DA057EE3’
[XCUITestDriver@751d (dac3941f)] Determining device to run tests on: udid: ‘38DED653-8A4B-4086-BBC5-E880DA057EE3’, real device: false
[XCUITestDriver@751d (dac3941f)] Event ‘xcodeDetailsRetrieved’ logged at 1710314317809 (12:48:37 GMT+0530 (India Standard Time))
[BaseDriver] Using local app ‘/Users/stpl/Desktop/Yourpal_Automation_Project/yourpal-mobile-automation/resources/apps/YourPal.ipa’
[Support] Found ‘unzip’ at ‘/usr/bin/unzip’
[XCUITestDriver@751d (dac3941f)] Found 1 bundle in ‘YourPal.ipa’: Payload/YourPal.app
[XCUITestDriver@751d (dac3941f)] ‘Payload/YourPal.app’ does not have Simulator devices in the list of supported platforms (iPhoneOS). Skipping it
[XCUITestDriver@751d (dac3941f)] {}
[DevCon Factory] Releasing connections for 38DED653-8A4B-4086-BBC5-E880DA057EE3 device on any port number
[DevCon Factory] No cached connections have been found
[AppiumDriver@643a] Event ‘newSessionStarted’ logged at 1710314318180 (12:48:38 GMT+0530 (India Standard Time))
[AppiumDriver@643a] Encountered internal error running command: Error: /Users/stpl/Desktop/Yourpal_Automation_Project/yourpal-mobile-automation/resources/apps/YourPal.ipa did not have any matching .app or .ipa bundles. Please make sure the provided package is valid and contains at least one matching application bundle which is not nested.
[AppiumDriver@643a] at XCUITestDriver.unzipApp (/Users/stpl/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:1155:11)
[AppiumDriver@643a] at XCUITestDriver.onPostConfigureApp (/Users/stpl/.appium/node_modules/appium-xcuitest-driver/lib/driver.js:1186:24)
[AppiumDriver@643a] at /opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/basedriver/helpers.js:341:22
[HTTP] ← POST /session 500 623 ms - 1044
[HTTP]

[XCUITestDriver@751d (dac3941f)] Found 1 bundle in ‘YourPal.ipa’: Payload/YourPal.app
[XCUITestDriver@751d (dac3941f)] ‘Payload/YourPal.app’ does not have Simulator devices in the list of supported platforms (iPhoneOS). Skipping it

Are you truing to run an app built for a real device on a simulator?

1 Like

Let your developers know that you need an app that is built to run on Simulator. You can’t run the .ipa file on Simulator because Apple won’t let you.

Info for developers: