No iphone simulator folder in home library > Application support - macos

I installed the xcode_4.3.1_for_lion.dmg on my mac 10.7.3. I need an iphone simulator folder to install the iapps. No iphone simulator folder in Application support
~/Library/Application Support/?
Checking in home library only.. ~/Library/...
Is there any way to check this?

I think this is a duplicate of How to install iPhone application in iPhone Simulator. I don't see any method of flagging a question as duplicate, though.

See my answer at following post.You should clear your trash folder and reset it.For more detail click below link.
No iphone simulator folder in Application support

Related

How to install an app by drag-and-drop onto the Simulator window?

I have seen the following feature in the change log for Xcode 8.2
https://itunes.apple.com/us/app/xcode/id497799835?mt=12
Simulator installs an app by drag-and-drop onto the Simulator window
But I have tried drag-and-drop with .app file built for the Simulator, but nothing happens. Does anyone know how this feature is supposed to be used?
I wrote a small blog post about this.
In brief: use an .app that is built for iphonesimulator.

Delete app from OSX simulator in Xcode

How do i delete an app from the OSX simulator like on the iOS simulator??
I want to delete an app due to the change of Core Data xcdatamodeld but i can't find a way.
Thanks in advance
For macOS Monterey and Big Sur, the location links to the devices folder location:
~/Library/Developer/CoreSimulator/Devices/{device_uuid}/data/Containers/Data/Application/
On MacOS Mojave 10.14.4 the folder is in the following location:
~/Library/Containers/com.yourcompany.yourapp/
As playitgreen mentioned in one of the comments, the way to delete data relating to your OSX app is by removing the folder/.storedata file from:
~/Library/Application Support/<YOUR OSX APP BUNDLE NAME>/
for example:
~/Library/Application Support/com.yourcompany.yourapp/
All credit to playitgreen
Specifically for Catalyst apps in macOS 10.15 (Catalina) and Xcode 11.2.1.
I tried right-clicking on the app's icon in the dock and then Options -> Show in Finder. I deleted all the files there and ran again from Xcode. The files returned and the app still had the data from before.
In ~/Library/Containers I found a folder called maccatalyst.<my_apps_bundle_identifier>. I deleted the files contained there and when I reran the app from Xcode the files returned and original data was gone. So that seems to be the way.
~/Library/Containers/maccatalyst.<app_bundle_identifier>
There are 2 solution:
When running the app press CMD + SHIFT+ H (simulates a home button press), then you can remove it by long press like on the phone
Remove the appropriate app foler from ~/Library/Application Support/iPhone Simulator/<ios_version_that_you_use>

Xcode 5 IOS simulator black screen and app install fails

I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try to do?
Update--
With some additional research, I found that Iphone Simultor is in the Xcode.app now, but I don't know what to delete. There are many files under the iPhone Simulator Folder. If I delete the actual app, it just doesnt open. Any ideas?? I dont even get an iphone on the screen, just a black window...
Update 2:
Even when I just go to open developer tools -> iphone simulator
it still gives me just a black screen....
Update 3
I just re-installed X-code, and all works now! Strange....I have no idea what happened...But I thought I would let y'all know for others who have similar issues.
Deleting the iOS Simulator folder of the iOS version in question in
/Users/xxx/Library/Application Support/iPhone Simulator
helps, but then you always have to repeat all the settings you made in the simulator (language, for example). Try to press the home button and then delete your app like you do it on a real iOS device. You should then be able to install it again.
This seems to be a known issue.
When simulator open - Go to iOS simulator tab -> reset content and settings..
Work for me.
Perhaps this answer will help?
The simulator should be in this folder:
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iOS Simulator.app
Make sure any #try and #catch(NSException *exception) {} blocks are not commented or are working properly.
This is a version mismatch between your OS X version and your Xcode (iOS simulator)
and it seems that you have upgraded your OS X so Xcode needs to be upgraded as well, Check the versions that match with each other.
You need to upgrade your Xcode which will upgrade iOS simulator.
Good Luck,

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.

The xcode iOS Simulator is prompting me to "choose the folder containing the iOS Simulator SDK" on open. How do I find it?

I just installed xcode for the first time and I opened the iOS simulator. When I do it is requiring me to first "Please choose the folder containing the iOS Simulator SDK" and I have no idea how to located this. Does anyone know where it is? All I went to do is start testing some mobile websites.
If you installed the latest Xcode from the app store it should have installed the sdk and set it up for you. You could try reinstalling if this is how you got it, but check my next comment first...
If you installed Xcode some other way, it may not have come with an sdk. You can check in preferences>Downloads to see if you can download it there (I don't remember if you can) or try the website: https://developer.apple.com/technologies/ios5/
I followed the advice to look in Preferences | Downloads and the installer was there. It looks like an updated Xcode doesn't include device simulators by default.

Resources