-
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
image not loaded correctly from real device #55
Comments
Make sure you're on CocoaPods 1.0.1 or later. If not, update CocoaPods, do a full clean, |
Thanks for replying so fast @wtmoose ! I got I copied and pasted the assets to my project and now I see the UImageView I manually added to a UIViewController but nothing changed regarding the SwiftMessages, it keeps searching the assets from the "org.cocoapods.SwiftMessages" bundle, going to copy over the .xib for now |
this is my clean script btw, it didn't help neither
|
copying over the whole project doesn't work neither :\
|
My device is jailbroken, I didn't realise of #12 despite I used the github search upfront. 👎 for github search, will try that branch and let you know how it goes. |
the I personally don't see why it would be better to scale super precisely to any screen resolution for optional icons that may or may not appear for a few seconds vs. making an app crash because of an auxiliary feature on jailbroken devices which are not a few https://www.quora.com/What-percentage-of-iPhones-have-been-jailbroken. Just suggesting, thanks A LOT for sharing your work anyway |
Btw, I removed the reference to the icons on the |
SwiftMessages doesn't attempt to find the included images in the main bundle, so I would not be surprised if this line doesn't work for you: view.configureTheme(.info) A workaround would be to replace the above line with your own configure method that sets the colors, icons, etc. to your liking. I didn't understand your comment about scaling super precisely. |
Closing this as a duplicate of #9. |
The following code works just fine (except for the warning I mentioned on #53) on the simulator
However on the real device it makes the app to crash with this error
Could not load the "errorIcon" image referenced from a nib in the bundle with identifier "org.cocoapods.SwiftMessages"
First of all it's weird is moaning about the
error
icon when the requested would be theinfo
one(if any) it seems to ignore that
iconImage: nil
on the parameters listAnyway I checked out it's in the assets file and I even have dropped a UIViewController with an image referring that same icon to check it's present within the app assets, I can see the image just fine on the storyboard referring it from the IB but it fails to resolve at runtime, in the simulator or the real device.
Thanks for your time guys
The text was updated successfully, but these errors were encountered: