fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 989 forks source link

IOS Build fail #91

Open saytomanish82 opened 7 years ago

saytomanish82 commented 7 years ago

HI , We are building the project with xCode 6.x version. Build is failing due to plugin's .h files included. Below are errors.

Has anyone saw this issue before? or is it related to xCode version? Please suggest any solution.

_In file included from :1: In file included from /Users/arpit/Desktop/pmi/gui-component/trunk/platforms/ios/IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:3: In file included from IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h:3: IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FIRAnalytics.h:45:58: error: expected '>' parameters:(nullable NSDictionary<NSString , NSObject > )parameters; ^ IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FIRAnalytics.h:45:59: error: expected ')' parameters:(nullable NSDictionary<NSString , NSObject > )parameters; ^ IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FIRAnalytics.h:45:26: note: to match this '(' parameters:(nullable NSDictionary<NSString , NSObject > *)parameters; ^ While building module 'FirebaseAnalytics' imported from IHS Markit Economics/Plugins/cordova-plugin-fcm/Firebase.h:1: In file included from :1: In file included from /Users/arpit/Desktop/pmi/gui-component/trunk/platforms/ios/IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:6: IHS Markit Economics/Plugins/cordova-plugin-fcm/FirebaseAnalytics.framework/Headers/FIRApp.h:47:32: error: expected ';' after method prototype

altelante commented 7 years ago

+1 I'm also having many build issues ion iOS. Can someone who made this work send a step by step guide? I'm using ionic

aparedes commented 7 years ago

This a Firebase framework issue.

Also, for iOS Firebase has a minimum requirement of XCode 7. https://firebase.google.com/docs/ios/setup

Fayozjon commented 7 years ago

Which code shoud I use for IONIC IOS build ? Its shown at additional steps on Messaging docs. Please help

Fayozjon commented 7 years ago

I mean which type "Object-C or Swift"? And where shoud I add it?

dimitri320 commented 6 years ago

I'm having same issues with FCM and iOS builds. I'm using all latest versions as per today. Any solutions anyone?