MAUI and macOS make me crazy. I have again the issue of deploying my app on a real iOS device. I can deploy the app in a iOS Simulator but not on a real device. The error I get from Visual Studio is
error MT1045: Failed to execute ‘devicectl’: ‘devicectl -j /var/folders/dm/bwmxpbzn6bvdsyy73c_b453w0000gn/T/tmpoVlvWe.tmp device install app –device “Enrico???s Test iPhone” /Users/enrico/Library/Caches/Xamarin/mtbs/builds/LanguageInUse/1fa03704bb15e35c6f47a701d9d92131e3e0740198296a93338bb3c829bc9cf7/bin/Debug/net8.0-ios/ios-arm64/device-builds/iphone13.1-17.4.1/LanguageInUse.app’ returned the exit code 1.
When I open the console on the device, I can see this error
-[IXSDataPromise cancelForReason:client:error:]: <IXSPromisedStreamingZipTransfer(0x4f8224070) Name:Language In Use Creator:InstallCoordination Proxy UUID:7E0B11CD-2C5A-4A93-BB8F-25A8469DE53B PercentComplete:1.000000 IsComplete:Y DiskUsageBytes:54416934> : canceled by client 17 for reason Error Domain=IXUserPresentableErrorDomain Code=14 “This app was not installed because its integrity could not be verified.” UserInfo={NSUnderlyingError=0x4f82b0030 {Error Domain=MIInstallerErrorDomain Code=13 “Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.jm7AyD/extracted/LanguageInUse.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)” UserInfo={NSLocalizedDescription=Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.jm7AyD/extracted/LanguageInUse.app : 0xe8008015 (A valid provisioning profile for this executable was not found.), LegacyErrorString=ApplicationVerificationFailed, SourceFileL
I checked the following settings:
- the device is registered in the Apple Developer portal
- I see the device in Xcode
- I associated the device with Xcode using a dummy application
- The device is in the developer mode
- I downloaded all the Apple profiles in Xcode and Visual Studio
What did I miss?