Generate 2 gradle tasks with 2 different framework architecture

Hello,
I’m developing a kotlin Multiplatform project, may I create 2 gradle tasks to generate 2 frameworks using the same build.gradle file? because I need to create 2 frameworks with different architecture.

19

May I create 2 frameworks doing it? What this command really means?

Hello! Sorry for an outdated response, but I think it’s always better to make things clear.
Of course, one can adjust the Gradle script to produce both frameworks, for example

iosArm64("iosDevice"){
	binaries{
		framework()
	}
}

iosX64("iosSimulator"){
	binaries{
		framework()
	}
}

The main purpose of the approach implemented above is to make framework architecture depend on Xcode build target. This means, whenever the Xcode project(connected to this MPP project) targets a simulator or real device, Gradle will produce the framework with appropriate architecture.