Open adamfisher opened 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
.
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"
if you encounter a problem like these:
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"
bundle exec pod install
I am using cocoapods-art with a Fastlane build but continue to see this error about not finding the plugin:
I verified:
pod plugins
shows:Artifactory repo is configured from the
pod repo
command.