spierce7
07/15/2019, 8:38 PMdarkmoon_uk
07/15/2019, 10:48 PMiosArm64 and iosX64 into the same .framework e.g. for SDK distribution?darkmoon_uk
07/15/2019, 10:49 PM.a library files the answer is to use a command line tool called lipotool (A play on making the library 'fat')darkmoon_uk
07/15/2019, 10:51 PM.frameworks, where a framework is really a folder containing one or more .dylib files, there's probably a convention for file-naming and/or specification in the framework's Info.plistdarkmoon_uk
07/15/2019, 10:52 PMdarkmoon_uk
07/15/2019, 10:52 PMdarkmoon_uk
07/15/2019, 10:53 PMdarkmoon_uk
07/15/2019, 10:54 PM.framework file.spierce7
07/15/2019, 10:55 PMspierce7
07/15/2019, 10:56 PMdarkmoon_uk
07/15/2019, 11:34 PMdarkmoon_uk
07/15/2019, 11:34 PM.dylib or other binary files do you see?Jonas Bark
07/16/2019, 5:49 AMAlistair Sykes
07/16/2019, 7:42 AMpackForXCode task, it should look similar to ones you have seen before in the documentation, just slightly adapted to have a custom name and use the target name.
Then I have two tasks packForXCodeArm64 and packForXCodeX64 which set the relevant params and then call packForXCode.
copyFrameworkSupportingFiles copies a load of files from one of the targets frameworks into the new combined framework. My understanding is that the binary file is the only file that will actually change based on target, so you just need all the other files from either target (e.g. headers)
combineFramework task then uses the lipo tool to combine the two targets binaries.
createFramework is the task I actually call, which just orchestrates the various other tasks.
There may be better ways of achieving this, but that’s where I have gotten to so far. I am using kotlin: 1.3.41thevery
07/16/2019, 8:33 AMspierce7
07/16/2019, 7:28 PM