I am trying to optimize my website for iPad. Could you please guide me on the best approach:
In terms of whether I should separate desktop/ipad just by CSS
For Windows and Linux users who want to run iOS
simulator inside macOS
using VirtualBox
.
CURRENT SOFTWARE VERSIONS:
REFERENCE:
Prepare VirtualBox:
VirtualBox
+ Extension Pack
(usually by double-clicking -> OS should recognize that Extension Pack
must be opened by VirtualBox
);VirtualBox
;an existing virtual hard disk file
;"Virtual Machine Name"
below by the name which you used in step 6 when you were creating Virtual Machine:For Windows
users we need to enter the next lines (line by line) in a command line:
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "Virtual Machine Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
For Linux
users just create a file, for example myscript
, with a content:
#!/bin/bash
VBoxManage modifyvm "Virtual Machine Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
and run it in a terminal as source ./myscript
.
Install macOS 10.14 Mojave on VirtualBox (Step 7. Install macOS 10.14 Mojave on VirtualBox from the guide):
Install iOS simulator:
App Store
);Xcode
(from App Store
or from Finder -> Applications -> Xcode
);Get started with a playground
+ Blank
in order to skip all annoying steps.Test Site + Use Simulator:
==============
1.1. Open Xcode
;
1.2. In the top menu select Xcode -> Open Developer Tool -> Simulator
;
1.3. [TIP] You can Keep in Dock
Simulator, so you do not need to run Xcode
every time;
1.4. In the top menu select Hardware -> Device
to select device/iOS for simulation;
1.5. [TIP] In the top menu select Hardware -> Manage Devices...
+ Simulators
tab to install a packages with other versions of iOS;
1.6. Open your site in Simulator's iOS Safari
;
==============
2.1. Open Desktop Safari;
2.2. In the top menu select Safari -> Preferences...
+ Advanced
tab -> Tick Show Develop menu in menu bar
;
2.3. In the top menu select Develop -> SIMULATED DEVICE -> YOUR SITE
.