IB Designables: Failed to render and update auto layout status

后端 未结 14 1147
花落未央
花落未央 2020-12-13 04:11

I have a custom view (xib) that has a UIButton inside of it, I made id IBDesignable doing the following:

UserView.swif

14条回答
  •  旧巷少年郎
    2020-12-13 04:50

    Xcode 9.3, CocoaPods 1.5.3 It may be due to recent update on CocoaPods version. See issue here.

    I had this error IB Designables: Failed to render and update auto layout status in the storyboard, the class STPPaymentCardTextField in Stripe SDK related to Cocoapods.

    Solution is to downgrade your CocoaPods to 1.4.0.

    sudo gem list cocoapods
    
    sudo gem uninstall cocoapods
    
    sudo gem install cocoapods -v 1.4.0
    
    pod update
    

提交回复
热议问题