Tag Archives: iOS

How to increment build number on every “Build” you perform in xCode Project

These are 5 steps that will allow you fully automate process of incrementing a build number in xCode project:

  1. Open your xCode project and go to Target Settings -> Build Settings -> Switch to show ALL settings
  2. Scroll down to Versioning tab and find option called Curent Project Version. Double click on it's value and set it to be the number of build you want increment to start from.
    Set Curent Project Version in xCode
  3. Now switch to Build Phases tab
  4. Click on + icon and select "New run script phase"
    Build Phases
  5. Click on newly created run script and copy next code snipped:

     

    "${DEVELOPER_BIN_DIR}/agvtool" next-version -all

    Auto increment build bumber xCode script

You all set! Now press command + B to build your application and see your Build Number automatically increments.
So what happens, is that on every build you perform xCode will execute terminal command that will instruct agvtool to increment your build number.

Happy coding!

423 total views, 1 views today

Hello, mobile dev!

Welcome to a new “Mobile Dev” category! It’s going to be a hub of development work that I’ve been doing lately on iOS, WatchOS and tvOS platforms.

First of all: whats my angle? I’ve been doing web-development for about 8 years now. Thru all that time I’ve been telling myself not to ignore trends and to stay up-to-date developer: learn new programming languages and platforms. Couple of times I’ve tried (more below), but I never got a chance to deep-dive in it they way I always wanted. Time have come. Time for a changes.

Let me tell you how it’s all started. Back in the 2011 I bought my first iPhone 4 – and I must say I felt in love with it. Although, I was never a macOS user, my interest in iOS development started right about that time. Since I didn’t own any Mac computer I investigated my options and found tool called Adobe Flash Builder 4.5 and programming language Action Script. This wasn’t native development, but I decided to try.

My first app was targeting both iOS and Android platforms and was essentially an Hours Tracking tool that was talking to a web-service on one of my company servers: managing login/logout, fetching and saving data in the server MSSQL database. In that time I thought it looked cool (thanks for design from my friend and co-worker Hugo Tavares) and had a good amount of functionality, but as of it wasn’t app written in Objective-C it was a little slow and glitchy. I actually tried to run it couple of weeks ago in present 2016 on an Android phone and I was able to successfully login, although had some issues with saving data back to the server due to DB changes I wasn’t aware of. Here are couple of screenshots of an app:

hours_tracking_1 hours_tracking_2

I also had a shot of developing for Windows Phone 7 at that time and I even documented it in this very blog: First try programming for Windows Phone 7. In that blog post I was hoping that this app is not going to be my last app for Windows Phone, which is sadly was:

After that short endeavor my research and mobile dev learning process stopped. I think it was multiply reasons: got really busy with web-development at work, didn’t had mac computer or windows phone…excuses, excuses…I can make up many.

Gladly, here I’m again. Now in 2016 starting this new blog category, hoping to write more and develop even more. Right now, my main target is Apple products, in specific: Apple Watch, Apple TV, iPhone and iPad.

This time I didn’t come for this journey unprepared. Got all the equipment I need: got all the devices for testing, including access to new Apple TV box, got mac for development and even got theoretical and practical base. Speaking of which, I bought couple (3 to be exact) of online courses on Udemy (iOS, watchOS and tvOS) and been doing a lot of learning and trying for the past month or so.

More to it, I’m actually on the way to publish couple of apps to an App Store soon. Will they be approved or not, I will make sure that I take my time to write a couple of blog posts here to describe them and the process of development.

Stay tuned!

1,089 total views, 1 views today