Since yesterday I am using Fleet 1.34.04 (MacOS 14...
# fleet
t
Since yesterday I am using Fleet 1.34.04 (MacOS 14.1.2) and since then I am unable to run my KMP app on my iPhone 14 Pro Max with iOS 17.4.1. It would stop with “** BUILD SUCCEEDED * and while the app would install on the device Fleet exits with “Failed to install the app on the device”. I can build and deploy from Fleet to simulator and also with Xcode to my device. Is there any log that would provide more info on why the app failed to install?
y
Hey! I recommend updating to the latest version, Fleet 1.35, which we released today. This update includes enhanced diagnostic capabilities that might provide more insights into the installation failures you're encountering. If the problem continues, you can collect logs by going to
Help > Diagnostic Tools > Collect Logs...
in Fleet and share them with us it a ticket.
t
Thank you @yulia.nizienko! I have upgraded to Fleet 1.35 and I am getting now a bit more info on what’s wrong:
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.bSE9w8/extracted/MyApp.app/Frameworks/ComposeApp.framework : 0xe8008014 (The executable contains an invalid signature.)
m
Hey @Tobias! May I ask you then to: • do `cmd`+`shift`+`F` in your project, search for
DEVELOPMENT_TEAM
and change the found places values to
""
(i.e. empty string value) • do
Restart Workspace
action • try running on your physical device • share if this ends up with dialog pop-up to configure development team and what's the result of running on device
t
@Maciej Procyk, I have performed all actions as you advised. The dialog for configuring the development team appeared where I have selected the appropriate team, but unfortunately I am getting the same error message when running it on the device. The app starts installing on the device, but the icon image is not visible. Just the “empty” default icon is visible. When clicking on the icon I get the same error message “This app cannot be installed becasue …”
m
Ok, I assumed that you've approved your app as this worked in Xcode but maybe that's not the case? Have you tried going to
Settings
>
General
>
VPN & Device Management
and approving your dev profile?
t
Under
VPN & Device Management
I can only see two entries, one for VPN and then there is a button saying “Sign In to Work or School Account”, there are no entries where I can approve my dev profile.
m
Do you have Developer mode enabled? It's in
Settings
>
Developer
. Could you also try opening you
iosApp
directory in Xcode and deploying the app to device from there, so see if it works with the configured development team?
t
Yes, Developer mode is enabled and I am able to deploy and run the app from Xcode with the configured development team.
m
Could you share your build log (the full output that you see when building application in Fleet) and the built application (you'll see the path ad the end of the build log output, one of the paths ending with
.app
)?
t
@Maciej Procyk I have found something odd: In my `project.pbxproj`there is a line “shellScript = “if [ \“YES\” = \“$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED\” ]; then\n echo \“Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \\\“YES\\\“\”\n exit 0\nfi\ncd \“$SRCROOT/..\“\n./gradlew composeAppembedAndSignAppleFrameworkForXcode\n”;” When I change it to
… if [ \“NO\” …
the app gets deployed and runs on the physical device.
The output from this line is also in the build log. Not able to paste it here or message you directly because it has too many characters.
Now I got it …
m
so if you do
echo $OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED
in terminal, it says
YES
?
Sorry, I think that might configured that way on side of IDE, so probably not your env fault 🤔
Thanks for the
build.log
. Could you also provide the one that's present when you modify the build script so we could compare what changes maybe? Also, I haven't asked yet if that's possible to share a project, maybe it's something in it's configuration.
t
Here is the build.log after I have modified the build script.
104 Views