Skip to content

GoogleAppMeasurement code signature is invalid when running iPhone app on M1 Mac #8517

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

Closed
KyNorthstar opened this issue Aug 10, 2021 · 8 comments

Comments

@KyNorthstar
Copy link

[REQUIRED] Step 1: Describe your environment

  • Xcode version: Version 12.4 (12D4e)
  • Firebase SDK version: 7.11.1
  • Installation method: Swift Package Manager
  • Firebase Component: Crashlytics, GoogleAppMeasurement

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

  1. Using a Mac with an M1 SoC
  2. Create an Xcode project which targets iPhone
  3. Include the Firebase package in that Xcode project
  4. Include FirebaseAnalytics and FirebaseCrashlytics in the iPhone Target
  5. Select the iPhone Target as the target and "My Mac (Designed for iPhone)" as the run destination
  6. Run the project
Expected result:
  1. The app runs in an iPhone-size window on the Mac
Actual result:
  1. The following error dialog appears:

A screenshot of the dialog.

The dialog above reads:

APP NAME Needs To Be Updated. The developer of this app needs to update it to work with this version of macOS.
Failed to verify code signature of /var/db/appinstalld/Library/Caches/com.apple.mobile.installd.staging/temp.7n4Kth/extracted/APP NAME.app/Frameworks/GoogleAppMeasurement.framework : 0xe8008029 (The code signature version is no longer supported.)

Relevant Code:

No code required

@paulb777
Copy link
Member

Does updating to Firebase 8.x help?

@paulb777
Copy link
Member

Also Analytics does not yet support macOS or Catalyst targets. See #4563 and #1732.

@morganchen12 morganchen12 added the macOS Issues or feature requests for macOS. label Aug 11, 2021
@google-oss-bot
Copy link

Hey @KyLeggiero. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@KyNorthstar
Copy link
Author

@paulb777 I can try updating Firebase on Monday.

And, this is neither a macOS nor Catalyst target; this is an iOS target running on an M1 Mac.

@paulb777
Copy link
Member

Hmm, Catalyst is running an iOS target on a Mac - FirebaseAnalytics is only supported for iOS Simulators and iOS Devices.

@google-oss-bot
Copy link

Hey @KyLeggiero. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@KyLeggiero if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@KyNorthstar
Copy link
Author

KyNorthstar commented Sep 12, 2021

@paulb777

Mac Catalyst is using UIKit to compile and run native macOS apps.

I'm talking about taking iOS apps, compiled for iOS, doing literally nothing different with them, and running them on macOS. This is only possible on M1 Macs because they have the same exact processor architecture as iPhones and iPads. No recompiling, no targeting macOS, nothing different at all from any other iOS app.

@firebase firebase locked and limited conversation to collaborators Oct 3, 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