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

SDCAlertView as a static library compilation error #271

Open
yevyevyev opened this issue May 23, 2018 · 5 comments
Open

SDCAlertView as a static library compilation error #271

yevyevyev opened this issue May 23, 2018 · 5 comments

Comments

@yevyevyev
Copy link

Hi, I've run into troubles installing library as a static library (e.g. don't use use_frameworks!).
The error log:

Unable to run command 'StripNIB ActionCell.nib' - this target might include its own product.
Unable to run command 'StripNIB ActionCell~iphone.nib' - this target might include its own product.
Unable to run command 'StripNIB ActionCell~ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB ActionSheetView.nib' - this target might include its own product.
Unable to run command 'StripNIB ActionSheetView~iphone.nib' - this target might include its own product.
Unable to run command 'StripNIB ActionSheetView~ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB TextFieldCell.nib' - this target might include its own product.
Unable to run command 'StripNIB TextFieldCell~iphone.nib' - this target might include its own product.
Unable to run command 'StripNIB TextFieldCell~ipad.nib' - this target might include its own product.

With use_frameworks! it's compiling!
Xcode 9.3.1
Cocoapods 1.5.2

@sberrevoets
Copy link
Owner

Integrating this as a static library is not (yet) supported. This is on the roadmap but not currently available.

@gereons
Copy link
Contributor

gereons commented Jun 4, 2018

This seems to be a Cocoapods problem, see CocoaPods/CocoaPods#7633

@gereons
Copy link
Contributor

gereons commented Dec 5, 2019

With up-to-date tools (Xcode 11.2, Cococapods 1.84) and SDCAlertView 10.0, it Just Works™

@sberrevoets
Copy link
Owner

That's surprising, how is the XIB bundled in the static library?

@gereons
Copy link
Contributor

gereons commented Dec 6, 2019

I didn't look into this in detail tbh, after one of the cocoapods maintainers commented on the linked issue, I made a simple test project without use_frameworks! in the Podfile, saw that a .a file was generated and was able to display alerts.

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

No branches or pull requests

3 participants