我在运行 Big Sur 和 M1 芯片的 Macbook Pro 上安装了 gem。我已按照给出的说明进行操作,将这两行添加到我的 Podfile 顶部
plugin 'cocoapods-user-defined-build-types'
enable_user_defined_build_types!
Run Code Online (Sandbox Code Playgroud)
然后我正在运行命令
sudo gem install 'cocoapods-user-defined-build-types'
Run Code Online (Sandbox Code Playgroud)
gem 正在安装,见下文 -
Successfully installed cocoapods-user-defined-build-types-0.0.7
Parsing documentation for cocoapods-user-defined-build-types-0.0.7
Done installing documentation for cocoapods-user-defined-build-types after 0 seconds
1 gem installed
Run Code Online (Sandbox Code Playgroud)
现在,一旦我运行 pod install,我就会收到此错误 -
[!] Invalid Podfile file: undefined method `enable_user_defined_build_types!' for #<Pod::Podfile:0x0000000145251098 @defined_in_file=#<Pathname
Run Code Online (Sandbox Code Playgroud)
知道这里到底有什么问题吗?
cocoapods ×1