FatFrameworkTask: anyone seen these errors when tr...
# multiplatform
j
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
FatFrameworkTask
is a thing? When did that appear?
j
I'm using Kotlin 1.3.40-eap-105 lipo -info Redacted returns valid architectures:
armv7 arm64
r
j
r
Lol you use pods
j
so?
s
Could you share your project to enable us reproduce it on our side?
j
yes - can I send you a Google Drive link to the source code privately?
s
Sure, that would be great!
j
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