Xcode 4.5.1 App Crashes - xcode

Yesterday I updated XCode from 4.3 to 4.5.1 to work on iOS 6 and iphone 5 . I was opening my previous project compiling and running them on my iPad 2 (5.1.1) and everything works fine.
Today, I decided to work on a new project ,just to test every thing i selected a tabbed application and changed the deployment target to 4.3 but it wont work the app icon shows up on the iPad but crashes as soon as I open it.
UPDATE : when i select a single view application(other dont work) from the new project menu and run it without changing anything it works but as soon as i add anything (even a label) it crashes .
my previous xcode problems:
2) xcode is never able to run an app directly . when i deploy them the app opens but crashes instantly then i tap the icon again at it runs fine
3) what do i have to do to target 4.2.1 ipods and iphones
log file
http://www.mediafire.com/view/?l6fcgq2lvqiby6o

Related

Xcode 14 stuck at Launching App on Simulator after few runs

I have update my xcode to 14.1 and macOS to Ventura 13.0.1.
When I run my app from xcode on a simulator iPhoneSE 3rd generation (iOS 16) it works fine a few times. After that xcode is unable to launch app on simulator.
The number of time I try to run it keep adding Launching [App Name] to process .
If I restart simulator it start working again but same thing happens after few runs.I also created new simulator and same thing happens to it as well.
Note: I'm facing same issue for different projects so I think it's not related to my project.
I was facing this issue on an M2 Macbook Air, every build would open the simulator the first time, but on a second run it would hang on a black screen during "Launching app." It turns out the "fix" was to disable "Open using Rosetta" (Applications > Xcode > Right click > Get Info) which I had turned on because of a third party dependency in a work project that didn't create a proper universal binary, which broke using the simulator on M1.
I think people updating to the new version are installing separately, which has the same effect of disabling the rosetta setting if they were using it already.

xCode 13.4.1 Simulator doesn't show up after build succeeded

im doing the iOS Dev Course from Angela Yu right now on Udemy. If i Clone those initial builded Repositories from GitHub, i got many problems with my Simulator on Mac and on my iPhone 12 as well. (using Mac mini m1 with MacOS Monterey 12.4 and xCode 13.4.1).
i write some code which runs fine but if i want to start the build, xCode says "build succeeded" and then nothing happens anymore. Sometimes it just starts fine - seems to be random.
What i've tried:
Reboot Mac
Restart xCode
erase and reset Simulator
choose new Scheme with selected app and set target iOS to 15.4 (and 15.5)
killed all Simulator processes at Task Manager
deleted all Simulator builds and created new ones
reinstalled xCode entirely
tested xCode 13.2.1
yesterday it worked fine ( but there was Projects which we created from scratch ) think it is a problem with repositories which are created 2-3 years ago.
i didn't get any Error Messages... simply "Build Succeeded" -> nothing happens.
Any Ideas? Would Love to complete the Course but it's really frustrating without testing possibilities.
greets

How to uninstall multiple Xcode instances in OS X 10.9

I have multiple Xcode Apps installed in OS X 10.9.2 to check the compatibility. Now I am facing a problem when I run the app, this error occurs "iOS simulator failed to install the application". I want uninstall all Xcode completely to reinstall latest Xcode 5.1. How can I do that? Thanks.
Xcode Instances
/Applications/Xcode.app (Xcode v5.0.2)
~/Apps/Xcode.app (Xcode v4.6)
Use Appcleaner
or
Just drag and drop Xcode to trash from app folder
Looks like this is a known issue. From the -->>
https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/Introduction/Introduction.html
**After switching the minimum deployment target of an application from
iOS 7.0 to a release prior to iOS 7.0, building and running the
application may fail with the message “iOS Simulator failed to
install the application.
” Go to the iOS home screen, click and hold the application icon, then tap the hovering “X” button to delete the application.
**
Another release note:
iOS Simulator If an iOS app is detached, relaunching the same app
from Xcode will result in a black screen in the Simulator even though
the new app is launched. Terminate the app in the Simulator or
relaunch it for the second time.
if you have already developed project and you used xib to develop views then
X-Code > Inspector Selector Bar > Interface Builder Document > opens in > and change from Xcode Default(5.o) to Xcode 4.6 .
Build and Run your app it will run successfully, if it won't run again then, header over to iOS Simulator - Reset Content and Settings. delete old app from simulator then Run again.

iOS Simulator freezes, but only on one profile

