React-native-navigation: [V2][iOS] build failed with implementing deprecated method error

Created on 5 Dec 2018  路  9Comments  路  Source: wix/react-native-navigation

Issue Description

[iOS build failed with iOS deployment target 9.0]

Steps to Reproduce / Code Snippets / Screenshots

screen shot 2018-12-04 at 11 57 36 pm

Environment

  • React Native Navigation version: 2.0.2576
  • React Native version: 0.56.0
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator: iPhone 7, OS 9.0, Debug
馃彋 stale

Most helpful comment

You can disable the deprecated methods errors in the build settings of ReactNativeNavigation.xcodeproj. The build setting you are looking for is Apple Clang - Warnings - Objective-C -> Overriding Deprecated Objective-C Methods

screen shot 2018-12-25 at 5 17 17 am

All 9 comments

I am having the same issue. Have you found a solution?

I am having the same issue. Have you found a solution?

I haven't.

You need to open the project file in XCode, go to the project settings and choose Legacy build.

@stevensacks I'm working in a .xcworkspace file due to react-native-maps requiring pod install. Anyway, I already had it set to Legacy build in the settings. Nothing seems to be working... Xcode is very frustrating.

You can disable the deprecated methods errors in the build settings of ReactNativeNavigation.xcodeproj. The build setting you are looking for is Apple Clang - Warnings - Objective-C -> Overriding Deprecated Objective-C Methods

screen shot 2018-12-25 at 5 17 17 am

Hey guys, thought I'd leave another comment here. I was able to solve these issues by creating a fresh RN project via _"react-native init PROJECT_NAME"_. Then installing each dependencies correctly. It seems the issue for me was mistakenly using a combination of react-native link, the manual install and installing CocoaPods. Those are to be treated as individual paths, not to be done together. Huge LOL and facepalm. Live and learn.

"dependencies": {
"numeral": "^2.0.6",
"react": "16.6.3",
"react-native": "0.57.8",
"react-native-iphone-x-helper": "^1.2.0",
"react-native-keyboard-aware-scroll-view": "^0.8.0",
"react-native-maps": "^0.22.1",
"react-native-modal": "^7.0.2",
"react-native-navigation": "^2.2.5",
"react-native-parallax-swiper": "^1.1.7",
"react-native-sortable-grid": "^2.0.0",
"react-native-splash-screen": "^3.1.1",
"react-native-vector-icons": "^6.1.0"
}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

The issue has been closed for inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edcs picture edcs  路  3Comments

nbolender picture nbolender  路  3Comments

EliSadaka picture EliSadaka  路  3Comments

birkir picture birkir  路  3Comments

zhanguangao picture zhanguangao  路  3Comments