Fix bugs for iOS Frameworks