-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
post-install hook of the Podfile. no implicit conversion of String into Array -enabling new arch #38833
Comments
|
i have removed this part and able to install the pods but not sure if it is correct approach or not. react_native_post_install( |
Hi @vksgautam1986. You need to leave that block in the post install, otherwise the project will not build correctly. Can you try to:
and let me know what's the output. then try again with this command:
|
I just tried with a newly created app and it works properly, without changing anything. |
Hi cipolleschi. I have followed your steps and ran this command but it is giving the same error of this.
After this i ran this command of |
Hi cipolleschi. I have created a new project for 0.72.3 and ran this command after that i copied my current project dependencies into this new fresh project package json and copied the same setting of pods file into this new project podfile and ran the command |
So... if a new projects works fine, it means that there is some dependency in your specific project that is messing up with the setup. I'll suggest you to remove all the dependencies and start adding one dep at the time to see which one is breaking it. |
Thank you able to solve it by comparing it with fresh project podfile. My final podfile
|
Hi @cipolleschi just closing this , as pods installation is working for me by removing 'react_native_post_install(installer) ' and above is my podfile having the final changes. Just letting you know about this . Thanks. |
[!] An error occurred while processing the post-install hook of the Podfile. no implicit conversion of nil into Array /Users/bsoft-imac/Documents/kaptrack/node_modules/react-native/scripts/cocoapods/privacy_manifest_utils.rb:115:in /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in ` 'The above code is not working for me, any other solution |
cd ios
solved the issue for me |
This fixed the problem for me |
@G3z Thanks. This worked for me after the upgrade from 0.74.1 to 0.74.2 |
Description
I have just tried to use New Architecture for ios. but during pod installation it is giving error .
React Native Version
0.72.3
Output of
npx react-native info
System:
OS: macOS 13.4.1
CPU: (8) arm64 Apple M1
Memory: 114.81 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 16.11.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: ~/Desktop/Swatched/Final/swatched-mobile/node_modules/.bin/yarn
npm:
version: 8.0.0
path: /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.12.1
path: /Users/company/.rvm/gems/ruby-3.0.0/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.1
- iOS 16.1
- macOS 13.0
- tvOS 16.1
- watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9862592
Xcode:
version: 14.1/14B47
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.12
path: /usr/bin/javac
Ruby:
version: 3.0.0
path: /Users/company/.rvm/rubies/ruby-3.0.0/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.3
wanted: ^0.72.3
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to reproduce
During running pod installation command , i am facing this issue..
// https://reactnative.dev/docs/new-architecture-app-intro?run-app=npm
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: