GithubHelp home page GithubHelp logo

fastlane-plugin-update_project_codesigning's Introduction

update_project_codesigning plugin

fastlane Plugin Badge

About

Updates the Xcode 8 Automatic Codesigning Flag

Add Plugin

fastlane add_plugin update_project_codesigning

Example

Set Codesigning to manual on all targets

  update_project_codesigning(
    path: "demo-project/demo/demo.xcodeproj",
    use_automatic_signing: false
  )

Set Codesinging to automatic

  update_project_codesigning(
    path: "demo-project/demo/demo.xcodeproj",
    use_automatic_signing: true
  )

Only for specific targets

  update_project_codesigning(
    path: "demo-project/demo/demo.xcodeproj",
    use_automatic_signing: false,
    targets: ["demo"]
  )

Also set team-id

  update_project_codesigning(
    path: "demo-project/demo/demo.xcodeproj",
    use_automatic_signing: true,
    team_id: "XXXXX"
  )

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.

fastlane-plugin-update_project_codesigning's People

Contributors

hjanuschka avatar tdorsey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fastlane-plugin-update_project_codesigning's Issues

handling with many targets

I have a project with many targets and one code base . When I update one target with code sign, all the targets stays with the same code sign . Is there a way to manage this , something like :
update_project_codesigning(
path: "demo-project/demo/demo.xcodeproj",
target:"MyTarget"
use_automatic_signing: true)
?

Could not find action, lane or variable update_project_codesigning

Hi,

The Gym didn't work. The log says "Code signing is required for product type 'Application' in SDK 'iOS 10.0'". I read that page ( fastlane/fastlane#6533 ). I added this plugin for Fastlane but I got an error message when I wanted to use it. What can i do about this ? Thanks.

The error message:

X Could not find action, lane or variable update_project_codesigning

And..

$ fastlane -v
fastlane installation at path:
/usr/local/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/bin/fastlane
-----------------------------
fastlane 2.20.0

plugin cannot accept path in parent directory

Fastfile snippet

lane :codesign do
 update_project_codesigning(use_automatic_signing: false, path:   "../platforms/ios/Hydrogen.xcodeproj")

Fastlane codesign --verbose

Error setting value '../platforms/ios/Hydrogen.xcodeproj' for option 'path'
ERROR [2016-10-13 19:46:27.52]: You passed invalid parameters to 'update_project_codesigning'.
ERROR [2016-10-13 19:46:27.52]: Check out the error below and available options by running fastlane action update_project_codesigning
WARN [2016-10-13 19:46:27.52]: Variable Dump:
INFO [2016-10-13 19:46:27.52]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios codesign"}
ERROR [2016-10-13 19:46:27.52]: Path is invalid
ERROR [2016-10-13 19:46:27.53]: fastlane finished with errors

Blind guess, this is maybe a ruby limitation per http://stackoverflow.com/questions/16833643/load-file-from-parent-directory

Problems with adding the plugin

Hi,

I know that this might be a local environment problem and I am no ruby expert (sorry)- but here it goes anyways. I am using the latest fastlane(2.17.1).

I am using rvm to supply me the different ruby versions. Currently I am using 2.2.2:

$ rvm list

rvm rubies

  • ruby-2.1.1 [ missing bin/ruby ]
    ruby-2.1.2 [ missing bin/ruby ]
    ruby-2.1.8 [ missing bin/ruby ]
    ruby-2.2.0 [ x86_64 ]
    => ruby-2.2.2 [ x86_64 ]

When adding the plugin, it fails:

$ fastlane add_plugin update_project_codesigning
+--------------------------------------------+---------+----------------------------+
| Used plugins |
+--------------------------------------------+---------+----------------------------+
| Plugin | Version | Action |
+--------------------------------------------+---------+----------------------------+
| fastlane-plugin-cordova | 0.1.4 | cordova |
| fastlane-plugin-update_project_codesigning | 0.1.9 | update_project_codesigning |
+--------------------------------------------+---------+----------------------------+

[12:08:08]: Make sure to commit your Gemfile, Gemfile.lock and Pluginfile to version control
Installing plugin dependencies...
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /Users/slarsen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-1.8.6/ext/json/ext/generator

/Users/slarsen/.fastlane/bin/bundle/bin/ruby -r ./siteconf20170221-16601-1uibdlp.rb extconf.rb
creating Makefile

current directory: /Users/slarsen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-1.8.6/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /Users/slarsen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/json-1.8.6/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /Users/slarsen/.fastlane/bin/bundle/include/ruby-2.2.0/ruby.h:33:
In file included from /Users/slarsen/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/ruby.h:29:
/Users/slarsen/.fastlane/bin/bundle/include/ruby-2.2.0/ruby/defines.h:26:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
make: *** [generator.o] Error 1

make failed, exit code 2

Any ideas?

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.