iOS: Blank titles of buttons, labels - ios

I am using the latest software. Xcode 12 and iOS 14
After installing the app from Xcode whether it was a simulator or a real device everything just fine. But, when re-launching the app after stopping the application from running through Xcode everything just blank.
I believe the problem is not related to the appearance mode because I already tried that.
The first image shows the notification page when I run the app through Xcode.
The second image shows the notification page when I run the app normally (Pressing the app without Xcode). It's not only the notification controller, all the app is facing the issue.

Just created a new project and copied my code into it. The project worked as expected

Related

How to force a call to getPlaceholderTemplate on Apple Watch simulator to update complications preview

I made the mistake of installing the app on the simulator without having set up all my complication templates. As the docs state, getPlaceholderTemplate gets called one time and then cached.
So now that I have all my Watch complication templates set up, I want to text them out by customizing the Modular face. But only the one template I had originally created will show up, the rest have the white box. This is just the static template I'm concerned about.
I've tried deleting the app from the simulator, removing it via the Watch app, re-installing, but still doesn't seem to call the function again to update the templates. Any thoughts? Thanks.
What I do to resolve this is click Simulator > Reset Content and Settings... in the Menu Bar for both iPhone and Apple Watch simulators.
Uninstall the app and then re-install using the Watch app on iPhone Simulator

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)")
}
}
}

UI Issue in version 7.1

I am developing app for iPad with greater than 7.0 version.
I am facing annoying issue regarding UI. When I run app in iOS version with 7.1 it display as below:
I can access the buttons, textfield and all, but can't get background image, button background images of any controls.
I also run in simulator and same problem I get in it, but after reset the simulator, it's running fine. Now the question is, what about device?
When I run same app in different device with different iOS version like 8.0 and above. It's running perfectly.

iOS not launching with xcode 6.1

I'm having trouble running my app in a simulator or connected device after upgrading to xcode 6.1.
Whenever I run my app, am getting a black screen. I tried all possible solutions found online like cleaning and resetting, changing command line tool ,reinstalling ,rebooting etc...
I tried creating a new simple test project and it worked. But my older project is not launching. I even tried making my rootviewcontroller as a simple view with just background color, still its not launching.
Is this an SDK issue?
Any help will be great,
Thanks

Why Can't I delete or Remove iPhone / iPad Duplicate Enterprise App Icon Copy?

I created an enterprise app in Xcode 4.6.3 and posted it on a website. The app succesfully downloads to iPhone5 and iPad3 (both running iOS 7). The app runs just fine. However, it created a duplicate "ghosted" app icon on both devices that cannot be removed See Screen Capture.
I tried removing it by long-pressing the app icon and touching the "X" on the device. I also tried removing it in iTunes. No luck. I updated to Xcode 5.0.1, developed for iOS 7, recompiled and repeated the process. No luck. The duplicate icon remains!
This is not an issue on devices not running iOS 7.
A similar thing happened to me while trying to delete an app that was being built at the same time with XCode.
Try restarting the phone by pressing and holding the button on the top and the circle button on the bottom.
When the OS repopulates the dashboard on the next launch, it should detect the discrepancy and either not display the bad icon or make it available for removal.
If your Apps don't includ iOS, you are surely able to delete Apps from iPhone, do all of your 3rd party apps no longer show the delete "x" when wiggling? If so, try the following steps as needed:
Restart phone
Reset phone (no data loss): press both home and power buttons for at least 10 seconds, releasing when the Apple logo appears
Settings > General > Reset > Reset All Settings
Restore iOS using iTunes, also restoring a backup
Restore iOS as new, without using a backup

Resources