Update podspec with dependency and add a method to set attachment directly