Code Monkey home page Code Monkey logo

Comments (7)

KrauseFx avatar KrauseFx commented on April 24, 2024

I agree with you, there should be a better example. Have you seen this setup? https://github.com/krausefx/fastlane-example

  1. You first have to use sigh to get the provisioning profile. Then run ipa to build and sign the app
  2. deliver will not do anything building/signing related automatically. Instead check out the available environment variables https://github.com/krausefx/fastlane#lane-context. You can use the 2 sigh values, in the ipa or deliver action
  3. If you add cert to the top of the Fastfile, it will make sure to use the correct code signing identity in sigh automatically
  4. Not sure what you mean?

If you have any ideas for improvements regarding documentation structure or missing information, please let me know or even submit a pull request updating it πŸ‘

I hope I could help. I'll be working on a more advanced example setup.

from fastlane.

PaulTaykalo avatar PaulTaykalo commented on April 24, 2024

Yep, I saw https://github.com/krausefx/fastlane-example :) And some other examples from other guys :)

  1. Ok. The reason I was asking - is that in example - ipa build is in before_all section ) So I wasn't sure, if I am missing something
  2. I was tried to do this in Deliverfile, but I failed (Well, I wasn't able get data from the context) I added this step into Fastlane file. I edned up with this lane:
lane :deploy do
 # Create all the screenshots!
 #snapshot

 # Make sure we have correct cert (Based on the values from Appfile)
  cert

 # Get correct provision profile (For ApppStore submission by default)
  sigh

 # Create ipa. identity and provision profile specified.
 # Provision profile was get from the last step via Actions.lane_context
  ipa({
    workspace: "MyApp.xcworkspace",
    configuration: "Release",
    scheme: "MyApp",
    identity: "iPhone Distribution: Ivan Ivanov (2323222322)",
    embed: Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH],
    verbose: "true"
  })

  # Deliver to the AppStore
  deliver :skip_deploy, :force
end
  1. I thought that values from Context such like SIGH_PROFILE_PATH and others will be passed to ipa action :) Now I know that they aren't :)

Thanks for explanation.

from fastlane.

KrauseFx avatar KrauseFx commented on April 24, 2024

Sorry for the delayed reply. I guess it would make sense to pass the profile path to the ipa action. The main problem here is, that only setting the profile path, does not make code signing work. You still have to set the code signing settings in your project.

Are there any more questions? Not sure if I missed something now πŸ˜‰

from fastlane.

PaulTaykalo avatar PaulTaykalo commented on April 24, 2024

Well, I thought that if put Singing Identitiy via

identity: "iPhone Distribution: Ivan Ivanov (2323222322)",

and Profile via

    embed: Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH],

It should work. Well, It works that way. So thing is that I don't want to set code signing settings in the xcode project (At least, I want to have the way that it will use as much data from Fastlane configs)

from fastlane.

KrauseFx avatar KrauseFx commented on April 24, 2024

@dtrenz @joshdholtz What do you think? I guess it would make sense to automatically use the provisioning profile created/downloaded with sigh in both xcodebuild and ipa.

Is there a reason against it?

from fastlane.

dtrenz avatar dtrenz commented on April 24, 2024

WRT xcodebuild - You cannot use an uninstalled profile, so it would have to be installed on the build machine. sigh could do this if we implement this: fastlane-old/sigh#58

from fastlane.

KrauseFx avatar KrauseFx commented on April 24, 2024

You've probably also seen https://github.com/KrauseFx/fastlane/blob/master/docs/CodeSigning.md?
I'll close this issue for now.

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.