title: Cannot distribute inhouse build with ios-charts library embedded to my project
body: <p>first of all, I would like to thank you for creating this library. I have embedded it in my project (as written in the README file) by dragging it into the project, embedding it in the binaries and so on. Target iOS version is 8.0.</p>
  
  <p>Everything worked great for dev version of the app, but as soon as I built the inhouse version, app crashes after initial welcome screen shows. Logs for the crash are as following:</p>
  
  <pre><code>Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Error&gt;:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
  Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Error&gt;:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
  Oct 20 15:54:15 iPhone kernel[0] &lt;Notice&gt;: xpcproxy[700] Container: /private/var/mobile/Containers/Data/Application/6D451583-EE0E-4F0A-9CA9-2E33F83D6138 (sandbox)
  Oct 20 15:54:15 iPhone kernel[0] &lt;Notice&gt;: AMFI: energy_challenge(pid 700) - [deny-mmap] mapped executable file has no team identifier in its signature: /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts
  Oct 20 15:54:15 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.edge5.nativeMenuEnergieInhouse[0x1f2e][700]) &lt;Notice&gt;: Service exited due to signal: Trace/BPT trap: 5
  Oct 20 15:54:15 iPhone assertiond[63] &lt;Warning&gt;: Unable to obtain a task name port right for pid 700: (os/kern) failure (5)
  Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Warning&gt;: Unable to register for exec notifications: No such process
  Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Warning&gt;: Unable to obtain a task name port right for pid 700: (os/kern) failure (5)
  Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Warning&gt;: Unable to obtain a task name port right for &lt;FBApplicationProcess: 0x13226dc00; com.edge5.nativeMenuEnergieInhouse; pid: 700&gt;
  Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Warning&gt;: Application 'UIKitApplication:com.edge5.nativeMenuEnergieInhouse[0x1f2e]' crashed.
  Oct 20 15:54:15 iPhone SpringBoard[54] &lt;Warning&gt;: Application '(null)' exited for an unknown reason.
  Oct 20 15:54:15 iPhone ReportCrash[701] &lt;Notice&gt;: Formulating report for corpse[700] energy_challenge
  Oct 20 15:54:15 iPhone ReportCrash[701] &lt;Warning&gt;: report not saved because the limit of 25 for 109_energy_challenge logs has been reached.
  Oct 20 15:54:15 iPhone ReportCrash[701] &lt;Error&gt;: Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
      Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device -- good luck!
  Oct 20 15:54:15 iPhone ReportCrash[701] &lt;Error&gt;: Process:             energy_challenge [700]
      Path:                /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/energy_challenge
      OS Version:          iOS 9.0.2 (13A452)
  Oct 20 15:54:15 iPhone ReportCrash[701] &lt;Error&gt;: Exception Type:  EXC_BREAKPOINT (SIGTRAP)
      Exception Codes: 0x0000000000000001, 0x0000000120095088
      Triggered by Thread:  0
  Oct 20 15:54:15 iPhone ReportCrash[701] &lt;Error&gt;: Dyld Error Message:
      Dyld Message: Library not loaded: @rpath/Charts.framework/Charts
        Referenced from: /var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/energy_challenge
        Reason: no suitable image found.  Did find:
          /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts'
        Dyld Version: 369.12
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.241745]: Enable WoW requested by "apsd"
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.243839]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.244041]: Unable to dispatch WowStateChanged message to client MobileMail (268435460)
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.244185]: Unable to dispatch WowStateChanged message to client softwareupdatese (268435460)
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.244422]: Unable to dispatch WowStateChanged message to client dataaccessd (268435460)
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.244678]: Unable to dispatch WowStateChanged message to client assistantd (268435460)
  Oct 20 15:54:16 iPhone wifid[39] &lt;Error&gt;: WiFi:[467042056.245010]: Unable to dispatch WowStateChanged message to client itunesstored (268435460)
  </code></pre>
  
  <p>The problem occurs here:</p>
  
  <pre><code>[deny-mmap] mapped executable file has no team identifier in its signature: /private/var/mobile/Containers/Bundle/Application/84AEA7F2-4987-4119-B3CC-A4EAFC9989DC/energy_challenge.app/Frameworks/Charts.framework/Charts
  </code></pre>
  
  <p>I tried creating new certificate, new inhouse build, basically went through all the stackoverflow questions regarding this or similar issue (eg. <a href="https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/" rel="nofollow">https://www.airsignapp.com/ios-apps-using-swift-crash-when-signed-with-inhouse-certificate/</a>) without any success. Is it possible that maybe you need to change something certificate-related on your side?</p>
  
  <p>Thank you very much for any answer</p>