Aleksandr Ivanov
10/05/2020, 12:44 PMSiggi Gunnarss
10/05/2020, 1:04 PMpod
commands, at least if you're distributing to a private pod repo: https://guides.cocoapods.org/making/private-cocoapods.html
pod repo push ...
Aleksandr Ivanov
10/05/2020, 1:29 PMyousefa2
10/05/2020, 4:44 PMPodFile
and .podspec
. PodFile
is for your application to know which pods to use while .podspec
describes the framework you are building. Siggi’s suggestion is the official way of publishing pods to the cocoapods central repository but you can also reference git repositories in a PodFile
to pull in a cocoapod.KamilH
11/03/2020, 6:51 AMcocoapods
which seems like a similar problem to yoursAleksandr Ivanov
11/03/2020, 8:09 AMKamilH
11/03/2020, 9:06 PMAleksandr Ivanov
11/05/2020, 1:34 PM// Create a task to build a debug fat framework.
tasks.create("generateDebugFatFramework", FatFrameworkTask::class) {
// The fat framework must have the same base name as the initial frameworks.
baseName = "authSDK"
// The default destination directory is '<build directory>/fat-framework'.
destinationDir = buildDir.resolve("fat-framework/debug")
// Specify the frameworks to be merged.
from(
iosArm64().binaries.getFramework("DEBUG"),
iosX64().binaries.getFramework("DEBUG")
)
}
// Create a task to build a release fat framework.
tasks.create("generateReleaseFatFramework", FatFrameworkTask::class) {
// The fat framework must have the same base name as the initial frameworks.
baseName = "authSDK"
// The default destination directory is '<build directory>/fat-framework'.
destinationDir = buildDir.resolve("fat-framework/release")
// Specify the frameworks to be merged.
from(
iosArm64().binaries.getFramework("RELEASE"),
iosX64().binaries.getFramework("RELEASE")
)
}
KamilH
11/05/2020, 1:43 PM