Skip to content
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 "(null)" #22

Closed
MVakas opened this issue Sep 28, 2016 · 7 comments

Comments

@MVakas
Copy link

MVakas commented Sep 28, 2016

I’m getting this error on Xcode 8 and Swift 2.3
In my pod file I have
pod 'SwiftMessages', '~> 2.0.0'
screen shot 2016-09-28 at 9 38 37 am

@wtmoose
Copy link
Member

wtmoose commented Sep 28, 2016

Are you on a jail broken device? If so, see #9. Otherwise, can you provide some context (e.g. Show some code, etc.)? This isn't normally an issue, so I need more to go on.

@MVakas
Copy link
Author

MVakas commented Sep 28, 2016

Not jailbroken.
Even tried with creating a new project and using legacy Swift.

Trying the following code taken from your demo project.

  ‘let warning = MessageView.viewFromNib(layout: .CardView)
    warning.configureTheme(.Warning)
    warning.configureDropShadow()

    let iconText = ["🤔", "😳", "🙄", "😶"].sm_random()!
    warning.configureContent(title: "Warning", body: "Consider yourself warned.", iconText: iconText)
    warning.button?.hidden = true
    var warningConfig = SwiftMessages.Config()
    warningConfig.presentationContext = .Window(windowLevel: UIWindowLevelStatusBar)

    SwiftMessages.show(config: warningConfig, view: warning)`

@MVakas
Copy link
Author

MVakas commented Sep 28, 2016

Tried with Swift 3.0 and getting the same error when I try to show a message on Xcode 8.

@ralphm18
Copy link

I'm having the same problem... what can we do to fix it?

@wtmoose
Copy link
Member

wtmoose commented Sep 28, 2016

Make sure you're using CocoaPods 1.1.0.

Can you try the attached project? I dropped your code into a fresh Swift 2.3 project and it worked. If you're still having trouble, can you send me a test project?

SwiftMessagesTest.zip

@MVakas
Copy link
Author

MVakas commented Sep 29, 2016

Hey thanks for the help. I wasn’t on CocoaPods 1.1.0
You can close the issue.

@wtmoose
Copy link
Member

wtmoose commented Sep 29, 2016

No problem. Glad you got it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants