multiplatform-swiftpackage icon indicating copy to clipboard operation
multiplatform-swiftpackage copied to clipboard

Is there a way to create a debug and release xcframework

Open aamirnshah opened this issue 3 years ago • 2 comments

As the subject states, is there a way to separately produce a debug and release variant in one single build? Essentially create two separate xcframeworks in one go? Thank you

aamirnshah avatar Jun 04 '21 08:06 aamirnshah

Hmm I tried that but only see one output. Not sure what I'm doing wrong.

On Thu, Aug 19, 2021 at 4:01 AM Jorge Poveda Pérez @.***> wrote:

As the subject states, is there a way to separately produce a debug and release variant in one single build? Essentially create two separate xcframeworks in one go? Thank you

Hey!

I wanted to do the same and thought about calling two times to the multiplatformSwiftPackage in the build.gradle.kts.

So...

`multiplatformSwiftPackage { packageName("xxxLibrary-release") swiftToolsVersion("5.3") buildConfiguration { release() } targetPlatforms { iOS { v("13") } } }

multiplatformSwiftPackage { packageName("xxxLibrary-debug") swiftToolsVersion("5.3") buildConfiguration { debug() } targetPlatforms { iOS { v("13") } } }`

That would be mi workaround. Now I have two different outputs inside the /swiftpackage folder.

Hope it helps you! Jorge Poveda Pérez.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ge-org/multiplatform-swiftpackage/issues/34#issuecomment-901819298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG53BNDCCSZ7O2W753Q2ILT5TQBTANCNFSM46CJ6KYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

aamirnshah avatar Aug 19 '21 23:08 aamirnshah

in SwiftPackageExtension from package com.chromaticnoise.multiplatformswiftpackage I see the property buildConfiguration which has Release as a default value.

I have another issue, my iOS Xcode project works perfectly in Debug mode with the swift package produced by this project, and I even can create an archive for AppStore, but in Release mode I can't build the project. I guess it is somehow related.

kyzmitch avatar May 07 '22 14:05 kyzmitch