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

Firebase/Messaging Unable to Install for watchOS #4807

Closed
jakeholland opened this issue Feb 3, 2020 · 3 comments · Fixed by #4808
Closed

Firebase/Messaging Unable to Install for watchOS #4807

jakeholland opened this issue Feb 3, 2020 · 3 comments · Fixed by #4808
Assignees
Milestone

Comments

@jakeholland
Copy link

jakeholland commented Feb 3, 2020

Step 1: Describe your environment

  • Xcode version: 11.3.1
  • Firebase SDK version: 6.16.0
  • Firebase Component: Messaging
  • Component version: 4.2.0
  • Installation method: CocoaPods

Step 2: Describe the problem

It is my understanding that starting with 6.15.0, FCM supports watchOS. I have been trying to install that pod in my standalone watch app but I am running into problems immediately. Adding the pod to the podfile and running pod install leads to the following error:

[!] The platform of the target `Example WatchKit App Extension` (watchOS 6.0) is not compatible with `Firebase/Messaging (6.16.0)`, which does not support `watchOS`.

Steps to reproduce:

  1. Create a project with a standalone watch app.
  2. Run pod init
  3. Update the pod file to include Firebase/Messaging for the watch app extension
  4. Run pod install

Relevant Code:

Podfile

inhibit_all_warnings!
use_frameworks!

target 'Example' do
  platform :ios, '12.0'
  pod 'Firebase/Messaging'
end

target 'Example WatchKit App Extension' do
  platform :watchos, '6.0'
  pod 'Firebase/Messaging'
end

Example Project
Example.zip

@charlotteliang
Copy link
Contributor

@jakeholland can you try pod FirebaseMessaging to see if it works for you?

@paulb777 I wonder if it's the subspec setting for 'pod Firebase/Messaging' not setup properly. But 'pod FirebaseMessaging' should work.

@jakeholland
Copy link
Author

@chliangGoogle - Looks like that did the trick! Thank you 😊

@paulb777
Copy link
Member

paulb777 commented Feb 3, 2020

Yes the Firebase pod likely needs to be updated to accept watchos for the Messaging subspec

I'll reopen to track.

@paulb777 paulb777 reopened this Feb 3, 2020
@paulb777 paulb777 assigned paulb777 and unassigned charlotteliang Feb 3, 2020
@paulb777 paulb777 added this to the M64 milestone Feb 3, 2020
@firebase firebase locked and limited conversation to collaborators Mar 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants