Fixed it!
apparently there is a problem in the filename.xcodeproj file when trying to edit a project which was
built on xcode 4, in xcode 5.0.2.
so i took the previous version of this file, and replaced it in the new and edited project, and now it's
working and i can get my ipa file.