I ran into this when I tried to deploy my app to the iOS simulator earlier today - the debugger never connected, and the iOS simulator crashed. Now I can't get the simulator to do anything.
When I first launch the simulator I get a black screen (no tiles from the dashboard), and pressing the home button makes it freeze. If I access the menus at the top of the screen in OSX, that works until I press the home button, then it freezes.
Things I've tried:
Creating a new project in Xamarin Studio and running that
Creating a new project in Xcode and running that
Opening up the Xcode package contents and running the simulator .app from there
Clearing the simulator's Content and Settings.
Reinstalling Xcode fresh (5.0.2)
Pressing the home button (or whatever it's called) on the simulator
I created a new profile on OSX and running the simulator from there, and it froze for a good 20 seconds, then all of a sudden I saw the tiles appear for the home page. I then switched back to my original OSX profile, still didn't work.
The problem seems to be something with my profile, but I have no idea what to look at next. Any thoughts?
GOT IT! The problem was a file located in /Library/Application Support/iPhone Simulator/
the iPhoneSimulator folder was missing - or it looked like it was a link to a missing folder. I deleted it, ran the simulator, and it was fixed.

Xcode 5 - "iOS Simulator failed to install application" every time I switch simulators

Using Xcode 5 GM, anytime I switch to the 5.1, 6.0 or 6.1 simulators to test, I get the error "iOS Simulator failed to install application." When I reset the simulator it works, but this is getting very tiring.
Anybody have a permanent fix or workaround?
Looks like this is a known issue. From the Xcode 5 release notes:
After switching the minimum deployment target of an application from
iOS 7.0 to a release prior to iOS 7.0, building and running the
application may fail with the message “iOS Simulator failed to install
the application.”
Go to the iOS home screen, click and hold the application icon, then tap the hovering “X” button to delete the application. 13917023
Another release note:
iOS Simulator
If an iOS app is detached, relaunching the same app from Xcode will
result in a black screen in the Simulator even though the new app is
launched. Terminate the app in the Simulator or relaunch it for the
second time. 14648784
Delete the old version app in your simulator (usually iOS 6.x).
Alternatively, header over to iOS Simulator - Reset Content and Settings.
This can be easier when you have a lot of apps on the simulator and can't remember which one you're currently working on.
You need to do this for every iOS Simulator version that causes the problem.
None of the other suggestions worked for me. However, after comparing my existing app settings to a new vanilla project, I noticed that the "Build" field for my Target was blank. Once I put something in that field, the app installed just fine!
if you have already developed project and you used xib to develop views then
X-Code > Inspector Selector Bar > Interface Builder Document > opens in > and change from Xcode Default(5.o) to Xcode 4.6 .
Build and Run your app it will run successfully, if it won't run again then, header over to iOS Simulator - Reset Content and Settings. delete old app from simulator then Run again.
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...!!!
Deleting the app in the simulator works for me.
just wanted to add that this happen only if I open xib that created in xcode 4.6
If it's other files, this not happen
try this ....
in my case nothing have worked for me , after resetting the content simulator also , i am not able to install the app on simulator . after that i just changed my project location . i just moved the project to other location . then it installed successfully.
None of the above things worked for me. I just reinstalled xcode and it worked.
Ran into this issue today. Found it was an empty Reference Folder (blue folder) causing this. Removed the folder from Resources in Build Phase... cleaned build folder for the heck of it, and it went away.
/Users/YOURUSERNAME/Library/Developer/Xcode/ --> remove all contents of this folder, then simply launch the app from Xcode.
To check your Executable file settng ex.$(EXECUTABLE_NAME)
(Project setting - info property page)
I have different issue when getting error message “iOS Simulator failed to install application”, the reason is because I have added a property in App-Info.plist without any value. For instance, [Application Category] with no value. Thus the error will show up as well.
When I got this error, the image of the phone actually appeared, but the image of the app I wanted to test did not. Instead, I was on the main page of the phone that shows the apps you have. I fixed this problem by deleting the many icons that appeared on the start screens - about 30 of them. These had been created when I testing apps over the months. So, not saying its a solution, but it started working after I deleted the old app images.
For me it was -framework XCTest.
It made the app die with iOS Simulator failed to install application
and on the device Could not inspect the application package.
Removed it and now works.
You are using Xcode GM which is under beta stage. Use latest Xcode 5.1.1 available.
Also, these error occur while switching between simulator (32 bit and 64 bit).
Quit the simulator and re-build the application. OR
Reset simulator from "iOS simulator" -> "Reset content and settings.."
I changed my app name and bundle id midway. I happened to delete the Executable File name in my plist. I changed it back to "${EXECUTABLE_NAME}" (no quotes) and I'm back in business.

Resources