Closed ktjd123 closed 3 years ago
Facing same issue. after i upgraded to 0.63.1. Android working fine. iOS not able to build.
[!] Invalid Podfile
file: undefined method `[]' for nil:NilClass.
target 'AppName' do
config = use_native_modules!
==> this is the error i am getting. its pointing to line 7 of podfile. any fixes?
I'm having the same problem here. I m upgrading from version 0.59.10
!
@ktjd123 what i did to fix the problem was deleting the native dependencies from package.json
delete node_modules and install the dependencies again.
Now I'm adding native dependencies one by one.
Do you need help upgrading to a newer React Native version? Visit the Upgrade Support repository or use the upgrade helper to see the changes that need to be made to upgrade your app.
Is there a solution for this?
I fixed it by removing react-native-cli
Same here. If your package.json file includes @react-native-community/cli* they are probably the wrong versions. Remove them from your package.json and do a fresh yarn install, then you should have the versions react-native is expecting.
as @jenniferburch @ktjd123 said above it happened because of the wrong react-native-cli version. So remove that and install new and it will work.
Removing react-native-cli not working in my case.
Error : Searching for inspections failed: undefined method
map' for nil:NilClasswhile doing
'pod install'`
i too am facing this. any solution?
Any fix you guys found for this issue please let me know.
Thanks
+1
+1
+1...
+1
+1
+1
Just removing @react-native-community/cli for package.json everything works good.
I just removed the ios and android cli from my package.json and now I'm getting
[!] Invalid `Podfile` file: cannot load such file -- /Users/shawn/app/mobile/node_modules/@react-native-community/cli-platform-ios/native_modules.
我也遇到这个问题了, 花了好多时间,
我发现,我的问题 是因为 app.json 里 的expo下的name 出现了中文, 我把我原来的中文改成英文字母, 就可以了
// app.json
"expo": {
"name": "这里不能用中文, the name must be ascll [a-zA-Z0-9_-] ",
... ...
faced this issue on below mentioned app setup
React 16.13.1 & RN-0.63.4 react-native-cli - 2.0.1 Mac OS - 10.5 Xcode - 12.5.1 Cocoapods - 1.12.1 yarn - 1.22.10 node - v12.18.2
finally, issue got fixed by below steps
Thanks
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Upgraded from v0.62.2 to v0.63.1. first tried react-native upgrade and used react native upgrade helper to change what's not changed automatically.
Then did pod install this error happend.
react-native upgarde result ()
-> cjk-textinput-patch -> removed after seeing this error.
PODFILE
React Native version:
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Expected Results
install pod dependencies.
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve