jean
03/17/2021, 7:43 PMimport MyPackage
statement, xcode complains about no such module 'MyPackage'
. Has anyone encounter this error? Do I need to specify something more than
multiplatformSwiftPackage {
packageName("MyPackage")
swiftToolsVersion("5.3")
targetPlatforms {
iOS { v("13") }
}
}
in build.gradle.kts
?John O'Reilly
03/17/2021, 7:46 PMjean
03/17/2021, 7:58 PMiOSTarget("ios") {
binaries {
framework {
baseName = "SharedCode"
}
}
}
And when I do import SharedCode
it works.
I guess I can just remove the whole fat framework configuration code that was generated when i created the project. Thanks for the hint!John O'Reilly
03/17/2021, 8:00 PMjean
04/06/2021, 10:45 AMWhile building for iOS, no library for this platform was found in '/my/path/myProject-grhslbkhqdpygnfqgbgubfvufjyi/SourcePackages/checkouts/myProject-swift-package/myProject.xcframework'.
myProject.xcframework
does indeed only contain ios-x86_64-simulator
? Am I missing something?val iOSTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
::iosArm64
else
::iosX64
iOSTarget("ios") {
...
}
After replacing it with ios { ... }
everything works as expected