How to get .ipa of cocos2d-x project?

I have created a game. Compiled with XCode 5.1 and it opened the game on iOS simulator. Now I need to send the .ipa file to my friend so that he could test it on his iPhone. Where can I find the .ipa file? Can my friend use that .ipa file to install on his device?

Xcode -> Product -> Archive