quickstart-ios icon indicating copy to clipboard operation
quickstart-ios copied to clipboard

Messaging demo app not compiling

Open GitteM opened this issue 10 years ago • 14 comments

Messaging demo app not compiling screen shot 2016-09-19 at 4 47 10 pm

GitteM avatar Sep 19 '16 14:09 GitteM

do you install pod?

SweetBloodyDuck avatar Sep 19 '16 15:09 SweetBloodyDuck

Image for me. Using pod install. screen shot 2016-09-20 at 11 50 02 am

lethianqt94 avatar Sep 20 '16 04:09 lethianqt94

Can you send a screenshot from the top of that file? and the podfile also?

Benjaminm5 avatar Sep 20 '16 06:09 Benjaminm5

I ran pod install before opening the workspace - the project did not compile.

screen shot 2016-09-20 at 9 41 50 am

GitteM avatar Sep 20 '16 07:09 GitteM

did you import Firebase at the top of AppDelegate file?

Benjaminm5 avatar Sep 20 '16 07:09 Benjaminm5

The demo project imports the following: @import Firebase; @import FirebaseInstanceID; @import FirebaseMessaging;

GitteM avatar Sep 20 '16 07:09 GitteM

Yeah found that...got the same error. I commented those lines (if #available(iOS 10.0, *, etc.) out for the moment but would be nice if Firebase finds a solution here!

Benjaminm5 avatar Sep 20 '16 07:09 Benjaminm5

@Benjaminm5: I imported "UserNotifications" to avoid compile errs. But those functions are a bit outdated with Swift 3.

lethianqt94 avatar Sep 20 '16 08:09 lethianqt94

Tried that but that I still get that error :/

Benjaminm5 avatar Sep 20 '16 08:09 Benjaminm5

do you have Xcode 8?

SweetBloodyDuck avatar Sep 20 '16 09:09 SweetBloodyDuck

@SweetBloodyDuck yes, I use Xcode 8.

lethianqt94 avatar Sep 20 '16 10:09 lethianqt94

Same here. XCode 8, same imports, same pods, same errors.

joaocruz04 avatar Sep 20 '16 10:09 joaocruz04

Yes, Xcode 8.

GitteM avatar Sep 20 '16 10:09 GitteM

I have figured it out. I saw that I'm using Using FirebaseMessaging 1.1.0 (which is the same as you, @GitteM when the latest version is 1.2.0. you have to update your cocoa pods repos.

pod repo update Firebase/Messaging then pod update

It may take a while though.

edit: update just the Messaging. The previous command would update all your repos edit2: mention

joaocruz04 avatar Sep 20 '16 10:09 joaocruz04