Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlaunch: Improve output when failing to install app on device because the device is locked #21542

Open
rolfbjarne opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement The issue or pull request is an enhancement mlaunch
Milestone

Comments

@rolfbjarne
Copy link
Member

Sample output:

INFO: /Users/ema/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.0/18.0.9600-net9-rc2/tools/bin/mlaunch --devname "Ema's iPhone 15 Pro" --installdev "/Users/ema/Library/Caches/Xamarin/mtbs/builds/MauiApp25/595cb581a5f7090bc1eecc32d178e5faa1f105165bc54b8c89c16c81548aab4a/bin/Debug/net9.0-ios/ios-arm64/device-builds/iphone16.2-18.0.1/MauiApp25.app" --install-progress --sdkroot "/Applications/Xcode_16.0.0.app/Contents/Developer" -sdk 0.0
INFO: Deploying MauiApp25 on Ema's iPhone 15 Pro...
INFO:                        FunctionName = -[PersonalizedImage mountRemoteImage:serverTicket:imageDigest:trustCacheURL:error:]
INFO:                        Failed to mount /private/var/tmp/CoreDevice_DDI_Staging_501/0DC75A3D-6BB2-4EF8-A0ED-1AE74E1900B9/Restore/022-16019-313.dmg: 0xe80000e2 (kAMDMobileImageMounterDeviceLocked: The device is locked.) (com.apple.mobiledevice error -402652958 (0xE80000E2))
INFO:                    LineNumber = 2068
INFO: 16:41:40  Enabling developer disk image services.
INFO: ERROR: The developer disk image could not be mounted on this device. (com.apple.dt.CoreDeviceError error 12040 (0x2F08))
INFO:        Options = {
INFO:            MountedBundlePath = "file:///private/var/tmp/CoreDevice_DDI_Staging_501/0DC75A3D-6BB2-4EF8-A0ED-1AE74E1900B9/";
INFO:        DeviceIdentifier = 0DC75A3D-6BB2-4EF8-A0ED-1AE74E1900B9
INFO: xcrun devicectl -j /var/folders/k6/n_65pl1n0pv2pb6qnwpdzv300000gn/T/tmpzh0sz4.tmp device install app --device "Ema's iPhone 15 Pro" /Users/ema/Library/Caches/Xamarin/mtbs/builds/MauiApp25/595cb581a5f7090bc1eecc32d178e5faa1f105165bc54b8c89c16c81548aab4a/bin/Debug/net9.0-ios/ios-arm64/device-builds/iphone16.2-18.0.1/MauiApp25.app
INFO:        DDIPath = /Library/Developer/DeveloperDiskImages/iOS_DDI.dmg
INFO:                    FunctionName = -[PersonalizedImage mountImage:]
INFO:            NSLocalizedRecoverySuggestion = Unlock the device and try again.
INFO:        ----------------------------------------
INFO:                Error mounting image: 0xe80000e2 (kAMDMobileImageMounterDeviceLocked: The device is locked.) (com.apple.mobiledevice error -402652958 (0xE80000E2))
INFO:                FunctionName = AMDeviceRemoteMountPersonalizedBundle
INFO:                LineNumber = 2145
INFO:        ----------------------------------------
INFO:                    Failed to mount image: 0xe80000e2 (kAMDMobileImageMounterDeviceLocked: The device is locked.) (com.apple.mobiledevice error -402652958 (0xE80000E2))
INFO:        NSURL = file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg
INFO:        }
INFO:            UseCredentials = 0;

We should do better than this.

@rolfbjarne rolfbjarne added enhancement The issue or pull request is an enhancement mlaunch labels Oct 29, 2024
@rolfbjarne rolfbjarne added this to the .NET 10 milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue or pull request is an enhancement mlaunch
Projects
None yet
Development

No branches or pull requests

1 participant