updating podspec to use newer APIs