fix cocoapods incompatible with swift errors