aschuch / StatefulViewController

Placeholder views based on content, loading, error or empty states
MIT License
2.14k stars 149 forks source link

Not working when added via Cocoapod dynamic framework #12

Closed kapoorsahil closed 8 years ago

aschuch commented 8 years ago

What exactly does not work like you expected?

kapoorsahil commented 8 years ago

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.

aschuch commented 8 years ago

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.

kapoorsahil commented 8 years ago

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
aschuch commented 8 years ago

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 {
}
kapoorsahil commented 8 years ago

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

aschuch commented 8 years ago

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

kapoorsahil commented 8 years ago

Still the same error when using via cocoapod.

aschuch commented 8 years ago

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

aschuch commented 8 years ago

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