<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Mobile applications: Issues with SwiftUI instrumentation in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Mobile-applications-Issues-with-SwiftUI-instrumentation/ta-p/234747</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;SPAN&gt;We're still working on improving the &lt;A href="https://docs.dynatrace.com/docs/shortlink/swiftui-instrumentation" target="_self"&gt;SwiftUI instrumentation process&lt;/A&gt; 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&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and provide the log file of the affected build. You can find the log file of the most recent build at&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;dynatrace_instrumented/current/instrumentation.log&lt;/CODE&gt;&lt;SPAN&gt;. Log files of previous builds are located in time-stamped archives under&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;dynatrace_instrumented&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Instrumentation already running&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P class="sc-gEvEer lcacrh sc-kAyceB kaaxKv sc-3b06fd1c-0 ivrEIu" data-testid="paragraph"&gt;If you've run into an issue with the Dynatrace SwiftUI instrumentor and it hasn't been restored automatically, perform the steps described below.&lt;/P&gt;
&lt;DIV class="sc-6646062a-0 ivCgmd"&gt;
&lt;OL class="sc-jEACwC hZeaxZ" start="1"&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;Stop the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;DTSwiftInstrumentor&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;process if it still exists.&lt;/LI&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;If you see the changes made by the SwiftUI instrumentor in your project's source code, run the following command in the project root:
&lt;DIV class="sc-6646062a-0 ivCgmd"&gt;
&lt;UL class="sc-jEACwC hZeaxZ"&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;DTSwiftInstrumentor restore .&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if you installed the instrumentor via Homebrew&lt;/LI&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;.dynatrace/DTSwiftInstrumentor restore .&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if you installed the instrumentor manually&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;H2&gt;&lt;SPAN&gt;DTSwiftInstrumentor exited with an error while processing &amp;lt;filename&amp;gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Unable to check if other instances of the instrumentor are running because user script sandboxing is enabled&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P class="sc-gEvEer lcacrh sc-kAyceB kaaxKv sc-3b06fd1c-0 ivrEIu" data-testid="paragraph"&gt;When the SwiftUI instrumentor starts, it checks whether other instances of the instrumentor are already running. When&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="sc-gsFSXq dMCrLH sc-2d500c67-0 sc-68987768-1 gPHVzu bsktS" href="https://developer.apple.com/documentation/xcode/build-settings-reference#User-Script-Sandboxing" target="_blank" rel="noopener noreferrer" data-testid="external-link"&gt;user script sandboxing&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;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.&lt;/P&gt;
&lt;P class="sc-gEvEer lcacrh sc-kAyceB kaaxKv sc-3b06fd1c-0 ivrEIu" data-testid="paragraph"&gt;To solve this issue, disable user script sandboxing (&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;ENABLE_USER_SCRIPT_SANDBOXING&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;project flag).&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 Jan 2024 08:49:14 GMT</pubDate>
    <dc:creator>maliborskaya</dc:creator>
    <dc:date>2024-01-23T08:49:14Z</dc:date>
    <item>
      <title>Mobile applications: Issues with SwiftUI instrumentation</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Mobile-applications-Issues-with-SwiftUI-instrumentation/ta-p/234747</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;SPAN&gt;We're still working on improving the &lt;A href="https://docs.dynatrace.com/docs/shortlink/swiftui-instrumentation" target="_self"&gt;SwiftUI instrumentation process&lt;/A&gt; 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&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and provide the log file of the affected build. You can find the log file of the most recent build at&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;dynatrace_instrumented/current/instrumentation.log&lt;/CODE&gt;&lt;SPAN&gt;. Log files of previous builds are located in time-stamped archives under&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;dynatrace_instrumented&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Instrumentation already running&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P class="sc-gEvEer lcacrh sc-kAyceB kaaxKv sc-3b06fd1c-0 ivrEIu" data-testid="paragraph"&gt;If you've run into an issue with the Dynatrace SwiftUI instrumentor and it hasn't been restored automatically, perform the steps described below.&lt;/P&gt;
&lt;DIV class="sc-6646062a-0 ivCgmd"&gt;
&lt;OL class="sc-jEACwC hZeaxZ" start="1"&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;Stop the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;DTSwiftInstrumentor&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;process if it still exists.&lt;/LI&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;If you see the changes made by the SwiftUI instrumentor in your project's source code, run the following command in the project root:
&lt;DIV class="sc-6646062a-0 ivCgmd"&gt;
&lt;UL class="sc-jEACwC hZeaxZ"&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;DTSwiftInstrumentor restore .&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if you installed the instrumentor via Homebrew&lt;/LI&gt;
&lt;LI class="sc-cPiKLX cTTNHO"&gt;&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;.dynatrace/DTSwiftInstrumentor restore .&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if you installed the instrumentor manually&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;H2&gt;&lt;SPAN&gt;DTSwiftInstrumentor exited with an error while processing &amp;lt;filename&amp;gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Unable to check if other instances of the instrumentor are running because user script sandboxing is enabled&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P class="sc-gEvEer lcacrh sc-kAyceB kaaxKv sc-3b06fd1c-0 ivrEIu" data-testid="paragraph"&gt;When the SwiftUI instrumentor starts, it checks whether other instances of the instrumentor are already running. When&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="sc-gsFSXq dMCrLH sc-2d500c67-0 sc-68987768-1 gPHVzu bsktS" href="https://developer.apple.com/documentation/xcode/build-settings-reference#User-Script-Sandboxing" target="_blank" rel="noopener noreferrer" data-testid="external-link"&gt;user script sandboxing&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;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.&lt;/P&gt;
&lt;P class="sc-gEvEer lcacrh sc-kAyceB kaaxKv sc-3b06fd1c-0 ivrEIu" data-testid="paragraph"&gt;To solve this issue, disable user script sandboxing (&lt;CODE class="sc-gEvEer fFVnlo sc-eqUAAy bQBxQO" data-testid="code"&gt;ENABLE_USER_SCRIPT_SANDBOXING&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;project flag).&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:49:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Mobile-applications-Issues-with-SwiftUI-instrumentation/ta-p/234747</guid>
      <dc:creator>maliborskaya</dc:creator>
      <dc:date>2024-01-23T08:49:14Z</dc:date>
    </item>
  </channel>
</rss>

