-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Codesign fails for iOS target #4621
Comments
@johnpaulsmith87 have you looked at some of the answers on this stackoverflow question? |
Hey @johnpaulsmith87 I definitely have signing and archiving working (also see #4397 if you haven't seen it already) curious why this happens though. Could you follow the instructions here: dotnet/macios#6813 (comment) in regards to enable more logging and attach the logs or maybe investigate yourself and see if you can discover anything with that? |
(bear in mind that I am building this on a Mac and VS 2022 Preview doesn't support MAUI as of this exact moment) When I build it from a Windows machine using the exact command specified in #4397 I get validation errors |
@rolfbjarne is this related to the recent path issues/fixes? |
@Redth without knowing the exact versions involved I can't be sure, but this is most likely fixed in the latest service release that came out yesterday (preview 14.122 has the fix, while earlier versions don't). |
I'm running 14.122 (with Xcode 13.2.1), and getting a similar error:
|
I believe @ElementalLogic's comment is the same one as reported here: #5901 (and in any case not the same underlying issue as the one reported here). And since I think this issue is fixed in the latest version, I'm closing this. |
Description
Codesign fails for iOS target. When all the settings appear to be correct (i.e correct project name, correct certificate, correct provisioning profile, correct Info.plist etc..), codesign just fails with exit code 1. Interestingly, when I change the name of project to anything other than the correct name, codesign will succeed but the resultant .ipa will fail to validate.
The app will run in debug configuration and with a simulator as target.
I should mention that this is for an already existing app as we're exploring the possibility of replacing it with .NET MAUI, so it already has a provisioning profile/certificate (Apple Distribution). I've created blank Xamarin.Forms and SwiftUI apps and was able to sign and validate with the same profile/certificate.
I understand that publishing may not be fully supported yet, but I was able to publish for Android without issue and get the signed .apk accepted by the play store.
Steps to Reproduce
dotnet publish -f:net6.0-ios -c:Release /p:ArchiveOnBuild=true
with the following settings in the .csproj:(I've redacted some details related to the name of the project/certificates/profiles)
Version with bug
Preview 12 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15
Did you find any workaround?
No as of yet.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: