firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.65k stars 1.48k forks source link

product 'FirebaseCore' required by package 'staticfirebaselibrary' target 'StaticFirebaseLibrary' not found in package 'firebase-ios-sdk'. #10387

Closed ericktmr closed 2 years ago

ericktmr commented 2 years ago

Description

Package - cópia.txt

Reproducing the issue

product 'FirebaseCore' required by package 'staticfirebaselibrary' target 'StaticFirebaseLibrary' not found in package 'firebase-ios-sdk'. product 'Firebase' required by package 'staticfirebaselibrary' target 'StaticFirebaseLibrary' not found in package 'firebase-ios-sdk'. etc...

Firebase SDK Version

8.10.0

Xcode Version

13.4.1

Installation Method

Swift Package Manager

Firebase Product(s)

All

Targeted Platforms

iOS

Relevant Log Output

product 'FirebaseCore' required by package 'staticfirebaselibrary' target 'StaticFirebaseLibrary' not found in package 'firebase-ios-sdk'.
product 'Firebase' required by package 'staticfirebaselibrary' target 'StaticFirebaseLibrary' not found in package 'firebase-ios-sdk'.
etc...

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

Expand Package.resolved snippet
```json { "pins" : [ { "identity" : "abseil-cpp-swiftpm", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git", "state" : { "revision" : "583de9bd60f66b40e78d08599cc92036c2e7e4e1", "version" : "0.20220203.2" } }, { "identity" : "alamofire", "kind" : "remoteSourceControl", "location" : "https://github.com/Alamofire/Alamofire.git", "state" : { "revision" : "8dd85aee02e39dd280c75eef88ffdb86eed4b07b", "version" : "5.6.2" } }, { "identity" : "boringssl-swiftpm", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/boringssl-SwiftPM.git", "state" : { "revision" : "dd3eda2b05a3f459fc3073695ad1b28659066eab", "version" : "0.9.1" } }, { "identity" : "cryptoswift", "kind" : "remoteSourceControl", "location" : "https://github.com/krzyzanowskim/CryptoSwift.git", "state" : { "revision" : "19b3c3ceed117c5cc883517c4e658548315ba70b", "version" : "1.6.0" } }, { "identity" : "firebase-ios-sdk", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/firebase-ios-sdk.git", "state" : { "revision" : "111d8d6ad1a1afd6c8e9561d26e55ab1e74fcb42", "version" : "8.15.0" } }, { "identity" : "googleappmeasurement", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleAppMeasurement.git", "state" : { "revision" : "ef819db8c58657a6ca367322e73f3b6322afe0a2", "version" : "8.15.0" } }, { "identity" : "googledatatransport", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleDataTransport.git", "state" : { "revision" : "5056b15c5acbb90cd214fe4d6138bdf5a740e5a8", "version" : "9.2.0" } }, { "identity" : "googleutilities", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleUtilities.git", "state" : { "revision" : "68ea347bdb1a69e2d2ae2e25cd085b6ef92f64cb", "version" : "7.9.0" } }, { "identity" : "grpc-ios", "kind" : "remoteSourceControl", "location" : "https://github.com/grpc/grpc-ios.git", "state" : { "revision" : "8440b914756e0d26d4f4d054a1c1581daedfc5b6", "version" : "1.44.3-grpc" } }, { "identity" : "gtm-session-fetcher", "kind" : "remoteSourceControl", "location" : "https://github.com/google/gtm-session-fetcher.git", "state" : { "revision" : "4e9bbf2808b8fee444e84a48f5f3c12641987d3e", "version" : "1.7.2" } }, { "identity" : "leveldb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/leveldb.git", "state" : { "revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b", "version" : "1.22.2" } }, { "identity" : "moya", "kind" : "remoteSourceControl", "location" : "https://github.com/Moya/Moya.git", "state" : { "revision" : "c263811c1f3dbf002be9bd83107f7cdc38992b26", "version" : "15.0.3" } }, { "identity" : "nanopb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/nanopb.git", "state" : { "revision" : "7ee9ef9f627d85cbe1b8c4f49a3ed26eed216c77", "version" : "2.30908.0" } }, { "identity" : "promises", "kind" : "remoteSourceControl", "location" : "https://github.com/google/promises.git", "state" : { "revision" : "3e4e743631e86c8c70dbc6efdc7beaa6e90fd3bb", "version" : "2.1.1" } }, { "identity" : "reactiveswift", "kind" : "remoteSourceControl", "location" : "https://github.com/ReactiveCocoa/ReactiveSwift.git", "state" : { "revision" : "c43bae3dac73fdd3cb906bd5a1914686ca71ed3c", "version" : "6.7.0" } }, { "identity" : "rxswift", "kind" : "remoteSourceControl", "location" : "https://github.com/ReactiveX/RxSwift.git", "state" : { "revision" : "b4307ba0b6425c0ba4178e138799946c3da594f8", "version" : "6.5.0" } }, { "identity" : "swift-protobuf", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-protobuf.git", "state" : { "revision" : "88c7d15e1242fdb6ecbafbc7926426a19be1e98a", "version" : "1.20.2" } } ], "version" : 2 } ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 2 years ago

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

paulb777 commented 2 years ago

Firebase and FirebaseCore are not products defined by Firebase's Swift Package Manager specification. They should not be depended upon.

Please remove or explain more about the issue.

ericktmr commented 2 years ago

A package was created containing all the Firebase codes, I need to use Firebase in a part of the codes. Would it have to be done otherwise in this case? Like for example Pods or Carthage?

paulb777 commented 2 years ago

Firebase and FirebaseCore do not need to be specified. Firebase is a wrapper in CocoaPods and FirebaseCore is a dependency brought in with any Firebase product.