Saturday, August 13, 2022
HomeiOS Developmentios - Invalid `Podfile` file: undefined methodology `use_native_modules!' for #

ios – Invalid `Podfile` file: undefined methodology `use_native_modules!’ for #


I simply swap from a MacBook Air with the Intel Processor to a MacBook Professional with the M1 Processor, and now I’m unable to do something with Podfile or pod set up. I hold getting errors like this…

Invalid `Podfile` file: undefined methodology `use_native_modules!' for <Pod::Podfile:0x007fd5795662a0>.

Take into accout the very same Podfile labored on my Intel Chip, and it really works for my coworker on his M2. I used to be initially having points with /scripts/autolinking so I took all traces of that out of my code too.

I gave up on this, and tried to simply make a wholly contemporary react native repo, and STILL am unable to do something with pods. After creating the brand new native app, I wwas given the next message within the terminal…

Error: Failed to put in CocoaPods dependencies for iOS mission, which is required by this template.
Please strive once more manually: "cd ./KidzNMotionNative/ios && pod set up".

Take into accout, I’ve run the instructions to put in cocoapods and I’ve it.
When I attempt to take heed to that message, cd into the correct repo and run pod set up I get the next mess of an error

[!] Invalid `Podfile` file: /Customers/nicklanese/Paperwork/toBeMoved/KidzNMotionNative/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:39: syntax error, surprising <<
    template =<<~EOS
                ^
/Customers/nicklanese/Paperwork/toBeMoved/KidzNMotionNative/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:40: unknown regexp choices - ll
/Customers/nicklanese/Paperwork/toBeMoved/KidzNMotionNative/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:41: dynamic fixed task
        RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd)
                                         ^
/Customers/nicklanese/Paperwork/toBeMoved/KidzNMotionNative/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:41: `$(' shouldn't be allowed as a worldwide variable title
/Customers/nicklanese/Paperwork/toBeMoved/KidzNMotionNative/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:41: syntax error, surprising end-of-input
        RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd)

Which makes NO SENSE as a result of React Native generated the Podfile for me. So what offers?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments