Filip Wiesner
05/27/2025, 10:03 AMFailed to verify code signature
when installing an iOS app that uses dynamic Kotlin module. If I switch to static, everything seems to work. Has anyone encountered similar problem? I couldn't find anything recent here kodee sad
Kotlin version: `2.1.21`; XCode version: 16.3
Filip Wiesner
05/27/2025, 10:06 AMUnable to Install “[App Name]” This app cannot be installed because its integrity could not be verified. Failed to verify code signature of .../[App Name].app/Frameworks/[Framework Name].framework : 0xe800801c (No code signature found.)
tapchicoma
05/27/2025, 10:37 AMTimofey Solonin
05/27/2025, 10:54 AM# gradle.properties
org.gradle.logging.level=info
and share the logs from the gradlew
call in Xcode. In the UI you can find these logs in:
• View -> Navigators -> Reports
• Find the failed build and one of the steps there will be a shell script phase with a ./gradlew embedAndSign...
call and all the relevant logs
Could you please also share the:
codesign -d -vvv /path/to/[Framework Name].framework
output
You can submit these in a YouTrack ticket if you don't want to share them publiclytapchicoma
05/27/2025, 10:55 AMFilip Wiesner
05/27/2025, 12:32 PM2025_05_27_22KwNZZt1jgm1ZeZd5kfAd
Filip Wiesner
05/27/2025, 12:33 PMcodesign
output is for fremework in the build folder. None of the paths in the error message were valid. Maybe it's only temporary and deleted after the buildFilip Wiesner
05/27/2025, 12:39 PM... /shared/build/xcode-frameworks/Beta\ Debug/iphoneos18.4/<Name>.framework
)
> code object is not signed at all
> In architecture: arm64
Not sure what is happening kodee sad Ping me if you need anything elseFilip Wiesner
05/27/2025, 1:56 PMTimofey Solonin
05/28/2025, 10:49 AM./gradlew embedAndSign...
call in the application target's script phase. Does this help with the signing issue?Filip Wiesner
05/28/2025, 1:00 PMFilip Wiesner
05/28/2025, 1:33 PMembedAndSignAppleFrameworkForXcode
task, so now I have it as a pre-build action and build phase script.
Do you know what the underlying issue is? Should I take this as a workaround and create a YouTrack issue? 🤔Timofey Solonin
05/28/2025, 1:51 PMShould I take this as a workaroundYes
Do you know what the underlying issue is?In short, this pre-build workflow wasn't designed to work with dynamic libraries, but we don't warn about this anywhere. The issue is that pre-build script doesn't expose a code signing identity we can use to sign the binary, so we don't sign it and this is the error that you see. I will create an issue and link it in this thread later
Filip Wiesner
05/28/2025, 1:54 PMTimofey Solonin
05/28/2025, 3:29 PM