IDEA does not want to run the app on physical devi...
# multiplatform
d
IDEA does not want to run the app on physical device, only from XCode works, found this error message:
Unable to Install “MyApp” This app cannot be installed because its integrity could not be verified. Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.AZQGOG/extracted/MyApp.app/Frameworks/ComposeApp.framework : 0xe8008014 (The executable contains an invalid signature.)
f
You can make it work on the simulator. You should try to build as static not dynamic
But yeah, the kmp plugin is missing something :(
d
Yes simulator works I know Also the run from XCode works as well I use XCode 26 maybe that’s why
"You should try to build as static not dynamic (edited)" - I do not understand this, do you mean:
Copy code
iosTarget.binaries.framework {
    baseName = "ComposeApp"
    isStatic = true
}
f
yes
f
I had a similar problem when I was building shared module in pre-build action.
❤️ 1
d
But it’s static in my case
f
@Dumitru Preguza Try the solution from @Filip Wiesner thread
f
If you have a static library and you are building it in the normal build phase, then my problem should not be relevant. I just linked it because I had the same error, so I was hoping it would help you in some way 🤞
Also the run from XCode works as well
Xcode build did not work for me back then, so this is probably a different issue 🤔 If you don't find a solution, maybe ping the JetBrains folks who helped me in my thread or just create an issue.
d
I found one of the issues, the TEAM_ID from my profile changed for a reason and it was hardcoded everywhere in the IDEA project, but XCode had access to my profile directly and took the TEAM_ID from there. But then I jumped into another issue, something like: "Same bundle id is used in submodules, but it should be different than the parent module", then I tried to change the bundle id, but because of cache or some other things it kept showing same error message
f
So problem solved?
d
Yes this "This app cannot be installed because its integrity could not be verified" I think is solved, but I have another one "Same bundle id is used in submodules", it prevents to run the app on physical device as well, I will check it later today when I'm free
f
I see, maybe start another thread so it's not lost here. Good luck 🤞
d
Okay, thank you 👍🏻