Comments (9)
In general, you should manage the version number for yourself
and maybe have a “build number"
but don’t just auto-increment that
rather use the build number supplied by the related service
in case of bitrise.io you can use $BITRISE_BUILD_NUMBER
env
or you can export it as an environment variable with envman
from snowflake.
from snowflake.
https://gist.github.com/viktorbenei/d341e74c8321473c8a67
from snowflake.
Hi there,
I would really like to help, but first I would like to know why your fastfile uses so many sh
commands. I don't really know why they are necessary and also what they do, so I am quite confused ;)
Our Fastfile looks something like this:
sigh
# use the UDID of the newly created provisioning profile
ENV["PROFILE_UDID"] = lane_context[SharedValues::SIGH_UDID]
increment_build_number
gym
commit_version_bump
push_to_git_remote
pilot
What it does is:
- Deals with Provisioning Profiles
- Increment the build version number (an app can only be submitted with one version number once)
- Commit and Push the version bump (with a message like "Deployed version XX")
- Push the builded version to the AppStore (or Testflight, dependant on the lane)
I stripped away every kind of configuration, but I would be glad to add a PR if you are uncertain, so that we can discuss this more on a code level.
Have a nice day!
from snowflake.
That's a good question! When I first was working w/ Fastlane it looked very similar to what you have except for the push_to_git_remote
as I worried about the webhook kicking off another build and end up in a never ending recursion.
I've never worked w/ Apple before so all this Cert, App Id, Provisioning, etc is new to me.
When I was working w/ Fastlane on Bitrise, and it included the same steps almost exactly what you have, I went through a large number of builds and each build would generate a new Cert, App ID, and Prov Profile - I ended up w/ a bunch of them all defined here: https://developer.apple.com/account/ios/certificate/certificateList.action. I had no idea which ones were active or in use or even if I needed them all.
When I mentioned this to the Bitrise.io CTO, he showed me how Bitrise handled it which is what I'm doing now. The advantage I observed following my current approach, if you watched the videos, is that I let XCode build the 3 artifacts and during the build step those artifacts are utilized.
Once I went that route I was able to get the apps running on the devices. Rather then beat my head against the wall, I opted to share what I had and hope someone could help clean it up.
As I mentioned in the video series on CI w/ Bitrise.io, the current implementation is just a base line to grow from, it's definitely not the end game - eventually I want Fastlane to do all the work.
If you could enhance our Fastlane implementation I'd be very grateful!
see #26
from snowflake.
Nice to know, we ran into exactly the same issue. The reason was that fastlane somehow didn't found the provisioning profiles it had created earlier. If I remember correctly the ENV
line fixed this issue, or am I wrong @dbanck?
If so I would rewrite the fastlane config to use the more verbose approach fastlane provides and add a deploy script to the package.json, so one can easily deploy it from the command line.
from snowflake.
sounds good.
About that push_to_git_remote
- are you using the Github webhook to kick of the build? What kicks it off?
from snowflake.
Well, we kick it of manually, this could introduce some kind of recursion in this case. But if the commit messages all have the same format, I think we could easily check if the name of the last commit matches and then ignore it. Or even better check if there is any valid commit since the last build was pushed.
from snowflake.
This can be done manually.
from snowflake.
Related Issues (20)
- Apple Mach-O Linker (Id) Error Linker command failed with exit code 1 HOT 2
- How to change splash screen? HOT 3
- How to do a staging/production release? HOT 1
- Is Snowflake still active? HOT 7
- Missing dependency whatwg-fetch HOT 1
- Renaming app from snowflake to dist name? HOT 3
- SyntaxError: Strict mode does not allow function declarations in a lexically nested statement. HOT 4
- BitRise Android build is failing HOT 5
- Stuck on Transforming modules HOT 1
- always popup error window when render function called
- Backend Server HOT 2
- did Anyone Migrate from React-Native-Router-Flux to React Navigation? HOT 1
- Few queries regarding the backend HOT 1
- there is no config.js file or config folder file in the same folder(src/lib). HOT 2
- Snowflake Hapi Server (https://snowflakeserver-bartonhammond.rhcloud.com) is down HOT 2
- View does not resize in Landscape mode
- Keyboard blocking the form on Register page HOT 1
- Error: Missing app.json with expo start HOT 3
- Print: Entry, ":CFBundleIdentifier", Does Not Exist HOT 2
- Question: Any interest in putting together a premium version for sale on SugarKubes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowflake.