Can't Upload Images to iOS SImulator - ios

So I'm trying to put some images onto my iOS simulator (from Xcode 5) and it's not working. I know how to do it by dragging the files across and it loading up safari etc. However everytime I do it it says file does not exist at location, null pointer. I also noticed when I load the photos app from within the simulator it shows nothing but a white screen. I've tried resetting the settings on my simulator but it has no affect. Any input would be greatly appreciated!

Related

Flutter splash screen Xcode white background for first 2 seconds

Flutter splash screen Xcode white background for first 2 seconds. After that, it correctly shows the images from my storyboard... I tried everything to get rid of that first white blank screen, but I can't. Can someone help, please?
Removed Launchscreen.storyboard and regenerated.
Removed app from
device and reinstalled
Tried everything here:
Launch Screen not displaying iOS 8
Changed these configurations.
Bot nothing works at all. I am using Flutter and flutter_native_splash and generated the icons with this, but they did not help either.
Note: I noticed that I only see launchscreen and main as options in general > app icons and launch images in Xcode. Shouldn't I be able to see the option launschreen_storyboard as well?
Note: Android works fine. It only is a problem at iOS.
I have fixed the issue by restarting my device. Apparently this is an iPhone/iOS cache bug.

The icon of my iOS application is not displayed in iPads (but fine with simulators) [Swift, iOS, Xcode]

I am creating an iOS application for iPads with Swift 5, Xcode 13.1.
Last time I changed my icons by replacing images in Assets.xcassets. However, suddenly the app icon became not properly displayed on my iPad for some reason. Now the app icon is just a grid.
There are two weird things happening:
The icons are actually properly displayed when testing with simulators.
Then I reversed all of the modifications using GitHub, but the app still does not show its icon, even with using all files that used to show the icon properly.
I have tried:
rebooting my MacBook Pro and iPads (mini 6th & pro 11 inch.)
clean build,
made sure App Icons Source was appropriately selected
recreate new iOS app icon in Assets with Xcode
tested with other icon files that are confirmed to be working with other apps
re-install Xcode
Tried with my iPhone
However, none of the above solved the problem. I would appreciate it very much if I could know what is happening and how I can show the app icon properly.
Update!
I updated iPads and iPhones to iOS 15.1, and the problem was solved... temporally. When changing the icon files, I realized that the icons were not displayed properly with iPads but not with iPhones and. All of the simulators stopped displaying the icons properly. Further playing with Xcode, I realized that include all app icon assets was ticked, so I changed it to ticked and vise versa. This appeared to cause the problem..., But honestly could not replicate the problem that clearly!
Currently, the changing icons are appropriately reflected in my iPad Pro 6th gen, but not in my iPhones. Simulators are not showing icons appropriately either!
I would really appreciate it if somebody could explain what is happing to me.
I updated iPads and iPhones to iOS 15.1, and the problem solved completely!! Now all icons are displayed properly.
Update 1
The above solve the problem... temporally. Then, further playing with Xcode, I realized that include all app icon assets was ticked and this was causing all of the icon problems.
Once I ticked off include all app icon assets, I was actually able to change the image files from Assets and reflect it on my app.
Update 2
When I reopened Xcode again today, for some reason, all simulators displayed icons properly. iPhones and iPads are working fine as well. include all app icon assets does not SEEM to have influence now...?
I honestly have no idea.. But, I could say if somebody is struggling with the same icon issue, updating everything might change the situation...

Old Launch Screen and black display after iOS app update

I made an iOS app with Xcode and Swift. In v2, I also updated Launch Screen and Launch Images.
I first installed v1 of my app from the App Store. When the new, v2, was available from the App Store I updated my app on my devices. That's an iPhone 5s with the newest iOS and an iPhone 7 Plus with the newest iOS.
After updating my app on the iPhone 7 Plus it still showed up the old Launch Screen. Restart didn't help. I had to delete and reinstall the app to get the new Launch Screen shown up.
On iPhone 5s I didn't get any Launch Screen or Launch Image, I got a black screen for the time the Launch Screen shot get shown. I deleted and reinstalled the app. That didn't help. I also had to restart the device after reinstalling the app to get the right v2 Launch Screen.
Why that strange behavior? What can I do? I cannot ask my users to reinstall the app and restart the devices.
After updating the Launch image, delete the application cache which is stored in DerivedData folder.
If you are using xib or storyboard for displaying LaunchScreen move the images into an asset catalog, rather than using the png filenames.
The only workaround that works for me was to add the images outside Images.xcassets folder. After modified this and rebuild the app, it worked expected.

