Fixed deprecated warnings and added podspec file