You can format an SD card using Windows, Mac, and Android devices, and likely your digital camera too.
If your iPhone camera won't work, you may be able to easily solve it. Here are some quick fixes to try before contacting Apple.