Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Change public header to Pocket.h #20

Closed
wants to merge 1 commit into from

Conversation

ryohey
Copy link

@ryohey ryohey commented Jan 18, 2016

PocketAPI cannot be built with Cocoapods when use "use_frameworks!"

Cocoapods generates PocketAPI-umbrella.h automatically.

#import <UIKit/UIKit.h>

#import "PocketAPI+NSOperation.h"
#import "PocketAPI.h"
#import "PocketAPIKeychainUtils.h"
#import "PocketAPILogin.h"
#import "PocketAPIOperation.h"
#import "PocketAPITypes.h"

FOUNDATION_EXPORT double PocketAPIVersionNumber;
FOUNDATION_EXPORT const unsigned char PocketAPIVersionString[];

The problem is the order of #import.
"PocketAPI+NSOperation.h" doesn't include PocketAPI.

And we don't need to use PocketAPI+NSOperation.h in public.
I removed unnecessary headers in podspec.

@ryohey ryohey closed this Jan 18, 2016
@erkie
Copy link

erkie commented Mar 24, 2016

@ryohey why did you close this and not merge it? Running into the same error myself!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants