# Mobile applications: Issues with SwiftUI instrumentation

**URL:** <https://community.dynatrace.com/t/mobile-applications-issues-with-swiftui-instrumentation/43690>\
**Category:** Troubleshooting\
**Tags:** real-user-monitoring-classic, mobile-monitoring, ios\
**Created:** [January 23, 2024, 8:00am UTC](https://community.dynatrace.com/t/mobile-applications-issues-with-swiftui-instrumentation/43690 "2024-01-23T08:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliborskaya](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@maliborskaya](https://community.dynatrace.com/u/maliborskaya)\
**Post date:** [January 23, 2024, 8:00am UTC](https://community.dynatrace.com/t/mobile-applications-issues-with-swiftui-instrumentation/43690/1 "2024-01-23T08:00:00Z")

</div>

We’re still working on improving the [SwiftUI instrumentation process](https://docs.dynatrace.com/docs/shortlink/swiftui-instrumentation) for mobile applications. If you face any issues while instrumenting SwiftUI controls, please contact a Dynatrace product expert via live chat within your Dynatrace environment&nbsp;and provide the log file of the affected build. You can find the log file of the most recent build at&nbsp;`dynatrace_instrumented/current/instrumentation.log`. Log files of previous builds are located in time-stamped archives under&nbsp;`dynatrace_instrumented`.

## Instrumentation already running

If you’ve run into an issue with the Dynatrace SwiftUI instrumentor and it hasn’t been restored automatically, perform the steps described below.

1. Stop the&nbsp;`DTSwiftInstrumentor`&nbsp;process if it still exists.
2. If you see the changes made by the SwiftUI instrumentor in your project’s source code, run the following command in the project root:
  - `DTSwiftInstrumentor restore .`&nbsp;if you installed the instrumentor via Homebrew
  - `.dynatrace/DTSwiftInstrumentor restore .`&nbsp;if you installed the instrumentor manually

## DTSwiftInstrumentor exited with an error while processing \<filename\>

Our SwiftUI instrumentor binary has crashed. Please contact a Dynatrace product expert via live chat within your Dynatrace environment and provide the log file of the affected build.

## Unable to check if other instances of the instrumentor are running because user script sandboxing is enabled

When the SwiftUI instrumentor starts, it checks whether other instances of the instrumentor are already running. When&nbsp;[user script sandboxing](https://developer.apple.com/documentation/xcode/build-settings-reference#User-Script-Sandboxing)&nbsp;is enabled or when you use a project created in Xcode 15+ (where this feature is on by default), this check doesn’t work out of the box, and the instrumentor can’t initialize.

To solve this issue, disable user script sandboxing (`ENABLE_USER_SCRIPT_SANDBOXING`&nbsp;project flag).
