Error code

iOS 1015

IOS1015
System Error Code· A POSIX/system errno returned when a system call fails.

What it means

Cannot restore to a downgraded firmware version — iTunes detected an attempt to install an older iOS than what Apple currently signs..

How to fix it

  1. Use the latest signed IPSW for your device — check ipsw.me to confirm which versions Apple is currently signing.
  2. Update to the latest iOS instead of downgrading.
  3. Note: official downgrades are not supported by Apple.
  4. only upgrade.

Not affiliated with iOS. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.