Friday, August 19, 2022
HomeiOS Developmentios - Invalid `Podfile` file: undefined technique `use_native_modules!' for #

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


I simply change 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 maintain getting errors like this…

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

Take into account 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 recent 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 attempt once more manually: "cd ./KidzNMotionNative/ios && pod set up".

Take into account, I’ve run the instructions to put in cocoapods and I’ve it.
When I attempt to hearken to that message, cd into the suitable 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, sudden <<
    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: `$(' is just not allowed as a world variable title
/Customers/nicklanese/Paperwork/toBeMoved/KidzNMotionNative/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:41: syntax error, sudden 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