How I understand, you have an issue with a special character ("apostrophe") in the SSID. Probably "Yourname's iPhone". The easiest way is to change the broadcasted SSID in your iPhones "Personal Hotspot" Settings.
If this is no option, try to escape the apostrophe on your RPI settings:
ssid="YourNAme\'s iPhone"
General setup for WIFI from this site:
In Terminal, open the wpa-supplicant configuration file in nano:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Go to the bottom of the file and add the following:
network={
ssid="name_of_your_wifi"
psk="Your_wifi_password"
}
Now by press Ctrl+X
to close nano, then Y
to confirm to save your changes, then finally press Enter.
At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network. If it does not, either manually restart the interface with sudo ifdown wlan0
and sudo ifup wlan0
, or reboot your Raspberry Pi with sudo reboot
.
You can verify if it has successfully connected using ifconfig wlan0
. If the inet addr field has an address beside it, the Pi has connected to the network. If not, check your password and SSID are correct.
ifconfig
and details of how you set up WiFi on the Pi. – Milliways Jan 23 '17 at 22:51