jfrog / cocoapods-art

CocoaPods Plugin to work against Artifactory Repository
Apache License 2.0
58 stars 27 forks source link

Podfile requires that the plugin `cocoapods-art` be installed #24

Open adamfisher opened 5 years ago

adamfisher commented 5 years ago

I am using cocoapods-art with a Fastlane build but continue to see this error about not finding the plugin:

Your Podfile requires that the plugin cocoapods-art be installed. Please install it and try installation again. (FastlaneCore::Interface::FastlaneShellError)

I verified:

lursk commented 5 years ago

Are you using the bundler to run the cocoapods within your fastlane script? If so, you need to have the plugin installed in the bundler as well. Try add the cocoapods-art plugin to your gemfile and then bundle install.

adamfisher commented 5 years ago

I don't use the bundler to run Fastlane commands. Are there any clearer steps to follow to integrate this plugin with Fastlane?

Here is my Fastfile:

fastlane_version "2.64.0"

default_platform :ios

platform :ios do
  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Create Beta IPA"
  lane :beta do
    cocoapods(
      try_repo_update_on_error: true
    )
    match(type: 'enterprise')
    gym(
      workspace: "./MyProject.xcworkspace",
      scheme: "MyProjectAppCert",
      clean: true,
      configuration: "Cert",
      export_method: 'enterprise',
      export_options:{compileBitcode: false},
      include_bitcode: false,
      include_symbols: true,
      output_directory: "build/exportedIPAs",
      output_name: "MyProject-Cert"
    )
  end

  desc "Create App Store IPA"
  lane :release do
    cocoapods(
      try_repo_update_on_error: true
    )
     match(type: 'enterprise')
    # snapshot
    gym(
      scheme: "MyProjectAppProd",
      clean: true,
      configuration: "Release",
      export_method: "enterprise",
      output_name: "MyProject-Release",
      output_directory: "build/exportedIPAs"
    )
  end
end

My .Gemfile in the project:

source "https://myartifactoryurl.com/artifactory/api/gems/rubyfeed/"

gem "fastlane"
gem "cocoapods-art"
paolodellaquila commented 2 years ago

if you encounter a problem like these:

DouaeAtraoui commented 1 year ago

do u know please how to increment the number_build because i am using the lane increment_build_number but i continue to see the error : "Cannot set build number with plist path containing $(SRCROOT) Please remove $(SRCROOT) in your Xcode target build settings"

femsaorellana commented 1 year ago

bundle exec pod install