I have a mac app
I want to run the app on retina display.
How can I make retina simulator.
I am using xcode 7.1. and mac osx 10.11.3
Please install the below given software and follow the steps-
1-Install SwitchResX and open it from System Preferences.
2-Go to SwitchResX and select the new custom resolution in the Current Resolution tab.
You can scale it with the following shortcuts:
⌘+1: 100%
⌘+2: 75%
⌘+3: 50%
⌘+4: 33%
⌘+5: 25%
Or in iOS Simulator: Window > Scale > ...
It's depends on simulator that you select. If you select iphone 6 simulator then it is by default retina simulator and if you select ipda2 then it is by default non retina simulator. you don't have option to select retina simulator separately.
Simulator comes with real device's functionality. if real device have retina display then it's simulator have also retina display. that's it.
hope this will help :)
In Xcode, go to the Xcode menu -> Developer Tools -> More Developer Tools.
A page will open in Safari - Sign in with your Apple Developer Account.
Download the appropriate version of Graphics Tools.
Copy them into wherever you want to use them from.
The tool you're interested in is 'Quartz Debug'. Load it up.
Select 'UI Resolution' from the 'Window' menu. Click 'Enable HiDPI display modes'.
Log out, and log in again.
Now if you go to 'System Preferences' you can select 'Retina' modes on your non retina display (but be warned that you won't be able to fit much on your screen when you do!).
Related
Here is a screen shot of an ipad 10.5 inch running my app which takes up around 50% of the screen real estate. How do I force the app to use 100% of the screen real estate? (I am using xcode 10)
You have to specify it in Xcode. If you don't the ipad is getting a scaled up version of ui for iPhone 4. Open Xcode and specify it "General" project settings.
May be your IOS setting preference is wrong. You are opening your application on ipad but XCode rendering your application as iPhone app.
Go to general setting and select "iPad" in Deployment Info section.
Go to Build Setting and select "iPad" in Targeted Device Families under Deployment section.
Restart your project.
In Xcode 7.1 Simulator, when using ⌘+s to save screenshot to desktop, it saves the actual size of the simulator. For example, iPhone 6 Plus 100% scale simulator save screenshots as 1242 x 2208; 25% scale simulator save screenshots as 310 x 552.
Is there a way to make the simulator scale to 25% but still get original size of 1242 x 2208? The 100% simulator is just too huge on a 13" screen.
It used to save as original size regardless scale level, but in Xcode 7.1 it's no longer the case.
Uncheck "Optimize Rendering for Window Scale" option from "Debug" menu, if you want to save screenshot of actual device size 🖼📲 from iOS simulator.
Happy Programming!! 😀😊
#SamSol's answer may work for earlier versions of Xcode, but the debug window does not appear to be present in Xcode 11+.
Instead, I followed this suggestion from the Apple Developer forum:
In the Simulator, go to Edit -> Copy Screen (^⌘C)
Open Preview and paste as a new image (⌘N)
Save the resulting image (⌘S)
The saved output image should have the desired resolution to be included on the Apple App Store.
To take a screenshot of the iOS, watchOS, or tvOS device and save it to your Mac Clipboard
choose Edit > Copy Screen.
To save a screenshot of the iOS, watchOS, or tvOS device and of the external display as files
choose File > Save Screen Shot.
A screenshot of each open simulated device is saved to the desktop of your Mac.
I've been making a ton of new projects as I'm learning Swift. My development is all on my laptop, so I hate using the default 6s Plus simulator, since the window is too big to easily see. Is there a way to change the default simulator to be a different one for new projects?
No need to delete simulators!
Product → Destination → Add Additional Simulators...
In the sidebar, select the simulator you want to hide
Uncheck "Show as run destination"
Edit: Updated for Xcode 10
You can select the desired simulator via the Hardware > Device > [OS] menu (Xcode 9):
While unchecking "Show as run destination" hides the simulator, this will also change the default value.
Updated image for Xcode 11.5
Xcode 9 UPDATE:
In Xcode 9, no need to delete simulators, and the way to turn them on/off is to go in Product/Destination/Add Additional Simulators... select the simulator you want to turn off, then uncheck the box: 'Show as run destination'
No. But...
If you don't like the size of the 6s plus simulator, make it smaller with the simulator Window Scale menu.
If you don't like the 6s plus simulator at all, delete it with the Xcode Window Devices menu.
Xcode 12.5
In Xcode, go to Product -> Destination -> Choose Destination menu and selecting the device you'd like to be your default.
The original answer could be found in apple support forum here: Apple support forum,
In addition if you want to make the device smaller just hover over bottom right corner of the simulator and you will see the resize option
Deleting the simulators you don't want will default you to the simulator you do want. I also develop on my laptop and the biggest simulator I can see w/o scaling down is the 4S, so I deleted simulators for iPhone 5 and above and now every project I create defaults to 4S simulator. If I ever need the newer simulators, I will just re-download.
In my case, just select the device in Product → Destination, Xcode 12.4
Xcode version 11.5
On Simulator > File > Open Device > iOS 13.5 > Change the default Simulator
Xcode(v11.5)
open your simulator, choose **File/Open Device/iOS 13.5/iPhone8 ** will change your simulator device to iPhone 8.
When you reopen your simulator, iPhone 8 will be your device simulator.
I have just finished installed xCode 4.5 and have been trying to understand the new simulator. I want to test my app in the old screen size and new screen size. However when under the simulator I go to hardware and change the phone size to the 4 inch size, it changes the simulator to take up the full screen, has no home button, is zoomed in, and I have to scroll to navigate which is really frustrating and annoying.
From this
To this
Could someone tell me if this is meant to happen? I want to maintain the normal iPhone look with the simulator, that zoomed in scrollable simulator is terrible, looks horrible and makes debugging a pain. I am sure Apple would not allow something this poor looking to be the normal look for the simulator so I am guessing I am doing something wrong.
The other problem with it is, if I am on the home screen where I can see a list of custom apps under normal iPhone screen size, then change it to the 4 inch simulator screen size, the custom apps I installed on the simulator are not showing for some reason.
Any help would be much appreciated!!
Edit:
I found I change the scale of the simulator under window and changing it to 50 or 75%. However one problem remains, why is there no home button in the iPhone 5 simulator?
What computer are you working on ? I've got a 13'' MacBook and the same thing occurred to me. Some topics say it is related to your screen resolution, and if your screen is "too small" then the simulator won't see the need in a frame representing the physical device. See Nathan Gopen's answer in XCode 4.3.1 iPad simulator. (I also noticed that the frame disappears when you re-scale standard iPhone to 75% or 50%.)
If you need the home button you can find it in Hardware > Home Button, or Shift+Cmd+H. Yeah, I know, it sucks...
This Worked for me:
Go to Simulator Menu
Go to Hardware
Click Device
Click IPhone
This will restore the iPhone Simulator frame.
What worked for me was...
Go to XCode,
Open the main XCode menu option
Click on "Open Developer Tool"
Click on "iOS Simulator"
Change to the simulator you want by going to the "Hardware" menu.
Close the simulator
Run your project again.
XCode was crashing on me when I switched to the non-retina iPad option and this was my solution.
The simulator seems to remember the last hardware option that was chosen.
I don't think it's related to the screen resolution. I'm running it on 1920x1200 and it's the same. I guess it's simply to reduce effort for Apple since it's not essential for development to have a nice looking simulator. But yes, I agree I loved to see a virtual iPhone as simulator. And it was quite easier to produce screenshots of your Apps for your website.
Zooming or scrolling is of course not required on a 1920x1200 screen.
This just happened to me and I did spend a while trying to figure this one out.
By setting the scale to 100% my issue got fixed as Cal said above.
I think this is related to retina display setting ...
When I started the iOS simulator on my macbook pro (w/rd), the iPhone frame came up. I moved the frame over to my attached monitor and it stayed as an iPhone frame. I shut xCode down.
When I restarted, the iOS simulator started up on my attached monitor and lacked the phone frame, just showing the screen. Scaling up or down did not matter.
I moved the unframed screen over to my laptop screen again, and shut down the simulator. When I started it back up, it started on the laptop screen with the phone frame.
I don't think it is related to resolution so much as retina display.
Not sure if this is long term solution, but the following steps helped me.
Go to Windows >> Scale
Select different options as per your wish (I chose 75%)
A few days back I upgraded to Xcode 4.3.2 by downloading from the developer's portal and running the installation files. Since then, I am able to test apps on my devices and am also able to test them on the iOS simulator for iPhone without issues. However, the iPad simulator is not working well. A screenshot is attached.
The home button doesn't appear.
The status bar doesn't appear.
The simulator appears like a window with minimize and maximize icons (only the maximize icon is enabled) and also has a title with the version no.
Can anyone please advise, a screenshot of the simulator is present at the below location.
http://postimage.org/image/68pa1t7l9/
The Skins are missing from the iPad simulator, a solution is using the keyboard shortcuts, Cmd+Shift+H for Home, Cmd+1 / 2 / 3 to resize the window to fit on your screen to avoid scrollbars and such.