Open code-by opened 2 years ago
after clean project mentioned error has gone, build passed
Although that works for me too, it comes back randomly, so there must be some reason for it. For a large project, having to clean the build is less than ideal.
the same issue happens with "react-native-screens": "^2.0.0", "react-native": "0.67.2", iOS 15.2 , (currently upgrading , but might be useful to know)
resolved by 'rm -rf Pods' & 'pod install'
getting same issue. tried cleaning project and reinstalling pods but still not working.
"@react-navigation/native": "^6.0.8",
"react": "17.0.2",
"react-native": "0.67.3",
"react-native-safe-area-context": "^4.0.1",
"react-native-screens": "^3.12.0"
I have the same issue. Just following these step:
cd ios && pod deintegrate
rm -rf Podfile.lock
pod install
after that open in Xcode then clean & rebuild It finally work.
@anhtuank7c problem is i have to do this everytime i npm install or add new lib if not deintegrate pod it will always build failed
I
@anhtuank7c problem is i have to do this everytime i npm install or add new lib if not deintegrate pod it will always build failed
I confirm this as well
As much as I like to complain about RNN, I think this time it's not their fault ^^ I was able to reproduce this issue on a new RN project after adding just one native dependency (not RNN). See this issue https://github.com/facebook/react-native/issues/33174
I follow this comment to create a patch package to fix this, it just works. https://github.com/facebook/react-native/issues/33174#issuecomment-1057025719 https://www.npmjs.com/package/patch-package
after clean project mentioned error has gone, build passed
How did you clean the project? What do you mean by that? I'm assuming you did something like this.
Just following instructions from the link, opening up the react-native project in xcode and clicking (from the menubar) Product > Build Clean Folder worked for me.
Edit: Added link.
after clean project mentioned error has gone, build passed
How did you clean the project? What do you mean by that? I'm assuming you did something like this.
Just following instructions from the link, opening up the react-native project in xcode and clicking (from the menubar) Product > Build Clean Folder worked for me.
Edit: Added link.
Thanks, this resolved for me
this script has resolved alot of headaches for me:
"ios:clean": "rm -rf ~/Library/Caches/CocoaPods && rm -rf Pods
&& rm -rf ~/Library/Developer/Xcode/DerivedData/* && cd ios
&& xcodebuild clean && pod cache clean --all && pod deintegrate
&& pod setup && pod install --verbose && cd ..",
@oskarhertzman you're a literal G
@oskarhertzman you're a literal G
Happy to help! Glad it worked.
🐛 Bug Report
I have create app from scratch, then run it both in Android and iOS perfectly. After adding RNN latest version iOS xCode 13 Run/build failed:
/node_modules/react-native/React/CoreModules/RCTActionSheetManager.mm:98:35: No member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'
Have you read the Contributing Guidelines on issues?
yes
To Reproduce
npx react-native init awesomeapp
yarn add react-native-navigation
npx rnn-link
index.js
according the docs:Expected behavior
App should run in iOS emulator same as in Android device w/o errors
Actual Behavior
iOS xCode 13 Build failed:
No member named 'cancelButtonTintColor' in 'JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions'
(Write what happened. Add screenshots, if applicable.)
Your Environment
7.24.3-hotfix.1
0.67.2
iOS 15
Reproducible Demo
AppDelegate.m
Are you willing to resolve this issue by submitting a Pull Request?