sberrevoets / SDCAlertView

The little alert that could
MIT License
1.86k stars 297 forks source link

SDCAlertView as a static library compilation error #271

Open yevyevyev opened 6 years ago

yevyevyev commented 6 years ago

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 commented 6 years ago

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

gereons commented 6 years ago

This seems to be a Cocoapods problem, see https://github.com/CocoaPods/CocoaPods/issues/7633

gereons commented 4 years ago

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

sberrevoets commented 4 years ago

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

gereons commented 4 years ago

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.