Coder Social home page Coder Social logo

Extension Support about fastlane HOT 6 CLOSED

bassrock avatar bassrock commented on December 11, 2016

I finally got to getting fasten setup for my Xcode project properly. However when I have the following lane defined:

lane :beta do  
   cert
   sigh :force
   ipa({
        workspace: "DemoApp.xcworkspace",
        configuration: "Release",
        scheme: "DemoApp",
    })
  deliver :skip_deploy, :force  #skip_deploy => don't submit the app for review (works with both App Store and beta builds)
end

Sigh does not download and install the provisioning profiles for my Today View Extension. I had to manually set up the provisioning profile for it and then it would build with fastlane on my local machine.

Is this expected behavior and is it possible to have fastlane make sigh download the provisioning profiles for an app extension?

from fastlane.

Comments (6)

bassrock avatar bassrock commented on February 24, 2015

Correction to the above: It does not work after getting the provisioning profile manually.

I am getting an error with the validate step of the build process:

The following build commands failed:
INFO [2015-02-23 23:33:32.26]: [SHELL OUTPUT]: ValidateEmbeddedBinary /Users/daniel/Library/Developer/Xcode/DerivedData/Demo-hjdhmoxqwxxmxtguevgikvldevvj/Build/Products/Release-iphoneos/Demo.app/PlugIns/DemoTodayExtension.appex
from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/actions/actions_helper.rb:49:in `sh'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/actions/ipa.rb:73:in `run'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/fast_file.rb:80:in `block (2 levels) in method_missing'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/actions/actions_helper.rb:28:in `execute_action'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/fast_file.rb:79:in `block in method_missing'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/fast_file.rb:78:in `chdir'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/fast_file.rb:78:in `method_missing'
    from (eval):38:in `block (2 levels) in parse'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/runner.rb:16:in `call'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/runner.rb:16:in `block in execute'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/runner.rb:10:in `chdir'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/runner.rb:10:in `execute'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/lane_manager.rb:15:in `block in cruise_lanes'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/lane_manager.rb:14:in `each'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/lib/fastlane/lane_manager.rb:14:in `cruise_lanes'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/bin/fastlane:30:in `block (2 levels) in run'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/commander-4.3.0/lib/commander/command.rb:154:in `run'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/commander-4.3.0/lib/commander/runner.rb:421:in `run_active_command'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/commander-4.3.0/lib/commander/runner.rb:81:in `run!'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/commander-4.3.0/lib/commander/delegates.rb:15:in `run!'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/bin/fastlane:58:in `run'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/gems/fastlane-0.1.12/bin/fastlane:62:in `<top (required)>'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/bin/fastlane:23:in `load'
    from /Users/daniel/Documents/Work/DemoApp/vendor/bundle/ruby/2.2.0/bin/fastlane:23:in `<main>'

from fastlane.

bassrock avatar bassrock commented on February 24, 2015

Ok weird. something was resetting the CodeSign Identity of the extension and now it has stopped and builds.

Also got the provision profile for the extension installed by:

sh "bundle exec sigh -a com.demo.app.TodayExtension -u [email protected]"

Still a way without sh to sigh would be cool! Great job on the tools!

from fastlane.

KrauseFx avatar KrauseFx commented on February 24, 2015 1

Why do you need to run sh for the last posted code snippet?

If it's just because you want a different app identifier, use:

ENV["SIGH_APP_IDENTIFIER"] = "com.demo.app.TodayExtension"
sigh
ENV["SIGH_APP_IDENTIFIER"] = "your real identifier"

Does that help?

from fastlane.

bassrock avatar bassrock commented on February 25, 2015

Ah did not realize I could do it like that. Thanks!

On Feb 24, 2015, at 2:17 AM, Felix Krause [email protected] wrote:

Why do you need to run sh for the last posted code snippet?

If it's just because you want a different app identifier, use:

ENV["SIGH_APP_IDENTIFIER"] = "com.demo.app.TodayExtension"
sigh
ENV["SIGH_APP_IDENTIFIER"] = "your real identifier"
Does that help?


Reply to this email directly or view it on GitHub.

from fastlane.

pronebird avatar pronebird commented on September 9, 2016

So how do you code sign both app and extension at the same time?

from fastlane.

TKBurner avatar TKBurner commented on September 12, 2016 1

Hi @pronebird You are going to need to run sigh twice, once for each target.

from fastlane.

Related Issues (20)

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.