GithubHelp home page GithubHelp logo

antondomashnev / fastlane-plugin-remove-provisioning-profile Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 34 KB

Remove provisioning profile from your local machine

License: MIT License

Ruby 100.00%
fastlane provisioning-profiles

fastlane-plugin-remove-provisioning-profile's Introduction

remove_provisioning_profile plugin

fastlane Plugin Badge Build Status codebeat badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-remove_provisioning_profile, add it to your project by running:

fastlane add_plugin remove_provisioning_profile

About remove_provisioning_profile

The initial use case for the plugin has been discussed in fastlane issue. When match or developer adds new provision profile Xcode still keeps the old one even if the developer doesn't need it anymore. In that case this plugin could help by removing these old or unused provisioning profiles.

Available options

  • :app_identifier - the app identifier
  • :type - provisioning profile type, supported values ["development", "adhoc", "appstore"]

Example

Example to run the action

remove_provisioning_profile(app_identifier: "com.antondomashnev.fastlane-plugin-remove-provisioning-profile", type: "development")

Example lane from our team's fastfile. The lane removes the old provisioning profiles of all types and then runs match to create and load new

desc "Recreate the provisioning profiles so you can deploy to your device, release on fabric and push to app store"
  lane :renew_certificates do
    types = ["development", "adhoc", "appstore"]
    app_identifier = "com.antondomashnev.fastlane-plugin-remove-provisioning-profile"
    types.each do |type|
      remove_provisioning_profile(app_identifier: app_identifier, type: type)
      match(app_identifier: app_identifier, type: type, force: true)      
    end
end

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting doc in the main fastlane repo.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate building and releasing your iOS and Android apps. To learn more, check out fastlane.tools.

fastlane-plugin-remove-provisioning-profile's People

Contributors

antondomashnev avatar ricardopereira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fastlane-plugin-remove-provisioning-profile's Issues

unexpected token app_identifier

remove_provisioning_profile(app_identifier: "com.antondomashnev.fastlane-plugin-remove-provisioning-profile", type: "development")

results in:

syntax error near unexpected token `app_identifier:'

Script fails if there is not provisioning profile folder yet

The possible solution is to make a folder in that case:
mkdir -p /Users/user_name/Library/MobileDevice/Provisioning\ Profiles

The error message:

/Users/user_name/.rvm/gems/ruby-2.3.1/gems/fastlane-plugin-remove_provisioning_profile-1.0.2/lib/fastlane/plugin/remove_provisioning_profile/actions/remove_provisioning_profile_action.rb:13:in `open': [!] No such file or directory @ dir_initialize - /Users/wladek/Library/MobileDevice/Provisioning Profiles (Errno::ENOENT)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.