Flutter ios libCachedImage not showing - flutter

Image stored in local libcachedimage not showing on real iOS device, below is the path where image is stored.
/Users/user***/Library/Developer/CoreSimulator/Devices/B8056AB3-B020-4520-A44E-B3C6E1F4B239/data/Containers/Data/Application/4FCE98E8-BD21-4A35-A79E-0B08EE931BCC/Library/Caches/libCachedImageData/5fa3e7e0-77fa-11ed-a821-d7297da5f84d.jpg'
But it's working with iOS emulator not on real device.
Thanks.

Related

Xcode 14 Canvas preview wrong for connected device

I had this error already in Xcode 13 but it still persists
in the current version.
When I connect my iPhone XS to preview my SwiftUI app in the canvas, it shows the iPhone 14 Pro layout. However, when I check on Devices and Simulators, it's correctly recognised as iPhone XS.
So when I design my layout, I always have to switch between the iPhone XS simulator for designing, and my real device for testing.
Does anybody know a way to show the correct device in the canvas?
I have the same issue and I found out that if you want to see the specific device type to canvas, you have to download the simulator for this device.
From the "Windows" tab, choose "Device and Simulators", and then Simulators. At the bottom left of the window, you can add new simulators.
Then choose your device type and download it.
Once you've added a new simulator, you can use PreviewDevice(rawValue: "Your Device Type").
For example:
I added a new iPhone 12 Simulator and use HomeScreen().previewDevice(PreviewDevice(rawValue: "iPhone 12"))
add simulator window
After that, I am able to see my screen as an iPhone 12.

Images not loading on simulator and physical device flutter

I made an app and I ran it on my physical device but the images are not showing up and instead showing up as unable to load _.png. When I run this on the automatic Google Crome tab the images show up perfectly fine. Why would this be?
Oops i forgot to add 'assets/' before the .png file

Launch images xcode issue, Iphone 6s launched app zoomed

When I launch the app through the Xcode in my Iphone 6s, the app is being launched zoomed. The specific app is already on the app store with all the assets and launch images set correctly and everything was working fine. All the resolutions were correct for all IOS devices. But now, after I launched it again through the xcode as I want to make an update the app is being launched zoomed. Any ideas why this is happening? I managed to test it only in Iphone 6s.
Happened to me when I gave a wrong resolution to the splash image (750x1134 instead of 750x1334). I guess Xcode assumes you want to use the app with that resolution overall and adapts accordingly. Was fixed when I gave the correct resolution splash image.
At least I didn't find a solution and what caused this issue, but I used the storyboard file as a launch screen which was much easier to develop.

Why my Xcode4.5 doesnt have a iphoneretinasimulator with 4 inch?

I have downloaded xcode 4.5 from ios dev center.(dnt know is it the way).I got a dmg file.when i clicked on it to install it has only one xcode setup is there(nothing like samples,simulator folders which normally has).i inatalled it run my application .but when i got the simulator it has hardware options as ipad,ipad retina,iphone,iphone retina3.5,iphone retina 4 inch.only.the normal iphone simulator has the same screen reselution as 320,480.so the retina display has only the changed reselution screen.Is it correct.Can any body used this can guide me?
If you mean that there is no low resolution Simulator, thats right. If you want a smaller Simulator, you can type CMD-3.

App Icon shows fine in Simulator, but when running on iPhone, Launch Image is shown as icon instead of the desired icon

my app icon shows fine in the IOS simulator and the launch image is displayed too. However, when I run the app on my iPhone 4, it shows the launch image as the app icon.
If I delete the .plist value for the launch image, this seems to resolve the problem for running on the iPhone. But should I be doing this?
Is there some setting I need to change on my phone? I have tried cleaning the project to no avail-- only deleting the plist Default.png value seems to fix the issue and I am not comfortable doing this because I figure xcode must copy it there for a reason.
System Details:
IOS 5.1
Xcode 4.3.3 (was a problem with 4.3.2 too though)
iPhone 4
Thanks.
Is your icon named Icon.png (and its associated Icon#2x.png, etc.)? This is the required name for iPhone apps according to the Apple documentation.