简体   繁体   中英

Fastlane doesn't see cocoapods action

I'm trying to add pods installation in fastlane scripts.

In my Fastfile :

desc "Install cocoapods"
lane :install_pods do
  cocoapods(
    use_bundle_exec: false
)
end

When I'm running $ fastlane install_pods

I'm getting this error message:

Could not find action, lane or variable 'cocoapods'. Check out the documentation for more details: https://docs.fastlane.tools/actions

If I'm running $ fastlane run cocoapods , as described in doc from link above, I'm getting the same issue.

CocoaPods installed by gem, so when I call manually pod install Pods installing correctly.

Please help. Thank you!

In my Fastfile I had lane like this for pad install

desc "Install cocoapods"
lane :install_pods do
  cocoapods(
      clean: true,
      use_bundle_exec: false
)
end

and running this

$ fastlane install_pods

command in terminal is working fine for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM