How does the iPhone know it's not using an Apple cable?

Solution 1:

Apple has a program called MFi and detects if the cable has a certified chip inside. The chip just says that it's been officially 'Made For iOS.'