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

Conversation

@ryohey
Copy link

@ryohey ryohey commented Jan 18, 2016

Hi Pocket

This pull-request fixes that PocketAPI cannot be built with Cocoapods when use "use_frameworks!"

Podfile

platform :ios, '8.0'
use_frameworks!

target 'pockettest' do
  pod 'PocketAPI'
end

AppDelegate.swift

import PocketAPI

And I got error.

2016-01-18 14 10 06

The problem is the order of #import in PocketAPI-umbrella.h.
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[];

"PocketAPI+NSOperation.h" doesn't include PocketAPI.
I don't know this is the right way to integrate with Cocoapods but this fixes the problem.
Thanks.

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.

1 participant