Add validation to frameworks to make sure they are only names

The tests are failing and I can't figure out why (something mock related maybe?) but I believe this fixes [Cocoapods#1336](https://github.com/CocoaPods/CocoaPods/issues/1336).

In terms of logic I think I'm on the right track but I think another set of eyes might be useful.