aschuch / StatefulViewController

Placeholder views based on content, loading, error or empty states

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working when added via Cocoapod dynamic framework

kapoorsahil opened this issue · comments

What exactly does not work like you expected?

It's giving 'does not confirm to protocol StatefulViewController' and 'does not confirm to protocol BackingViewProvider'. I think it is not recognizing the functions defined in implementation file.

Example is also giving same error when using cocoapod rather than manually pasting library.

You are using the swift2 branch right? How does your Podfile look like?
I haven't had the chance to test that with Cocoapods yet, there might be some errors.

Yes, I am using swift2 branch.

source 'https://github.com/CocoaPods/Specs'

platform :ios, '8.0'
use_frameworks! 
inhibit_all_warnings!

target 'MyApp' do

pod 'StatefulViewController', :git => 'https://github.com/aschuch/StatefulViewController.git', :branch => 'swift2'

end

Podfile looks good to me.

Are you following the new README to integrate StatefulViewController?
Your view controller now needs to inherit from e.g. UIViewController.

class X: UIViewController, StatefulViewController {
}

Yes, I am doing exactly the same as in your Swift2 example. I integrated manually and it's working fine.

Could you please try with the official 1.0 version, which includes Swift 2 support?

Still the same error when using via cocoapod.

I have just found the issue, please check again. This should be working now.

Still dependent on CocoaPods/Specs#13568 for the podspec to be updated.