简体   繁体   English

找不到超类'-init'的指定初始化方法的方法重写

[英]Method override for the designated initializer of the superclass '-init' not found

I've encountered following address of Braintree in my XCode 7. Before upgrading to XCode 7, everything is working smooth. 我在XCode 7中遇到了Braintree的以下地址。在升级到XCode 7之前,一切工作正常。 Now got that problem. 现在遇到了问题。 Please let me know how to solve that issue. 请让我知道如何解决该问题。

/.../Pods/Braintree/Braintree/API/Client/BTAPIResponseParser.m:9:17: Method override for the designated initializer of the superclass '-init' not found /.../Pods/Braintree/Braintree/API/Client/BTAPIResponseParser.m:9:17:未找到超类'-init'的指定初始化方法的方法覆盖

在此处输入图片说明

What version of Braintree are you using? 您正在使用哪个版本的Braintree? It may be that you need to update to 3.9.3, which includes xCode7 support. 可能您需要更新到3.9.3,其中包括xCode7支持。 ( https://github.com/braintree/braintree_ios/blob/master/CHANGELOG.md ) https://github.com/braintree/braintree_ios/blob/master/CHANGELOG.md

You probably already know this, but just change the version number in your podfile, and then run "pod install" in the terminal. 您可能已经知道这一点,但是只需更改podfile中的版本号,然后在终端中运行“ pod install”即可。

I was facing the same issue. 我面临着同样的问题。 After hours of struggle I got the solution: 经过数小时的奋斗,我得到了解决方案:

Update the Braintree pod to 3.9.3 version 将Braintree Pod更新到3.9.3版本

pod 'Braintree' , '~> 3.9.3'

After that in Link Binaries with Libraries Delete the libPayPalMobile.a file. 之后,在“ Link Binaries with Libraries删除libPayPalMobile.a文件。

This Solution works for me. 该解决方案对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Objective-C警告方法覆盖未找到超类'-init'的指定初始值设定项 - Objective-C warning Method override for the designated initializer of the superclass '-init' not found 将超类 init 方法链接到指定的初始化程序 - Link superclass init method to designated initializer 警告:指定初始值设定项的方法覆盖 - Warning: Method override for designated initializer 初始化程序不会覆盖其超类Swift 2.0中的指定初始化程序 - Initializer does not override a designated initializer from its superclass, Swift 2.0 初始化程序不会覆盖其父类中的指定初始化程序 - Initializer does not override a designated initializer from its superclass 如何使用NS_DESIGNATED_INITIALIZER并覆盖init? - How to use NS_DESIGNATED_INITIALIZER and override init? 必须调用超类'UITableViewCell'的指定初始值设定项 - Must call a designated initializer of the superclass 'UITableViewCell' 必须调用超类“UICollectionView”的指定初始值设定项 - Must call a designated initializer of the superclass 'UICollectionView' 必须调用超类'UITableViewHeaderFooterView'的指定初始值设定项 - Must call a designated initializer of the superclass 'UITableViewHeaderFooterView' 是否可以使用便捷初始化程序覆盖指定的初始化程序? - Is it possible to override a designated initializer with a convenience initializer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM