title: Sbt giving no matching architecture in universal wrapper error when trying to run it
body: <p>The project is compiling but whenever I am trying to run it, gives the following error:</p>
  <pre><code>[error] java.lang.UnsatisfiedLinkError: /Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp: dlopen(/Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp, 1): no suitable image found.  Did find:
  [error]     /Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp: no matching architecture in universal wrapper
  [error]     /Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp: no matching architecture in universal wrapper
  [error]     at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
  [error]     at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
  [error]     at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
  [error]     at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
  [error]     at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2383)
  [error]     at java.base/java.lang.Runtime.load0(Runtime.java:746)
  [error]     at java.base/java.lang.System.load(System.java:1857)
  [error]     at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
  [error]     at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
  [error]     at com.sun.jna.Native.&lt;clinit&gt;(Native.java:195)
  [error]     at io.methvin.watchservice.jna.CarbonAPI.&lt;clinit&gt;(CarbonAPI.java:20)
  [error]     at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23)
  [error]     at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:128)
  [error]     at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50)
  [error]     at io.methvin.watcher.DirectoryWatcher.register(DirectoryWatcher.java:341)
  [error]     at io.methvin.watcher.DirectoryWatcher.registerAll(DirectoryWatcher.java:315)
  [error]     at io.methvin.watcher.DirectoryWatcher.&lt;init&gt;(DirectoryWatcher.java:176)
  [error]     at io.methvin.watcher.DirectoryWatcher$Builder.build(DirectoryWatcher.java:117)
  [error]     at play.dev.filewatch.DefaultFileWatchService.watch(DefaultFileWatchService.scala:38)
  [error]     at play.dev.filewatch.FileWatchService$$anon$1.watch(FileWatchService.scala:87)
  [error]     at play.runsupport.Reloader.&lt;init&gt;(Reloader.scala:443)
  [error]     at play.runsupport.Reloader$.reloader$lzycompute$1(Reloader.scala:283)
  [error]     at play.runsupport.Reloader$.play$runsupport$Reloader$$reloader$1(Reloader.scala:275)
  [error]     at play.runsupport.Reloader$.startDevMode(Reloader.scala:306)
  [error]     at play.sbt.run.PlayRun$.devModeServer$lzycompute$1(PlayRun.scala:98)
  [error]     at play.sbt.run.PlayRun$.devModeServer$1(PlayRun.scala:81)
  [error]     at play.sbt.run.PlayRun$.$anonfun$playRunTask$3(PlayRun.scala:105)
  [error]     at play.sbt.run.PlayRun$.$anonfun$playRunTask$3$adapted(PlayRun.scala:67)
  [error]     at scala.Function1.$anonfun$compose$1(Function1.scala:49)
  [error] stack trace is suppressed; run last Compile / run for the full output
  [error] (Compile / run) java.lang.UnsatisfiedLinkError: /Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp: dlopen(/Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp, 1): no suitable image found.  Did find:
  [error]     /Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp: no matching architecture in universal wrapper
  [error]     /Users/archit/Library/Caches/JNA/temp/jna5239527790698670766.tmp: no matching architecture in universal wrapper
  </code></pre>
  <p>I am not able to figure out what to do.
  I am using sbt 1.3.13 version. I tried upgrading and downgrading it as well.</p>
  <p>For your reference have added the codes of Build.sbt below:</p>
  <pre><code>name := &quot;&quot;&quot;cm-play&quot;&quot;&quot;
  organization := &quot;archit&quot;
  
  version := &quot;1.0-SNAPSHOT&quot;
  
  lazy val root = (project in file(&quot;.&quot;)).enablePlugins(PlayScala)
  
  scalaVersion := &quot;2.13.3&quot;
  
  libraryDependencies ++= Seq(
    filters,
    jdbc,
    cacheApi,
    ws,
    guice,
    &quot;mysql&quot; % &quot;mysql-connector-java&quot; % &quot;8.0.17&quot;,
    &quot;com.typesafe.play&quot; %% &quot;play-slick&quot; % &quot;5.0.0&quot;,
    &quot;com.typesafe.slick&quot; %% &quot;slick&quot; % &quot;3.3.2&quot;,
    &quot;com.github.tototoshi&quot; %% &quot;slick-joda-mapper&quot; % &quot;2.4.2&quot;,
    &quot;joda-time&quot; % &quot;joda-time&quot; % &quot;2.7&quot;,
    &quot;org.joda&quot; % &quot;joda-convert&quot; % &quot;1.7&quot;,
    &quot;com.github.nscala-time&quot; %% &quot;nscala-time&quot; % &quot;2.24.0&quot;,
    &quot;com.github.mumoshu&quot; %% &quot;play2-memcached-play28&quot; % &quot;0.11.0&quot;,
    &quot;org.playframework.anorm&quot; %% &quot;anorm&quot; % &quot;2.6.7&quot;,
    &quot;com.enragedginger&quot; %% &quot;akka-quartz-scheduler&quot; % &quot;1.8.5-akka-2.6.x&quot;,
    &quot;org.scalatestplus.play&quot; %% &quot;scalatestplus-play&quot; % &quot;5.0.0&quot; % Test
  )
  
  // Adds additional packages into Twirl
  //TwirlKeys.templateImports += &quot;in.netpharm.controllers._&quot;
  
  // Adds additional packages into conf/routes
  // play.sbt.routes.RoutesKeys.routesImport += &quot;in.netpharm.binders._&quot;
  </code></pre>
  <p>I have looked for this problem and tried different solutions but nothing worked.</p>