Add ARM64 to build lipo. ARM64 uses iOS 7. i386, arm7, arm7s are compatible with iOS 5 and above.

Move the script into the project directory so that the relative build product paths are respected.
Ignore new build folders
ARM64 is a valid architecture.
Use int or long explicitally because NSInteger is ambiguous depending on the architecture. In 64 bit, NSInteger is a long long, in 32bit an int. We can safely assume that the number of touch events in a minute, the quantity involved in transactions, and the number of views  will always be less than INT_MAX 2147483647.