Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return nil if it's compiled as a dynamic framework #36

Open
VincentSit opened this issue Jul 13, 2016 · 5 comments
Open

Return nil if it's compiled as a dynamic framework #36

VincentSit opened this issue Jul 13, 2016 · 5 comments

Comments

@VincentSit
Copy link

I use CocoaPods to manage third-party libraries.

There are some reasons causes I had to add use_frameworks! to the Podfile, so all of the libraries are compiled as a dynamic framework.

But I found that if FDStackView is compiled into a dynamic framework, it will return nil when it's initialized.

Is there any workaround? I don't want to add the code to my project manually.

FYI:
Objective-C-based project.
iOS 8.

@chika-kasymov
Copy link

chika-kasymov commented Jul 15, 2016

I also had this problem, for now I just added library manually and it works good.

@frandelarosa
Copy link

Same error too, fixed if I added library manually.

@wtlucky
Copy link
Member

wtlucky commented Oct 8, 2016

Because there is a part of assembly code in the project. And the symbols may be different in the dynamic frameworks. So it doesn't working when using CocoaPods with use_frameworks! in the Podfile. We are trying to fix it in the future. Before that you can use it by the manual way, add the library manually. Or delete use_frameworks! in the Podfile.

@ghost
Copy link

ghost commented Oct 11, 2016

mark!

@guakeliao
Copy link

use_frameworks!
ios9 之前这么初始化:
UIStackView *stackView = [[NSClassFromString(@"UIStackView") alloc]init];

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

No branches or pull requests

5 participants