brandonmcansh
02/11/2024, 8:03 PM(no such file, not in dyld cache),
for the two libraries when running a barebones iOS app with the SDK swift package importedKevin S
02/12/2024, 1:21 PMkotlin {
cocoapods {
...
pod("AFNetworking")
}
}
Something like thisbrandonmcansh
02/12/2024, 1:53 PMbrandonmcansh
02/12/2024, 1:54 PMiosArm64()
iosSimulatorArm64()
listOf(
// iosX64(),
iosArm64(),
iosSimulatorArm64(),
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "BotStacksSDK"
isStatic = false
export(libs.compose.adaptive.ui)
}
}
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
version = libs.versions.libraryVersion.get()
ios.deploymentTarget = libs.versions.ios.deploymentVersion.get()
framework {
baseName = "BotStacksSDK"
isStatic = false
export(libs.compose.adaptive.ui)
export(libs.sentry)
}
pod("Sentry") {
version = "8.20.0"
extraOpts += listOf("-compiler-option", "-fmodules")
}
pod("Giphy") {
moduleName = "GiphyUISDK"
version = "2.2.8"
extraOpts += listOf("-compiler-option", "-fmodules")
}
pod("Gifu") {
git("<https://github.com/kaishin/Gifu.git>") {
branch = "master"
}
extraOpts += listOf("-compiler-option", "-fmodules")
}
}
brandonmcansh
02/12/2024, 1:54 PMmultiplatformSwiftPackage {
packageName("BotStacksSDK")
swiftToolsVersion("5.9")
targetPlatforms {
iOS { v("14") }
}
buildConfiguration { debug() }
distributionMode { local() }
outputDirectory(file("${rootDir.absolutePath}/BotStacksSDKSwiftPackage"))
}
Kevin S
02/12/2024, 2:00 PM