react-native: RCTUITextView.m implementing unavailable method
Environment
OS: macOS High Sierra 10.13.4 Xcode: Xcode 9.3 Build version 9E145
Packages: (wanted => installed) react: 16.3.0-alpha.0 => 16.3.0 react-native: 0.55.0 => 0.55.0
Steps to Reproduce In xcode when I try to build I get the following error: ‘RCTUITextView.m implementing unavailable method’ and it refers to this function in swift
(void)setText:(NSString *)text
{
[super setText:text];
[self textDidChange];
}
path for file project/node_modules/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.m
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 11
- Comments: 31
i had the same problem. @Anccerson is correct. set ‘Overriding Deprecated Objective-C Methods’ to ‘no’ in the RCTText proj
This issue occurs after I update to the recommended settings, and I fix it by reverting all warning options of the RCTText project build settings. Option “Overriding Deprecated Objective-C Methods” may be the key but I’m not sure.
If it doesn’t work (because of caching)
Thanks for posting this! It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?
If you believe your issue contains all the relevant information, let us know in order to have a maintainer remove the No Template label. Thank you for your contributions.
How to Contribute • What to Expect from Maintainers
A bigger screenshot to the answer from @timomeara and @Anccerson
remove xcode 9.3 and install xcode 9.2
Is everyone aware that utilizing the swift 4.0.3 toolchain means not being able to release to the app store?
See this article for how to install old versions of Swift in XCode: https://m.pardel.net/using-old-versions-of-swift-in-xcode-4dd46644a257
This worked for me with version 4.0.3
@Anccerson @timomeara @alex-nishikawa on Xcode 9.4.1, there is no more section which says
Overriding Deprecated Objective-C Methods
.Does anyone know where to set the warnings?
[UPDATE] I set
Strip Debug Symbols During Copy
toNo
and it seem working.comment above by @jeremyblalock about reinstalling node_modules is very useful–try this first before doing a bunch of downgrading/reverting to old stuff
This issue was marked as lacking information required by the issue template. There has been no activity on this issue for a while, so I will go ahead and close it.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.
If you are the author of this issue and you believe this issue was closed in error (i.e. you have edited your issue to ensure it meets the template requirements), please let us know.
Weird, had the same issue and reverting to the 4.0.3 toolchain didn’t do it for me. Weirdly enough, mine is also working now with the default toolchain. Something else to note was I didn’t update to the recommended settings for the RCTText xcode project since it wouldn’t work otherwise.
This problem has been solved. Im not sure how or why, but as of today my build succeeds using the default xcode toolchain.
Swift 4.0.3 is unfortunately not doing the trick for me
@InderKumarRathore same here:(
Today is my first day of using RN, but after updating the project settings of all the xcode projects in the RN project I get the same error. Using Xcode 9.3