Replies: 13 comments
-
After replacing all the certificates and provisions, the new error is
Here is the build output if this can help. I have the account and team set in both Visual Studio Accounts and in the Info.plist.
|
Beta Was this translation helpful? Give feedback.
-
Any update on this issue? I'm experiencing the same issue. |
Beta Was this translation helpful? Give feedback.
-
I gave up for the time being after working on it unsuccessfully for several days. I would love to hear some solutions, though; so that I can work on IOS again. |
Beta Was this translation helpful? Give feedback.
-
I was finally able to make this work. Here were my steps. Created an iOS app in visual Studio (NOT MAUI). Added each of my references one by one to see which one was the problem. They all worked. So then I created a Maui project and added all the references. This worked. So then I started comparing the differences between the two Maui apps. Not sure what exactly fixed the problem (because I ran into some ILLinker errors that I also had to get rid of), but it was one of the following solutions: Delete the csproj.user file |
Beta Was this translation helpful? Give feedback.
-
In my case "Delete the csproj.user file" fixed the problem. |
Beta Was this translation helpful? Give feedback.
-
For me non of the above helped |
Beta Was this translation helpful? Give feedback.
-
Following the advice from above. I still run into this error: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.pYUDAq/extracted/Payload/myapp.app/Frameworks/libSkiaSharp.framework : 0xe8008014 (The executable contains an invalid signature.) |
Beta Was this translation helpful? Give feedback.
-
Same error here. Default template cannot be deployed to a local iOS device. |
Beta Was this translation helpful? Give feedback.
-
I was experiencing the same issue. My .gitignore includes *.user so I do not have csproj.user on the mac side. In my case I recently upgraded my iPhone 12 to an iPhone 14 so I recreated my provisioning profile following these instructions carefully: https://learn.microsoft.com/en-us/dotnet/maui/ios/deployment/provision?view=net-maui-7.0#create-a-certificate-signing-request. This is not an easy process and it took several passes to get things right. Finally though I was able to bring up my app on my iPhone 14. |
Beta Was this translation helpful? Give feedback.
-
Verified this issue with Visual Studio Enterprise 17.9.0 Preview 3. Not repro this issue on iOS platform. But sometimes we also encounter this problem. |
Beta Was this translation helpful? Give feedback.
-
I am having the same issues with a Maui app created on the Windows development environment. When I build it on the Mac (M2), it gives me the same issues with Failed to codesign. |
Beta Was this translation helpful? Give feedback.
-
Thumbs up to @gktval The deletion of the .csproj.user file did the trick. Busy porting a Xamarin project to Maui. Could deploy to iOS simulator, but got "Failed to verify code signature" when deploying to iPhone. Spend the better part of two days reading and with luck the mac did not became a mashed-up wall feature. Macbook Air M2 (macOS Sonoma 14.4.1) with iPhone 15 (iOS 17.4.1), Xcode 15.3. I did try 15.2 also. Manual, automatic provisions, followed many an advice on different forums, but at the end just deleting that one file, and everything worked. Anyone have an explanation why the csproj.user file causes this issue? |
Beta Was this translation helpful? Give feedback.
-
I'm getting the same error after I bought a new mac. I can't run app on ios simulators, though I can publish ios app with Windows Visual Studio, but I can't run and check the app on simulators. I'm just testing on Android and publishing for ios without testing on ios device or simulator |
Beta Was this translation helpful? Give feedback.
-
Description
I have been stuck for several days trying to codesign the app. A month ago, after working on it for several days, I finally got the app code signed and working on iOS. Then I went back to my Windows machine to develop some more. Now I am bringing it back to the Mac and trying to debug on the iPhone, but I am once again having code sign issues.
In the 'Deploy to Device' output, I the error message is "The executable contains an invalid signature." After trying for a bit, deleting certificates and provision profiles in my Apple Account and re-creating them, removing Apple Accounts from Visual Studio and re-adding it, I remain unsuccessfull.
At the moment, my csproj looks like this:
I have tried both manual and automatic provisioning. I have also tried adding
<EnableCodeSigning>true</EnableCodeSigning>
, but that creates another error of'codesign' exited with code 1
.Can someone please assist it getting the Maui app to once again deploy to the iPhone?
Steps to Reproduce
Create a Maui project and deploy to iPhone.
Link to public reproduction project repository
none
Version with bug
7.0.86
Last version that worked well
7.0.86
Affected platforms
iOS
Affected platform versions
iOS 14+
Did you find any workaround?
No response
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions