-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Code Signing fails for iOS #15344
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.
|
Any update on this issue? I'm experiencing the same issue. |
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. |
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 |
In my case "Delete the csproj.user file" fixed the problem. |
For me non of the above helped |
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.) |
Same error here. Default template cannot be deployed to a local iOS device. |
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. |
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. |
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. |
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? |
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
The text was updated successfully, but these errors were encountered: