question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid `RNReanimated.podspec` file: no implicit conversion of nil into Array. IOS when updating from reanimated 2.8.0 to 2.12.0

See original GitHub issue

Description

When update reanimated from 2.8.0 to 2.12.0 got error when installing pods, also update to reanimated 2.9.0 gives the same error:

`npx pod-install`
Scanning for pods...
1.11.3
> pod install

[!] Invalid `Podfile` file: 
[!] Invalid `RNReanimated.podspec` file: no implicit conversion of nil into Array.

 #  from /Users/admin/Projects/test_project/node_modules/react-native-reanimated/RNReanimated.podspec:6
 #  -------------------------------------------
 #  config = find_config()
 >  assert_no_multiple_instances(config)
 #  assert_no_reanimated2_with_new_architecture(reanimated_package_json)
 #  -------------------------------------------
.

 #  from /Users/admin/Projects/test_project/ios/Podfile:8
 #  -------------------------------------------
 #  target 'MobileWebWallet' do
 >    config = use_native_modules!
 #  
 #  -------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
> pod install --repo-update

[!] Invalid `Podfile` file: 
[!] Invalid `RNReanimated.podspec` file: no implicit conversion of nil into Array.

 #  from /Users/admin/Projects/test_project/node_modules/react-native-reanimated/RNReanimated.podspec:6
 #  -------------------------------------------
 #  config = find_config()
 >  assert_no_multiple_instances(config)
 #  assert_no_reanimated2_with_new_architecture(reanimated_package_json)
 #  -------------------------------------------
.

 #  from /Users/admin/Projects/test_projectt/ios/Podfile:8
 #  -------------------------------------------
 #  target 'MobileWebWallet' do
 >    config = use_native_modules!
 #  
 #  -------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file: 
[!] Invalid `RNReanimated.podspec` file: no implicit conversion of nil into Array.

 #  from /Users/admin/Projects/test_project/node_modules/react-native-reanimated/RNReanimated.podspec:6
 #  -------------------------------------------
 #  config = find_config()
 >  assert_no_multiple_instances(config)
 #  assert_no_reanimated2_with_new_architecture(reanimated_package_json)
 #  -------------------------------------------
.

 #  from /Users/admin/Projects/test_project/ios/Podfile:8
 #  -------------------------------------------
 #  target 'MobileWebWallet' do
 >    config = use_native_modules!
 #  
 #  -------------------------------------------

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Steps to reproduce

  1. Got “react-native-reanimated”: “^2.8.0”,
  2. Update “react-native-reanimated”: “^2.12.0”,

Snack or a link to a repository

no link

Reanimated version

2.8.0

React Native version

0.69.4

Platforms

iOS

JavaScript runtime

JSC

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
munsifhayatcommented, Nov 14, 2022

It took me hours but in my case, the issue was having space in the project name. i.e ABC Project Changing that to ABCProject worked for me. I know it’s a bit weird, but this worked for me twice.

2reactions
SamithaMaddekandacommented, Dec 20, 2022

Invalid Podfile file: Invalid RNReanimated.podspec file: different prefix: “” while trying to do pod install

reanimated_package_json = JSON.parse(File.read(File.join(dir, “package.json”)))

config = find_config()

assert_no_multiple_instances(config)

Currently using react-native-reanimated “^2.13.0” (latest)

Did anybody get this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

IOS: Invalid `Podfile` file: no implicit conversion of nil into String
Any idea what mismatch do I have going on here? I'm not sure I understand the hierarchy of the relationships between node_modules/package.json ...
Read more >
react-native-reanimated:buildcmakedebug - You.com | The search ...
React Native Reanimated error: Execution failed for task ... When i install react-native-reanimated in my project after try to run my app it's...
Read more >
react-native-reanimated - Bountysource
Invalid `RNReanimated.podspec` file: no implicit conversion of nil into Array. IOS when updating from reanimated 2.8.0 to 2.12.0 $ 0. Created 1 month...
Read more >
Trying to update custom app via API fails with 'The task failed ...
Here are the steps I tried: Uploaded a file using POST ... 'The task failed because of an error: no implicit conversion of...
Read more >
no implicit conversion of nil into String. ive searched - YouTube
iOS : flutter error Invalid `Podfile` file : no implicit conversion of nil into String. ive searched through discussions but I cant seem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found