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

macOS target cannot build with Firebase version 10.23.1 #12701

Closed
anosidium opened this issue Apr 4, 2024 · 2 comments
Closed

macOS target cannot build with Firebase version 10.23.1 #12701

anosidium opened this issue Apr 4, 2024 · 2 comments
Labels
api: analytics macOS Issues or feature requests for macOS.

Comments

@anosidium
Copy link

Description

I have a macOS Cocoa app and I updated Firebase to version 10.23.1 and it immediately failed with these warnings:

Command CodeSign failed with a nonzero exit code

Couldn't resolve framework symlink for '/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/MyApp-bnecjqkjbdbylgeoluktplyutzlr/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementIdentitySupport/GoogleAppMeasurementIdentitySupport.xcframework/macos-arm64_x86_64/GoogleAppMeasurementIdentitySupport.framework/Versions/Current': readlink(/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/MyApp-bnecjqkjbdbylgeoluktplyutzlr/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurementIdentitySupport/GoogleAppMeasurementIdentitySupport.xcframework/macos-arm64_x86_64/GoogleAppMeasurementIdentitySupport.framework/Versions/Current): Invalid argument (22)

Couldn't resolve framework symlink for '/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/MyApp-bnecjqkjbdbylgeoluktplyutzlr/SourcePackages/artifacts/firebase-ios-sdk/FirebaseAnalytics/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Versions/Current': readlink(/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/MyApp-bnecjqkjbdbylgeoluktplyutzlr/SourcePackages/artifacts/firebase-ios-sdk/FirebaseAnalytics/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Versions/Current): Invalid argument (22)

Couldn't resolve framework symlink for '/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/MyApp-bnecjqkjbdbylgeoluktplyutzlr/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurement/GoogleAppMeasurement.xcframework/macos-arm64_x86_64/GoogleAppMeasurement.framework/Versions/Current': readlink(/Users/JohnAppleseed/Library/Developer/Xcode/DerivedData/MyApp-bnecjqkjbdbylgeoluktplyutzlr/SourcePackages/artifacts/googleappmeasurement/GoogleAppMeasurement/GoogleAppMeasurement.xcframework/macos-arm64_x86_64/GoogleAppMeasurement.framework/Versions/Current): Invalid argument (22)

I tried:

  • Build.
  • Clean Build Folder.
  • Deleting Project Build Data and Indexes.
  • Deleting /MyApp/MyApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved file.

None of that helped.

When I reverted Firebase to 10.23.0 using the "Exact Version" in Package Dependencies, it works perfectly fine. I have not submitted it to App Store Connect, I hope that it will pass the build processing. I was able to run the app locally on my Mac computer.

Reproducing the issue

  1. Update Firebase to version 10.23.1 using Swift Package Manager.
  2. Try to run the app locally on the Mac computer.
  3. Can't run the app because of aforementioned warnings.

Firebase SDK Version

10.23.1

Xcode Version

Version 15.3 (15E204a)

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics

Targeted Platforms

macOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@ncooke3
Copy link
Member

ncooke3 commented Apr 4, 2024

Hi @anosidium, thanks for reporting. There is a dupe of #12668. there is a manual workaround described in #12668 (comment) OP that may unblock you until 10.24.0 is released (due out next week).

@ncooke3 ncooke3 closed this as completed Apr 4, 2024
@rizafran rizafran added api: analytics macOS Issues or feature requests for macOS. and removed needs-triage labels Apr 4, 2024
@firebase firebase locked and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: analytics macOS Issues or feature requests for macOS.
Projects
None yet
Development

No branches or pull requests

4 participants