I am using Google instructions link to integrate GCM with iOS app .
I integrated Cocoapod file in my project as per the instructions.Now after installation I am getting bellow error in GGLConfiguration.h and GGLInstanceID.h as in below screenshot:
Getting this issue when adding this below snippet in appdelegate.m
#import "AppDelegate.h"
//***** this code *****//
@interface AppDelegate ()
@property(nonatomic, strong) void (^registrationHandler)
(NSString *registrationToken, NSError *error);
@property(nonatomic, assign) BOOL connectedToGCM;
@property(nonatomic, strong) NSString* registrationToken;
@property(nonatomic, assign) BOOL subscribedToTopic;
@end
and in appdelegate.h
#import <Google/CloudMessaging.h>
//***************/
If anyone has faced similar problem please help me ..
Any help is appreciated.
Looks like you need to enable modules for your Objective-C project.
In your build settings, it looks like this:
And more information can be seen in this very related question .
ps
I'm not sure what modules being disabled has to do with a "1003" error, btw What part of your code does that error come from? Do you have multiple questions you're combining together?
Solved My issue by replacing:
@import UIKit
@import Foundation
// to
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
for more info: Please refer this
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.