https://kotlinlang.org logo
#ios
Title
# ios
k

kpgalligan

09/27/2023, 5:49 PM
Anybody have any insight as to why
embedAndSignAppleFrameworkForXcode
would be SKIPPED? I've generally used local CocoaPods for building and avoided the embed task. Tried it recently and was pretty surprised at how easy that was to set up. Until now 🙂 It wasn't seeing my Kotlin changes. Did a Gradle clean, still not seeing them. Then did an Xcode clean, and now it doesn't see the module at all. Looking at the script in Xcode's build log I see
Copy code
Showing All Messages
> Task :analytics:compileKotlinIosSimulatorArm64 UP-TO-DATE
> Task :breeds:generateCommonMainKMMBridgeKickStartDbInterface UP-TO-DATE
> Task :breeds:compileKotlinIosSimulatorArm64 UP-TO-DATE
> Task :allshared:compileKotlinIosSimulatorArm64
> Task :allshared:linkDebugFrameworkIosSimulatorArm64
> Task :allshared:assembleDebugAppleFrameworkForXcodeIosSimulatorArm64
> Task :allshared:embedAndSignAppleFrameworkForXcode SKIPPED
r

russhwolf

09/27/2023, 6:49 PM
Was debugging an issue like this earlier today and it was a X64 vs Arm64 issue. Project was only configured for M1 simulators so the embed task wouldn't run when building for simulator on an Intel Mac, But that looks like the KMMBridge sample that I know has all simulator targets declared, so maybe something else.
k

kpgalligan

09/27/2023, 11:54 PM
I figured it out. It was me not reading the docs fully.
b

brandonmcansh

11/06/2023, 7:08 PM
@kpgalligan What was the issue that missed from the docs? Started seeing this as well while trying to integrate cocoapods for Google Maps
k

kpgalligan

11/07/2023, 1:18 PM
That would probably be a different issue. In my case, you only embed if it's dynamic, and I was building static. That's not in the docs. What's in the docs is adding
-framework "[your module]"
to "Other Liner Args" and adding the "Framework Search Paths" to the framework in your build folder.
b

brandonmcansh

11/07/2023, 1:27 PM
yp was able to get it to work 🙂
6 Views