I'm trying to build a sorter that scans the barcode on the brick using an iPhone and sorts it accordingly to the barcode. I cannot use colours due to amount of things to sort.
You will have to write an application for your phone that can scan the codes and then send the information to the EV3 via bluetooth or wifi.
If you don't know how to write iOS apps, start here.
For scanning bar codes there seems to be good info here. It appears that bar code scanning is built into iOS 7. If you have an older version, the the zxing library sounds like a good choice.
For communicating to the EV3 over bluetooth, this has been asked before. However, I have yet to come across a good example.