diff --git a/compiler/compiler/src/main/java/org/robovm/compiler/config/ResolvedLocations.java b/compiler/compiler/src/main/java/org/robovm/compiler/config/ResolvedLocations.java index 6e5e85828..0c812ada4 100644 --- a/compiler/compiler/src/main/java/org/robovm/compiler/config/ResolvedLocations.java +++ b/compiler/compiler/src/main/java/org/robovm/compiler/config/ResolvedLocations.java @@ -206,7 +206,7 @@ private void processXCFramework(File xcFrameworkLocation, List destLocatio } else if (libPath.endsWith(".a")) { // static library inside .xcframework, add it to libs File staticLibFile = new File(new File(xcFrameworkLocation, library.getIdentifier()), libPath); - destLibs.add(new Config.Lib(staticLibFile.getAbsolutePath(), false)); + destLibs.add(new Config.Lib(staticLibFile.getAbsolutePath(), true)); } else { String message = String.format( "Unsupported library type %s matched %s %s, in '%s'", diff --git a/compiler/compiler/src/test/java/org/robovm/compiler/config/ConfigTest.java b/compiler/compiler/src/test/java/org/robovm/compiler/config/ConfigTest.java index 05fcd6702..4fe3c2116 100755 --- a/compiler/compiler/src/test/java/org/robovm/compiler/config/ConfigTest.java +++ b/compiler/compiler/src/test/java/org/robovm/compiler/config/ConfigTest.java @@ -560,7 +560,7 @@ public void testXCFrameworkLookupResolvedIntoStaticLib() throws Exception { assertEquals(Collections.singletonList(frameworkLocation), config.getFrameworkPaths()); assertEquals(Collections.emptyList(), config.getFrameworks()); assertEquals(Arrays.asList( - new Lib(new File(xcFramework, "ios-x86_64-simulator/library-static3.a").getAbsolutePath(), false)), + new Lib(new File(xcFramework, "ios-x86_64-simulator/library-static3.a").getAbsolutePath(), true)), config.getLibs()); } @@ -591,7 +591,7 @@ public void testXCFrameworkResolved() throws Exception { assertEquals(Collections.singletonList(frameworkLocation), config.getFrameworkPaths()); assertEquals(Collections.emptyList(), config.getFrameworks()); assertEquals(Arrays.asList( - new Lib(new File(xcFramework, "ios-x86_64-simulator/library-static3.a").getAbsolutePath(), false)), + new Lib(new File(xcFramework, "ios-x86_64-simulator/library-static3.a").getAbsolutePath(), true)), config.getLibs()); }