build ios smart script