SDCAlertView icon indicating copy to clipboard operation
SDCAlertView copied to clipboard

SDCAlertView as a static library compilation error

Open yevyevyev opened this issue 6 years ago • 5 comments

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

yevyevyev avatar May 23 '18 08:05 yevyevyev

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

sberrevoets avatar Jun 02 '18 04:06 sberrevoets

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

gereons avatar Jun 04 '18 16:06 gereons

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

gereons avatar Dec 05 '19 08:12 gereons

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

sberrevoets avatar Dec 06 '19 12:12 sberrevoets

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.

gereons avatar Dec 06 '19 15:12 gereons