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

curioustechizen

04/10/2020, 12:56 PM
How do I invoke the
syncFramework
gradle task manually? Where do all the parameters for it come from? (
$HEADER_SEARCH_PATHS
,
$OTHER_CFLAGS
etc)? My objective is to build the framework manually and publish it to a remote cocoapods repo.
a

Artyom Degtyarev [JB]

04/10/2020, 1:11 PM
Those variables should be set by the Xcode. Why would you want to execute this task? To produce a framework, something like
link<Debug|Release>Framework<$your_targetname>
task should be enough.
c

curioustechizen

04/10/2020, 1:30 PM
can this be used to build a fat framework?
linkDebugFramework
?
a

Artyom Degtyarev [JB]

04/10/2020, 1:34 PM
No, this task produces a framework for a single target(mentioned in the task name). To build a fat framework, one should manually describe a task in the Gradle script, see example here.
c

curioustechizen

04/10/2020, 1:36 PM
Great. Thanks!
Just to confirm, this can also be used to produce not just combined 32-bit and 64-bit ARM but also fat frameworks for simulator and phones (like X64 and ARM64) ?
a

Artyom Degtyarev [JB]

04/10/2020, 1:52 PM
Probably yes, but I’ve seen recently some thread on App Store rejecting fat frameworks including simulator(https://kotlinlang.slack.com/archives/C9JM6Q2UX/p1586266711006400?thread_ts=1585402524.011200&amp;cid=C9JM6Q2UX). Not sure how relevant would this be for your case, but it worth to be noted.
c

curioustechizen

04/10/2020, 1:53 PM
Okay I'll look into this. Thanks a lot!
48 Views