I have an existing app that works on iOS 10 or before, where as some of the features are broken in iOS 11 Beta 8. When I analyzed and debugged, understand that appdelegate methods "applicationDidEnterBackground" and "applicationwillenterforeground" are not called when app is coming from background to foreground immediately after tapping home button.
Important note: You should be doing the things like Tapping on home button followed by Tapping on App icon in no longer than 1sec.
Using Xcode Version 9.0 beta 6 (9M214v), testing on iPhone 7 Simulator.
Please find the attached sample code along with recorded video.
https://www.dropbox.com/s/zba7go5d7wo6j1n/Test.zip?dl=0
Did anybody face this issue? Seems, a bug in iOS 11.
Related
Starting in Xcode 12, when my app launches in Simulator, a banner temporarily appears at the top. It reads "MyApp pasted from CoreSimulatorBridge".
The banner is styled differently than anything in my app. I am certain it comes from Simulator itself. I have noticed it in every simulated device: iPhone 11, iPhone 8, iPhone 11 Pro Max, and probably others.
What does this mean? Does it indicate something bad or is it merely informational?
I did not notice this in Xcode 12.0.1. I first noticed it in Xcode 12.4.
It's the same banner that appears whenever an app reads the clipboard, either intentionally by the user tap doing some kind of paste, or in the background by frameworks that are grabbing the clipboard contents.
CoreSimulatorBridge is the iOS process that is mirroring your Mac's clipboard to the simulator.
If you aren't grabbing the clipboard, perhaps one of the 3rd-party frameworks you're using is?
In my case this was because of an old version of Admob. I went through my game and disabled everything and it only went away when disabled GoogleMobileAds framework.
Jesus Christ, Google!
I have an application build on Xcode 4.6 and iOS 6.1, but now apple requirement of submitting app must be published using Xcode 5.0. I set the deployment target to 6.1 in Xcode 5 and publish the app to app store.
I have a plan to shift completely to ios7 later but when I run app from Xcode 5 I am getting old UI but if i am downloading from store I am getting the ios7 UI which is not optimised and all loping very bad.
How to fix this issue?
Some UI elements are iOS version depended (no matter on what Xcode version your app was compiled). If you are using iOS 7 (on the simulator or on a real device) your UIAlertView for example will have the new iOS 7 UI. (Blurred white with blue writing)
I'm guessing that your iPhone has iOS 7 on it while you are trying to run your app from Xcode on iOS 6 simulator.
On a device running iOS 7, all of the system UI—such as alerts and
notifications—uses the iOS 7 appearance, even if your app is currently
using an earlier appearance.
iOS 7 UI Transition Guide
If you want to keep the legacy UI and still use Xcode 5 you can read this great tutorial.
I'd still advise against this, staying behind will stack more and more problems that you'll need to solve eventually.
I am working on an app that has not yet been redesigned for iOS 7. There are a few new features being added that I want to deliver in an app update, but I want the app to run in iOS 6 "compatibility mode" on iOS 7. I have set the Base SDK to iOS 6.1. When I build and run everything looks fine in the iOS 6 Simulator. However, in the iOS 7 Simulator, all elements look iOS 6-ish with the exception of the UIButtons which are all borderless.
Is this expected behavior, or am I doing something wrong?
I tested this using a simple app with one button and one switch.
iOS 6 Simulator:
iOS 7 Simulator:
Notice how the switch remains iOS 6-like in iOS 7 but the button does not.
From my experience you need to work and submit the app using xCode 4.6 if you want to retain the iOS 6 UI. Testing is a little tedious in iOS 7 but you can do it but installing the ad hoc app on your iOS 7 device.
Update
as #rmaddy mentions in the comments, you can build directly from Xcode 4.6 to iOS 7. Use your iOS 7 device with xCode 5 before doing so.
I have an app and the Default.png images always comes up on some devices when coming back from background.
It would seem to be happening for apps that were created after I upgraded to XCode 4.6.1.
I tried the solution suggested here:
IOS Default.png show every time when my app enter foreground from background
and no go.
If I run the app on iPhone 5 with 6.1.4, the Default only comes up once when the app is initially launched. After that, it never comes up.
If I run the app on my iPad 3 with 6.1.3, the Default always comes up after coming back from background.
My QA lead sees the issue on her iPad 3 with 6.1.4.
Did they change something in the XCode project settings?
Genrally Your App Enter in to Foreground ,IOS 5 simulator displays a Lunch Image where IOS 4.3 simulator take a screen shot of the App when it was entering in to background , but testing on real device its work perfect.
I found the answer by chance here:
Prevent Splash Screen from showing after returning from background
Turns out I had set UIStatusBarStyle in my info.plist and that caused the issue on iPad 3.
Events like location changes launch concerning app into background if it is not launched yet. But I don't see how to simulate such scenarios on simulator. Is it possible? How?
It's not possible with iOS Simulator found in current public SDK.
I know this is borderline breaking NDA, but you should take a look at Hardware menu item of new iOS Simulator that comes with Xcode 4.2 beta.