Skip to content
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

Invalid Code Signing for Mac Catalyst App #7291

Closed
girishw opened this issue Jan 12, 2021 · 11 comments
Closed

Invalid Code Signing for Mac Catalyst App #7291

girishw opened this issue Jan 12, 2021 · 11 comments

Comments

@girishw
Copy link

girishw commented Jan 12, 2021

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.3
  • Firebase SDK version: 6.33.0
  • Installation method: CocoaPods
  • Firebase Component:

[REQUIRED] Step 2: Describe the problem

I am able to archive my Mac Catalyst app and upload to App Store connect. However, I get an error message from App Store connect once uploaded:

ITMS-90284: Invalid Code Signing - The executable 'MyApp.app/Contents/Frameworks/grpcpp.framework/Versions/A/Resources/gRPCCertificates-Cpp.bundle' must be signed with the certificate that is contained in the provisioning profile

There was a previous similar issue opened and closed without resolution : #5053

I opened a DTS with Apple and here is the response I received:

This error sounds like there’s an executable Mach-O binary file inside the bundle that wasn’t signed correctly. However, the code signing issue isn’t the problem that requires attention, the real issue is the presence of the bundle with an executable in the first place.

Resource bundles aren’t supported on iOS outside of specific scenarios with Swift Package Manager — there’s never been an Xcode template to create them and thus dictate their expected structure. Many apps and frameworks have attempted to create them by starting from the macOS bundle template, and modifying the contents until they are accepted by the iOS App Store. This isn’t supported, and is fragile when the system changes, as it has with the introduction of Mac Catalyst. Since no iOS template has ever existed to build a supported bundle for iOS, there isn’t a supported way to create one for Mac Catalyst apps — any resource files should be deployed to the framework bundle instead.

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@paulb777
Copy link
Member

This looks like a duplicate of #3500. I think I'll improve its title.

@girishw
Copy link
Author

girishw commented Jan 12, 2021

@paulb777 This is despite applying the workaround. The workaround allows me to build the archive but the problem comes up again once the app is uploaded to App Store Connect.
Screen Shot 2021-01-12 at 10 24 15 AM

@paulb777
Copy link
Member

Ugh! Thanks for clarifying. Reopening.

@girishw
Copy link
Author

girishw commented Jan 12, 2021

Any workarounds for this issue? This is holding up a release.

@girishw
Copy link
Author

girishw commented Jan 12, 2021

@paulb777 Any way to get this working?

@paulb777
Copy link
Member

@girishw Sorry, nothing concrete to offer currently. I would suggest experimenting with removing or packaging the gRPC bundle differently.

@delasign
Copy link

delasign commented Mar 27, 2021

@paulb777 Has this been figured out ? I just hit this wall on App Store connect

@girishw
Copy link
Author

girishw commented Mar 28, 2021

You can work around this with :

1, Selecting the team in Signing & Capabilities
2, Selecting Sign to Run Locally under Signing Certificate

@delasign
Copy link

@girishw thanks for the note. You're an exceptional Samaritan.

#1 failed.
#2 BINGO.

@morganchen12
Copy link
Contributor

Though this is still potentially an issue that can arise in the future, I'm going to close this ticket for now since it has a workaround and does not appear to be actionable by the Firebase team. If it regresses or the workaround stops working, please comment and I'll reopen or file a new issue.

@firebase firebase locked and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants