xcode 5 issue : "iOS Simulator failed to install the application" - objective-c

I have just upgraded my xcode version to 5.0. After running application 2-3 times it's giving me error like this "iOS Simulator failed to install the application". This is working fine in old xcode. When I reset the simulator it works fine, but this is irritating again and again.
Can anybody tell me what is the real issue? How can i resolve it.
Did you find new solution for this thing?

Try manually launch the iOS Simulator and from the "iOS Simulator" menu, click "Reset content and settings", then close and rebuild your app. It worked for me.

i got the same problem but solved by following way....
launch the iOS Simulator
Go and click "iOS Simulator" Menu
click "Reset content and settings"
close simulator and rebuild your app.
Above screen shot is showing the way how you can do this...
I think this works for you...!!!

I just used CMD+SHFT+K and quit the simutor and then run again and it's working, no need to reset simulator or delete an applicaiton.I'm not sure but some time it will work.

Just delete the application from the simulator and build it again.
Or try to use a device with different iOS version.

Related

Expo: Change default IOS simulator

I am new in expo and react-native
Whenever i run the app from IOS simulator (inside expo) it always boots up the IphoneX. If i need to change the simulator,I have to open it through Xcode, is there any way we can change the default simulator ?
expo included an option in recent commits regarding this issue.
now you can tap shift+i on terminal which expo server is running.It will list all simulators and you need to select your choice.
https://github.com/expo/expo-cli/pull/2541
Currently there is no way of changing the simulator from Expo. Expo just uses the last opened simulator in Xcode.
If that doesn't work, try this (updated here from my comment) :
When the simulator is open click on Hardware>Device> Select the other iphone.
Now both will be open. Next exit the simulator from the dock.
Now try and open your project in the ios simulator from expo. It should open in the Simulator you selected from the hardware menu.
This worked for me on Feb 2021
on Mac OS with Big sur, expo v4.1.6
Clean your EXPO cache with expo start -c (on your project location)
In the expo terminal press shift + i (see screenshot below)
Then press shift + i and you should be able to select the Simulator by pressing enter on the one you need (see screnshot)
lastly Just wanted to share all the available options if you just press i in the metro terminal window.
It is possible, but you can't target it from the command line.
Expo will just target the last opened simulator.
Click on Hardware > Device and choose the device you desire
You now have two simulators open, make sure the one you want is active.
Now quit the simulator app with Command + Q
Now in your command line, when running the expo server, just click i
The simulator will open with your targeted device.
(As of December 3, 2020)
Open Simulator
Click on File ... (in the top-left menu bar)
Click on Open Device ... (in the drop down list)
Select your desired device and let it launch completely
Quit Simulator ... (command + Q)
Done
Running your app on iOS Simulator will automatically launch to this desired device now =)
Change the open iOS simulator device(s), and Expo will use it.
Expo directs its output to the open iOS simulator, so this must be done in the simulator itself rather than in Expo. It is simple to do.
You can direct expo output to different devices. Here's how. BTW, other approaches described here didn't work when I tried them.
Open a second simulator in iOS Simulator by:
1) select eg Simulator->Hardware->Device->iOS12.1->iPhone 8
2) Select the simulator that you don't want to use (eg the current default as of writing, iPhone XR). Press Command-W to close the simulator window, leaving the iPhone 8 simulator still running.
3) In Expo, deploy the code to simulator as usual, either using the i at the command line, or selecting 'run on iOS Simulator' from the browser version of Expo.
4) It is possible to get expo to display to more than one simulator that is running at once (eg to test rendering on multiple screen sizes). Once you get expo running on one device (steps 1-3), you can repeat on an additional device (or presumably more). Expo will then be running on multiple simulators. They will simultaneously display the output. When I change my code, it immediately updates to multiple simulators/screen sizes without requiring any additional steps. Haven't re-tested exactly the order of steps to do this most easily, but it's working.
Hope this works for you!
You just need to open the desirable simulator through Xcode, and then just run:
npm run ios
from your project directory or a similar command to start your app
I believe that yarn passes unrecognized arguments through to react-native run-ios, so you should be able to pass --simulator="foo" as described here: https://facebook.github.io/react-native/docs/running-on-simulator-ios.
I know the exact answer
Once you open the Simulator from the Expo, go to Help menu and Search for "iphone11", "iphoneX" ....
Then you should be fine
Go to /Users/username/.expo/ios-simulator-app-cache/ and remove all files in there.
Run the ios simulator you want and run your expo project.
Restarting the computer was the only thing that worked for me. Without it pressing "Shift+i" had no effect. Neither Expo client would be installed on new simulator instance.
This was on macOS and M1 MacBook Pro for me.
Just launch simulator on which you want to run app and then run command i.e. "yarn run ios" or "npm run ios" to run on simulator. App will run on both simulator.
If it doesn't work then quit all simulator and then run the command i.e. "yarn run ios" or "npm run ios", then app automatically run on simulator which was latter launched.
Hope this may help you!

Nuclide Ios Simulator Logs are empty

I just updated some packages in Atom and now I can't see any logs from iOS simulator :/
Atm I have:
Atom - 1.10.2
Nuclide - 0.171.0
I'm doing:
Nuclide Ios Simulator Logs: Start
I got the console with "Showing: 7 Sources", all selected and "iOS Simulator" Process is started, yet console remains empty :/
I've also try doing:
Nuclide Ios Simulator Logs: Restart
but also no luck.
Anyone got similar issue?
Thanks in advance.
Apparently it is an open issue
Options:
Use ChromeDevTools console (On Chrome, Cmd+Alt+J)
Use device system log (On device, use Cmd+ / )
Note: for Chrome option make sure Debug Remote JS is enabled

Titanium appcelerator is capricious,

I face a big problem with titanium appcelerator, this morning i work as usual on my app dev, sundenly i am not able to run my project as this picture shows :
When i click on run i just have "Package" and iOs and android simulator are gone.
I tried rebooting the studio, my mac but nothing.
I use : Appcelerator Studio, build: 4.6.0.201605201934 and xcode Version 7.3.1 (7D1014)
Thanks for your help.
To steps you can try:
Did you try to run your project via CLI ?
Try to locate your sdk in Studio go to settings->platforms->set titanium sdk home (if it is already set, set it again)

Running the app on the simulator shows: "Unable to boot the iOS simulator"

Running the app on the simulator shows: "Unable to boot the iOS simulator". I'm on Xcode 6.0.1.
I tried everything: resetting the simulator; selecting the Xcode 6.0.1 command line tools; restarting the Mac. The problem is still present.
Try this. In Xcode menu: Open Developer Tool > iOS Simulator. When it opens, use the menu to go to Hardware > Device > Manage Devices.... In that list, delete the non-working simulators and re-add them.
Also make sure that the Downloads section of Xcode preferences is up to date.
Do you have DYLD_INSERT_LIBRARIES set? If so, this is a dupe of:
Unable to boot iOS 8 Simulator
Check /etc/launchd.conf

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?