https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Jonas Bark

06/12/2019, 8:42 AM
FatFrameworkTask: anyone seen these errors when trying to integrate the Framework as embedded framework and running it on a Device?
Copy code
dyld: Library not loaded: @rpath/Redacted.framework/Redacted
  Referenced from: /var/containers/Bundle/Application/89E8B214-46AC-4251-B0EE-25222E57D0F7/konfswift.app/konfswift
  Reason: no suitable image found.  Did find:
	/private/var/containers/Bundle/Application/89E8B214-46AC-4251-B0EE-25222E57D0F7/konfswift.app/Frameworks/Redacted.framework/Redacted: no matching architecture in universal wrapper
The gradle task used:
Copy code
tasks.create("debugFatFramework", FatFrameworkTask::class) {
        baseName = "Redacted"
        from(
            iosArm32.binaries.getFramework("DEBUG"),
            iosArm64.binaries.getFramework("DEBUG"),
            //iosX64.binaries.getFramework("DEBUG")
        )
        destinationDir = File(buildDir, "build")
        group = "Universal framework"
        description = "Builds a universal (fat) debug framework"
    }
r

ribesg

06/12/2019, 8:44 AM
FatFrameworkTask
is a thing? When did that appear?
j

Jonas Bark

06/12/2019, 8:45 AM
I'm using Kotlin 1.3.40-eap-105 lipo -info Redacted returns valid architectures:
armv7 arm64
r

ribesg

06/12/2019, 8:51 AM
j

Jonas Bark

06/12/2019, 12:19 PM
r

ribesg

06/12/2019, 12:28 PM
Lol you use pods
j

Jonas Bark

06/12/2019, 12:30 PM
so?
s

svyatoslav.scherbina

06/13/2019, 7:57 AM
Could you share your project to enable us reproduce it on our side?
j

Jonas Bark

06/13/2019, 8:25 AM
yes - can I send you a Google Drive link to the source code privately?
s

svyatoslav.scherbina

06/13/2019, 8:28 AM
Sure, that would be great!
j

Jonas Bark

06/13/2019, 8:47 AM
Damn - as I was stripping down the project I noticed Xcode Build settings had Framework Search Paths still configured to use multiple sources, alongside the fat framework that I added manually. Once I removed those it worked. Thanks for the offer to help!
👍 1
6 Views