You cannot use the built-in archive command without a profile / certificate unless you crack the SDK .
I have not tested above since iOS 6 and Xcode 4.2. I cannot imagine that much has changed between 4.2 and 4.5. After making these changes, you can create with a self-signed certificate or nothing at all.
I donβt remember if this allows you to directly use the IPA build in xcode, but if not, itβs trivial to make the build phase to run the shell script. here i did for gemrb :
#increment the version number for the build REV=`git log --pretty=format:'' | wc -l | sed 's/\ //g'` VERSION=`git describe --tags --dirty=-patched` DATE=`date -u +%Y-%m-%d\T%T\Z` /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $REV" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
obviously, it will change some of the path variables and cross out the material of the automatic version if you don't want to.
source share