fix podspec file
add predicate and improve nsobject defines