add support of weak_frameworks

To support the pods which has weak_frameworks, like Facebook-iOS-SDK.
https://github.com/CocoaPods/Specs/blob/master/Facebook-iOS-SDK/3.5.1/Facebook-iOS-SDK.podspec