PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.2k stars 274 forks source link

Adding an image in CardArticle file gives an error #126

Closed Daksh14 closed 5 years ago

Daksh14 commented 5 years ago

I want to add a small UIImageView to the card, so I edited the CardArticle.swift file and added some lines there

//Priv Vars
    public var profileImage = UIImageView()
override open func initialize() {
        super.initialize()

        backgroundIV.addSubview(profileImage)
        . . .
}

This gives me an error

dyld: Symbol not found: _$s5Cards11CardArticleC12profileImageSo11UIImageViewCvM Referenced from: /var/containers/Bundle/Application/A42E4358-16EE-46C5-815A-> 6484544D486C/Fibble.app/Fibble Expected in: /private/var/containers/Bundle/Application/A42E4358-16EE-46C5-815A-> 6484544D486C/Fibble.app/Frameworks/Cards.framework/Cards in /var/containers/Bundle/Application/A42E4358-16EE-46C5-815A-> 6484544D486C/Fibble.app/Fibble

Any idea why this behaviour is happening?

Daksh14 commented 5 years ago

The issue was resolved by doing a clean build folder and if that doesn't works then delete the derived data file and restart. Closing this issue