-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load the "errorIcon" image referenced from a nib in the bundle with identifier #96
Comments
Maybe the device is jailbroken? See #9 |
I am running the application on the xcode simulator |
This error isn't typical, so it would be helpful if you could provide more information. A good start would be to send the relevant code. But it could very well be some issue with the project configuration and packaging of the resources in the library, in which case the code probably won't be too useful and I may need you to help me reproduce it on my end. A few suggestions:
As a workaround, you can avoid using any resources from the SwiftMessages library. One simple fix should be to copy the image asset into your project and set it on the message view's |
This is my function :
I try to delete derived data and even load the icon in the function but still the same. |
It's strange if I use my function in viewDidLoad it works. But I want to use it in a UITapGestureRecognizer. Unfortunatly I get the error |
Ok I copy the xib file of MessageView in my project and it works ! |
any one solve this bug |
Same bug here. I did solved by moving all assets in to my project assets and change Return associated image code like this. /// Returns the associated image.
public var image: UIImage {
if let image = UIImage(named: rawValue, in: Bundle.sm_frameworkBundle(), compatibleWith: nil). {
return image
} else if let image = UIImage.init(named: rawValue){
return image
} else {
return UIImage.init()
}
} |
@wtmoose I'm having the same issue with the image. I've used SwiftMessages to so many projects and never faced this issue but right now facing image not found issue with one of the projects. I'm using cocoapod version 1.3.1 One more thing you said that you've moved out all the assets from assets folder and added them separately. I've tried installing it to new sample project but images are still under the assets and not able to get the image from the bundle. For now, I'm moving out the images to my bundle and changing above code in pod file. |
The fix isn't released yet. Did you install the head of the master branch? |
No, not from the head. |
@kushal211 well there's your problem. |
@wtmoose Thanks! I've installed it from Head and images are there and working fine. |
Hello,
I installed your library to display messages to my users. It works fine until today, i have a problem because your library cannot find the errorIcon :
Xcode 8.3.2, Swift 3, CocoaPods 2.1.0
Thank you for your response
The text was updated successfully, but these errors were encountered: