Running my own Swift app on real device shows only LaunchScreen - swift

I can run my Swift app(Xcode) on real device, but it shows only LaunchScreen. I waited for more than 20 minutes, but nothing else shows. Anyone know, why there is this problem?

There are a few things you could try. You haven't given a lot of detail but from my understanding you have tried pairing it with a physical device and can only see the initial screen when you run the app.
I would try
Restarting Xcode
Making sure the app works on simulator
Unplugging and Replugging the cable into your phone
Restarting your phone

Related

Xcode loses connection to device while debugging

My app has recently started exhibiting a strange behaviour. When I build and run from Xcode, the app launches until it hits the transition from the animated launch screen to the main screen of my app. At that point Xcode says "finished running yourApp on theDevice" and the app itself sometimes continues running on the device, or sometimes freezes.
Once this has happened, Xcode behaves as though my device is disconnected until I physically unplug and replug the USB cable.
Anyone run into this before and found a solution?
Potentially related, I have recently begun to see the "The device does not recognize this host" error periodically (mentioned here and here), although my app does not use Entitlements.
I had a similar issue and from this link started checking my project for images,textures etc larger than 1024 x 1024 and found one png which was around 2732 x 2048. After reducing its size I am not getting this bug.
I'd suggest trying with another cable plugged in another port.

IPhone - Application behaving differently after some time in background

I would like you to help me here.
I'm developing an app that works in the background. It's a location-based app and I think I'm going crazy because when I'm debugging the app in the device it works perfectly, I make it sleep I wake it up and I works as expected. Then I unplug the device from the computer and I put in my pocket and whenever I open it, it sometimes works and other it doesn't, I'm talking about several hours in the background.
Are there any known issues about this? My device is running iOS 5.0 and I'm developing for iOS 4.0
Thanks
Applications in the background are handled by iOS. Therefore if iOS "thinks" that it needs memory it maybe frees some of the memory your app needs to run.
Have you tried to look into it with Instruments?

Debugging an App on iPhone Device

This seemed like a really simple thing to do to me at the beginning. However I couldn't figure it out for myself and I've been looking online for a guide or something for hours to no avail.
I have an app that functions perfectly fine in the simulator however, when run on an iPhone device it crashes ... I am fairly sure it is due to memory issues. However these issues can't be recreated in the simulator. What I want to do is attach the xCode Debugger to the App while I'm running it on the phone. I have a certificate and profile and everything already. I have no problems installing and running the app on the phone. However I can't seem to attach the debugger to it.
Any tips?

App freeze and then crashes on splash screen

I have an iPhone App published for a while, developed under the SDK3, and everything works great. Some weeks ago, when Apple released the SDK4 I made some changes to my app to support multitasking (it plays audio in the background).
In my simulator and my device (iPhone 3GS iOS4) the app runs great, there is no problem at all. But, now when I submit the update, a lot of users are contacting me because they say that the app freezes on the splash screen and after waiting about 40-60 seconds, it crashes.
By asking to the users, I have determinate that the problem is only in those devices that haves iOS4 (iPhone 3Gs and 4G).
I tested the app over and over in my simulator and my device but it never happens to me!! Some one have any idea or information about this?
I will really appreciate it. Thanks.
After search for the crashes, and try over and over, I can't reproduce the bug on
my devices. So, I decide to start reading at the Apple Developer Forums and I
found a thread where my suspicions are affirmed: this problem is caused by an internal
iOS4 bug.
"There's a bug in the App Store's code signing process. Talk to DTS: they can
help you with the workaround. Mention rdar://7909951."
"...but it should be the cause of nearly all "failed to launch in time" inside
libobjc:_mapStrHash..." (This appears in some of my app crashes)
Here is the link to the post: failed to launch in time in iOS4
There is no certain solution, but some suggest that a start is changing from arm6 to arm7 and try.
You can try changing some code in the app for producing a different binary and submit it again.
I hope it can help anyone else.
Check the crash report on itunesconnect.apple.com
iPhone 3G also supports iOS 4, except it "doesn't support multitasking" (presumably due to lack of RAM?). If you're only seeing crashes on the 3GS and 4, then that might be the issue.
Default.png is shown on launch, but it's also shown on the foreground when the OS didn't manage to get a screenshot while backgrounding, or for various other reasons (e.g. your app was launched with openURL, so the UI is likely to be different).

NSLog outputs to console when running on iphone simulator, but not when running on device

Has anyone heard of that before? It's making me crazy.
It happens only in the main app I'm working on. Other apps do show NSLog's in the console when running on the device.
I've tried re-installing the sdk, rebooting the computer, cleaning, deleting the build folder, rebooting the phone, a million things. I know the nslog code gets run because the exact project shows them in the sim. Also, even nslog's surrounding the code that loads the initial view in appdelegate's applicationDidFinishLaunching do not display when run on the device.
The app runs fine on the device, but I get no nslog output to the console.
If anyone can help it would be so greatly appreciated!
--Steve
Are you looking in the Console application, or in the Xcode console available through the Xcode Organizer? The former is used by the simulator, the latter is used for devices.