# iOS - unable to find an element during execution

**URL:** <https://discuss.appium.io/t/ios-unable-to-find-an-element-during-execution/35845>\
**Category:** Issues/Bugs\
**Created:** [March 8, 2022, 5:22pm UTC](https://discuss.appium.io/t/ios-unable-to-find-an-element-during-execution/35845 "2022-03-08T17:22:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Slaj](https://discuss.appium.io/user_avatar/discuss.appium.io/pablo_slaj/32/9831_2.png) [@Pablo\_Slaj](https://discuss.appium.io/u/Pablo_Slaj)\
**Post date:** [March 8, 2022, 5:22pm UTC](https://discuss.appium.io/t/ios-unable-to-find-an-element-during-execution/35845/1 "2022-03-08T17:22:14Z")

</div>

Hi all!, im facing a rare issue, sometimes the elements are not beign recongnized during test execution, it’s not about load page time or element identification, i thing its refer to:

_If you’re using the desktop app on macOS, when you run it you will likely be greeted with some error about the app not being able to be opened, or not verified by Apple, or something similar. The easiest way to get around this is to run `xattr -cr` on the file you downloaded. So let’s say you downloaded `appium-inspector.dmg` and copy `Appium Inspector.app` in `/Applications` inside the disk image. Then you would run `xattr -cr "/Applications/Appium Inspector.app"` before opening it. The same goes for the zip version (or the .app itself)._

_The reason for this is that the Appium team does not have a paid Apple developer account and so our app isn’t signed by a certificate they recognize, so the OS attempts to prevent it from running. Running the command above gets around this security limitation. Posted on: [https://github.com/appium/appium-inspector](https://github.com/appium/appium-inspector)_

Sometimes i not able to open the app with the inspector despite i executed ``xattr -cr “/Applications/Appium Inspector.app”`

- macOS Monterey 12.0, M1
- Appium version 1.22.2
- Node v16.14.0  
Capabilities:  
Creating session with W3C capabilities: {  
“alwaysMatch”: {  
“platformName”: “ios”,  
“autoAcceptAlerts”: true,  
“automationName”: “XCUITest”,  
“bundleId”: “com.xxxx”,  
“deviceName”: “iphoneSE”,  
“platformVersion”: “15.3.1”,  
“udid”: “00008030-xxxx”,  
“useNewWDA”: true,  
“xcodeOrgId”: “xxxxx”  
}

The app is an Hybrid app developed on React, does not have a WebView

The test are executed without issues on Android

I saw some links where someone else has the same issue in previous versions: [Unable to identify Elements during runtime for IOS](https://discuss.appium.io/t/unable-to-identify-elements-during-runtime-for-ios/25968)

Let me know if there is more info needed

Thanks!

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [March 8, 2022, 5:49pm UTC](https://discuss.appium.io/t/ios-unable-to-find-an-element-during-execution/35845/2 "2022-03-08T17:49:54Z")

</div>

> [@Pablo\_Slaj](#):
>
> Creating session with W3C capabilities: {  
> “alwaysMatch”: {  
> “platformName”: “ios”,  
> “autoAcceptAlerts”: true,  
> “automationName”: “XCUITest”,  
> “bundleId”: “com.xxxx”,  
> “deviceName”: “iphoneSE”,  
> “platformVersion”: “15.3.1”,  
> “udid”: “00008030-xxxx”,  
> “useNewWDA”: true,  
> “xcodeOrgId”: “xxxxx”  
> }

Probably should just add ‘app’ capability to stabalize:

[https://appium.io/docs/en/writing-running-appium/caps/](https://appium.io/docs/en/writing-running-appium/caps/)

---

<div class="post-metadata">

**Author:** ![Pablo\_Slaj](https://discuss.appium.io/user_avatar/discuss.appium.io/pablo_slaj/32/9831_2.png) [@Pablo\_Slaj](https://discuss.appium.io/u/Pablo_Slaj)\
**Post date:** [March 9, 2022, 2:30pm UTC](https://discuss.appium.io/t/ios-unable-to-find-an-element-during-execution/35845/3 "2022-03-09T14:30:55Z")

</div>

Hi @wreed i added the app capability but i keep getting the same issue. Thanks for reply!

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [March 9, 2022, 4:07pm UTC](https://discuss.appium.io/t/ios-unable-to-find-an-element-during-execution/35845/4 "2022-03-09T16:07:25Z")

</div>

Ok, since it’s react native this may help. Otherwise I’m out of ideas:

[https://appiumpro.com/editions/76-testing-react-native-apps-with-appium](https://appiumpro.com/editions/76-testing-react-native-apps-with-appium)
