-
Notifications
You must be signed in to change notification settings - Fork 518
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
Trying to build a .NET for iOS binding project results in build errors with "The name '_CodeSignature' is reserved and cannot be used." #21981
Comments
No, the (xc)framework is signed when building the app that consumes the framework.
Either the framework wasn't signed at all, or it was signed using an incorrect certificate. Can you get an MSBuild binlog for the build that produces such an error? That should show if/how the framework was signed. |
Since I'm building everything myself, and the settings are set to not sign the various frameworks that I'm building, I assume that the .frameworks are not ever signed at all. Do I need to sign those before creating xcframeworks with them? |
Here is a binlog: |
Which framework(s) exactly is TestFlight complaining about? |
Not sure why it's complaining about just that one. |
Apple platform
iOS
Framework version
Other
Affected platform version
.NET 8, .NET 9
Description
I created a NuGet package with .NET for iOS bindings for an .xcframework. I have to build these xcframeworks myself from source to shorten their path due to the Windows long path error in Visual Studio.
Trying to consume this package in a .NET MAUI iOS app which is then submitted to TestFlight results in errors like
NSUnderlyingError = "Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=Missing or invalid signature. The bundle 'x' at bundle path 'y.framework' is not signed using an Apple submission certificate.
So assuming that the .xcframework needs to be signed first, I code-sign it after I build the xcframework.
But then trying to build the binding project (which generates the NuGet package on build) I get build errors stating
"The name '_CodeSignature' is reserved and cannot be used."
Is this a bug on the .NET end, and/or do I have to somehow extract the .xcframework after building the NuGet package without code signing, code-sign, then put the NuGet package back together?
Steps to Reproduce
Did you find any workaround?
No
Build logs
No response
The text was updated successfully, but these errors were encountered: