Live Rendering a custom component using IB_DESIGNABLE from a pod dependency

后端 未结 3 648
感动是毒
感动是毒 2020-12-28 16:47

I\'m having some difficulty using IB_DESIGNABLE in a pod.

I created a custom view which I marked as IB_DESIGNABLE and made a sample project

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-28 17:44

    This has been fixed in the latest version of Cocoapods (0.36.0.beta.1).

    To install this version:

    [sudo] gem install cocoapods --pre

    More information about Cocoapods with frameworks here

    In order to fix the Error: "failed to load designables from path (null)":

    platform :ios, '7.0'
    
    use_frameworks!
    
    target 'test' do
    pod 'EAColourfulProgressView', '~> 0.1.0'
    end
    
    target 'testTests' do
    
    end
    

    Add use_frameworks! to you Podfile.

提交回复
热议问题