I work on improving the build time for generating the
XCFramework,
which later is copied to another directory and used by React UI layer.
Initially, we were using
assembleXCFramework
which took
3m 30s.
Then I changed it to
assembleSharedReleaseXCFramework
and the build time decreased to
2m 15s, which is already great.
XCFramework
generated, files copied all run fine.
But the
assembleSharedReleaseXCFramework
still runs both tasks
linkReleaseFrameworkIosX64
and
linkReleaseFrameworkIosArm64
, which take about 65s each.
• We are all on MacBooks M1 in our team. Would you happen to know if we need both tasks to run?
• If I skip
linkReleaseFrameworkIosX64
by adding
-x linkReleaseFrameworkIosX64
, it runs the first task, but the job fails because
XCFramework
is not generated.
• Do you think this is the right approach, or do you have suggestions?