title: No suitable image for Combine found on watchOS 5.2 crash
body: <h1>Info</h1>
  
  <p>My app is crashing on Apple Watches running watchOS 4 &amp; 5. Some new features (ie <code>Combine</code>), depend on watchOS 6, and the use of these methods are explicitly marked with </p>
  
  <pre><code>@available(watchOSApplicationExtension 6.0.0, *)
  </code></pre>
  
  <p>The application was created with Xcode 9/10 (I forget exactly which), and targets watchOS 4. Now when it's built with Xcode 11, and has files which depend on Combine, it crashes on a watchOS 5 Apple Watch.</p>
  
  <p>The error is </p>
  
  <pre><code>dyld: Library not loaded: /System/Library/Frameworks/Combine.framework/Combine
    Referenced from: /private/var/containers/Bundle/Application/7A361FAB-EBE7-483D-BFD7-E915F15B5B14/Chirp WatchKit App.app/PlugIns/Chirp WatchKit Extension.appex/Chirp WatchKit Extension
    Reason: image not found
  </code></pre>
  
  <p>Clearly, <code>Combine</code>, isn't playing nicely. </p>
  
  <p>Also, it will not launch in a watchOS 5 simulator, and the error is slightly more telling:</p>
  
  <pre><code>dyld: Library not loaded: /System/Library/Frameworks/Combine.framework/Combine
    Referenced from: /Users/willbishop/Library/Developer/CoreSimulator/Devices/C6F36860-E70A-45E6-AC3B-E54DBCEA7C7A/data/Containers/Bundle/Application/1B2EC7C4-731F-4EC1-B23F-09A0B49CD055/Chirp WatchKit App.app/PlugIns/Chirp WatchKit Extension.appex/Chirp WatchKit Extension
    Reason: no suitable image found.  Did find:
      /System/Library/Frameworks/Combine.framework/Combine: mach-o, but wrong architecture
  </code></pre>
  
  <h1>What I've Tried:</h1>
  
  <ul>
  <li><p>I thought it may be as I had watchOS 6 dependent code, mixed alongside watchOS 5 files. However, after moving the code into seperate files, the issue persists.</p></li>
  <li><p>Cleaning the project</p></li>
  <li><p>Removing <code>Derived Data/</code></p></li>
  </ul>
  
  <p>Despite that, no luck. I assume it's a build setting somewhere, but I wouldn't have the faintest clue of which one.</p>