Sencha Touch Cordova app gives blank white screen on iPad

I have a sencha touch cordova app which works perfectly fine on Iphones, to get it past the apple review I need to make it work on iPads too. I do not intend to support iPad users at this point of time so have kept the Devices as iPhone only in the settings. I expect the app to open in iPhone resolution on the iPad and works similar to the iphone - but it doesn't, when i install and run it on the iPad, all I get is a blank white screen and nothing happens further. On the xcode console I get this :
WARNING: The splashscreen image named LaunchImage-700 was not found
which is the only difference between the logs of the iphone and the ipad.
I believe it isn't getting the launch image for the iPad but I have no clue where or how to include this image.
Would be great if someone can point how to solve this issue and make my app work on an ipad.
I had this error after updating xcode. They got really picky about what splash screen sizes you can use.
I use this plugin on npm cordova-splash. This builds all different sizes of splash screens and my xcode automatically picked them up.
Usage is really simple just make sure you have a splash.png file in the root folder of your cordova project and run cordova-splash

iOS launch screen does not update

I've updated launch screen on an enterprise app, but it won't update when installed on an iPad with the existing app. I've tried completely deleting the app before installing a new version, but it still launches with the old launch screen image.
I've tried installing the new app on another iPad where this app was never installed and the new launch screen appears as expected. Both iPads run the same iOS v9. The app was built with xCode 7.2
In summary I've tried the following scenarios:
updating existing app (version 1) on iPad A - with a new app (version 2)
iPad A, loads the new app v2 with launch screen from version 1
installed new app (version 2) on iPad B, which never had this app.
iPad B, loads the new app v2 with correct launch screen
then I installed old app version 1 on iPad B
iPad B, now loads the old app v1 with launch screen from version 2
It seems the iPad somehow caches the launch screen from the very fist install regardless which version it is. Deleting the app and reinstalling does not seem to help and it does not look code related as the correct launch screen images was loaded on iPad B
I just had this problem and i found that deleting the app off the device or simulator, then restarting the device or simulator seems to fix the issue.
I found just restarting the device didn't work.
I had tried many kinds of solutions and restart your iPhone is the only way.
In xcode, under Assets.xcassets, I clicked on LaunchImage and then unchecked Universal, checked iPhone, unchecked iPhone, and checked Universal again. Then ran build and it cleared the old image.
Simulators and iPhone caches the launch images.
this can help you
1>Clear the derived data under your developer/xcode folder
2>reset the device by pressing home button and lock button at same time
3>Push your code to device and it will work, if this doesnt work then creat ipa file and install using itunes after resetting the device and it will show the new launch images
The answer by Steve still holds as of iOS 13.2.3, but I wanted to add a few more items just to back up this point that otherwise exceed the restrictions of a comment.
For starters, I did delete the app, restart the device, etc but because this issue occurs when a user updates through the app store, those fixes are simply not viable.
Then, I decided to take more drastic actions within the app to try and remedy this. These actions were taken with TestFlight builds.
In my particular case, the problem stems from a version string that misrepresents the installed version.
Step 1 then was to simply remove the UILabel in question. Re-running the app would still cause the label to appear in the app.
Step 2 then was to create an entirely new LaunchScreen storyboard and set it as seen here:
Launching the app still presents the old launch screen.
This leads me to believe that something in the project structure is the source of the caching, and no reasonable changes to the LaunchScreen by the developer are going to get around this.
Update
The app has been released to the Appstore, and using the official store release, the app presents the correct launch screen.
Solution
Again, thanks to the thread I have referenced above I found a way to solve this issue - name your new image differently from the one there was before in case your new one has the same name as the old one and put it out of the *.xcassets folder to the project directory and reference it in your UIImageView. And that's it.
Just delete app from simulated iPhone home screen.
On iPhone 11 Max version 2-finger click and drag up from outer margin of the iPhone which will bring you to the home screen and exit your simulated app.
Then 2-finger click and hold your app, delete app and close simulator.
Open Xcode and click play button to run your simulation and the launch screen should be updated.
P.S. Deleting Xcode cache and derived data couldn't hurt.
See Rambo's post about the issue. At least on iOS 13 you can clear this cache yourself:
import UIKit
public extension UIApplication {
func clearLaunchScreenCache() {
do {
try FileManager.default.removeItem(atPath: NSHomeDirectory()+"/Library/SplashBoard")
} catch {
print("Failed to delete launch screen cache: \(error)")
}
}
}

Resources