SDCAlertView
SDCAlertView copied to clipboard
SDCAlertView as a static library compilation error
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
Integrating this as a static library is not (yet) supported. This is on the roadmap but not currently available.
This seems to be a Cocoapods problem, see https://github.com/CocoaPods/CocoaPods/issues/7633
With up-to-date tools (Xcode 11.2, Cococapods 1.84) and SDCAlertView 10.0, it Just Works™
That's surprising, how is the XIB bundled in the static library?
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.