React native iOS project not run after disconnected from Xcode build in physical device - react-native

When I first run my project from Xcode in iOS physical device, it work fine. But if I stop the project from Xcode and again start the application from the device, it shows the Splash screen and than quit. I don't understand what is going wrong on the second time.
In both of the cases I am on the same network.

Related

xcode running in emulator - issue

I have a piece of software I wrote using xcode 5. Since I upgraded to xcode 6, the app looks strange when I run it on a physical device using the emulator. Not entirely sure what is going on or how I could fix it. It's not respecting the full size of the screen.
I am testing on an iPhone 5s (NOT simulator -- the app looks fine in the iPhone 5s simulator). I am connecting my phone to my comp and running it via xCode.
I am having the same issue with another project I built using xcode 5 and trying to run again in xcode 6...
thoughts anyone?!
Here is a screenshot of what is going on:

iOS Simulator Doesn't Install Application

Using Xcode 5.1 to debug an iOS 7.1 iPad application.
When I build and run my project in the iOS Simulator, the simulator opens and my app icon pops up for a second. Then it looks like the app stops installing and the simulator goes to the home screen. Xcode still thinks it's debugging and it doesn't show any errors in Xcode or the simulator. I can go to my app in the simulator and click it again, but it just crashes. I get the same behavior in iPad, iPad Retina, and iPad Retina (64 bit). Any subsequent tries to run the app in the simulator doesn't even attempt to pop the app icon up until I quit the iOS Simulator and try again. All the usual fixes haven't worked for me yet.
Fixes I've Tried:
1. iOS Simulator > Reset Content and Settings...
2. Window(in Xcode) > Organizer > Delete Derived Data & Delete Snapshots
3. Delete Contents in ~/Library/Application Support/iPhone Simulator
4. Uninstall Xcode and reinstall
5. Clean project and rebuild
6. Restart machine
I'm out of ideas. Is there something I've missed?
Thanks all!
Create another app with the exact same template and look at the app delegates and make sure they are the same.
Example: AppDelegate.h and AppDelegate.m
You might've accidentally deleted an area that helps load the App.
Alright I found the problem. I was playing with how we load our frameworks because we were having other issues before and I left a bad value in our Linking settings.
Here's how I fixed it:
Project > Build Settings > Linking > Mach-O Type set to "Executable"
It was set to "Bundles" before which causes Xcode to package the app in a way that caused ours to break.
Helpful Post: In Xcode project target build settings, What is Mach-O Type?

How can I see why titanium app crashes on Blackberry simulator

I do a Titanium application that woks on iOS and android. Now, I want to create the Blackberry version.
I've tried with a simple app and it's launched well at simulator, but when I've tried my app it doesn't work.
It launches splash screen and begins to load the elements, but I think the app crash because simulator returns to main screen, there isn't any alert (like on android when app stop unexpectedly), it only returns to main screen.
My problem is that I don't know what happen and I can't find any error logs...
I connect by telnet to the simulator, and there I can see the first traces of my app, but any error.
Do you know what can be happened? How can I know if I have an error? How can I know if my app has crashed?
Sorry, if it's an easy question, I'm newbie at Blackberry.
I'm using Titanium SDK 3.2.2 and Blackberry SDK 10.02
Thank you very much
I've created a new project (with Titanium SDK 3.1.3 instead of Titanium SDK 3.2.2) and copy all files there. I've tried to launch the app many times, and one of them, the app launches.
Maybe it was a computer or simulator problem.

Xcode 5 fails to launch app with error: failed to launch '/path/to/.app' -- Busy

I am using XCode 5, with an iPhone 5s as the dev device. Every other time I run the app I get a pop that says "Could not launch [app name] \n busy". My iPhone 5s then appears to crash and the only way it will respond is if I hold the home and lock button until it resets.
The application is a single view application, the only thing I have done is added the Parse.framework from here and used
[Parse setApplicationID:appID clientKey:clientKey];
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
In applicationDidFinishLaunchingWithOptions, along with some UI that isn't hooked up to anything.
I'm not sure if this has to do with Parse or possibly the App settings.
So to be clear, the behavior is:
Fresh reset > Build and Run application on iPhone 5s > application runs fine > Build and Run application on iPhone 5s > application appears to launch but screen remains black and iPhone is no longer responsive except the screen will turn off when the lock button is pressed (but not back on) > Build and Run application on iPhone 5s > XCode says "could not launch app - busy" > hard reset iPhone
When I run this on the 64-bit simulator it works fine.
Edit 1:
I have tested with multiple applications now that we know work on multiple other devices (iPhone 5, iPhone 4, iPhone 4s) and the simulators. I don't have another iPhone 5s so it is hard to compare exactly but everything crashes my 5s..
My device was completely stuck with black screen. "To fix you have to hard reboot, holding the power and home button until the phone reboots - doesn't lose any of the data you have on your phone (a concern the first time I did it)." as stated here:
http://blog.paulhadfield.net/2014/01/iphone-hangs-when-running-from-xcode.html
For iPhone7 there is a different approach:
Press and hold down the power button located on the right side of
the iPhone 7.
While holding down the power button, press and hold
down the Volume Down button on the left side of the iPhone 7.
http://www.hongkiat.com/blog/force-reset-iphone7-7plus/
You were using your phone when you ran the app. Make sure you don't use your phone after you press build and run, otherwise it will be "busy"
Which Xcode version do you use? Same issue with Xcode 5.0.1 + iPhone 5S (iOS 7.0.4). It crashed my iPhone 5S even by the simple application created by Xcode's default project template.
It seems this issue has been fixed in Xcode 5.0.2. Xcode 5.0.2 works fine for me by now.
I've got the same problem for several times. It seems that this problem always happens when iCloud or other background App is running & the App I was debug is already in running mode.
My suggestion is: Avoid any background App running when debug and Make sure the App debugging is fully killed before restart a debug.
It is obvious a bug in iOS 7 + Xcode 5.
I had the same issue and upgrading to Xcode 5.0.2 resolved it.

Get "No such file or directory" when testing on iPad device but not in simulator

I have an app that i am release as iPhone and iPad even if it developed as Universal. The reason is that i have release an English version that is Universal and just want to update the iPhone and iPad Swedish versions as it have been with separate apps for the different devices.
When i run on the iPhone device i have no problems but when testing with iPad i get the message below, which i do not know how to remove:
"Could not launch “FamilyQuiz_3"
No such file or directory (/Users/peterk/Library/Developer/Xcode/DerivedData/MyApp_3-fosmfwberzyfryenqrjlfpacftjv/Build/Products/Debug-iphoneos/MyApp_3.app/MyApp_3)
I can start the app from the iPad device but it do not start automatically when submit from XCODE.
1)make sure your iOS Deployment Target version is the same or lower than the one on your device in build settings.
2)delete it from the device
3)close xcode
4)Goto /Users/peterk/Library/Developer/Xcode/DerivedData/ on your computer and delete the
MyApp_3-fosmfwberzyfryenqrjlfpacftjv folder
if that still doesnt work go and try deleting the app restarting your phone, and then restarting your computer even, and doing it again.