add cocoapod mode support