Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dude1234

macrumors newbie
Original poster
Feb 17, 2013
14
0
hey! i couldn`t find any docs that refer to this topic - how does one updates his app? can i somehow replace the existing sql database and a push notification will notify the user? should i upload a new version and delete the old one?

can i replace an existing file and let the appstore send notifications? how does it work?

tnx.
 
Have you read the iTunes Connect Developer Guide, especially the section on "Updating Your App to a New Version" in the "Editing and Updating App Information" chapter?

yeah i did but i thought there is a more sophisticated way to update your app rather then uploading a new one.. because the user has to download the whole app every little update?
 
hey! i couldn`t find any docs that refer to this topic - how does one updates his app? can i somehow replace the existing sql database and a push notification will notify the user? should i upload a new version and delete the old one?

can i replace an existing file and let the appstore send notifications? how does it work?

tnx.

I think it depends on what you mean by "update". Do you want to update code or content?
Updating code requires a new app. Updating content probably does not. Depends on what
you're doing and where it's located.
 
If you're updating content it's on you to have a way of updating it without an update to the entire app.
 
If you're updating content it's on you to have a way of updating it without an update to the entire app.

if i design my app as a MVC and have each file work independitly, can i replace files like the sqlite file? because each file shouldnt care about the other - they just do their job..


tnx for replying
 
I wouldn't phrase it that way. You can use MVC as a design pattern within your app, yes.


What do you mean by "file", in this case?

by file i ment class.m and class.h lets say this class.h\m get a value from another class\object at run time and print it as it is, and the next version of my app i would like my class.m\h print out a letter (a,b,c etc..) next to the number it gets, so it actually acts independetly because the class that passes the number does not care about whats happening in my class (m\h).
 
by file i ment class.m and class.h lets say this class.h\m get a value from another class\object at run time and print it as it is, and the next version of my app i would like my class.m\h print out a letter (a,b,c etc..) next to the number it gets, so it actually acts independetly because the class that passes the number does not care about whats happening in my class (m\h).

If you update a class in your app, you will need to submit a new version of your app to iTunes Connect.
 
If you update a class in your app, you will need to submit a new version of your app to iTunes Connect.

thank you kind sir, you have answered my question - thats the answer i was expacting :D

now let us fill our stomach with bread and wine!
 
Your .m and .h files are in no way sent to iTunes Connect ever. The code within those files is compiled into an executable and that's sent to iTunes Connect.
 
by file i ment class.m and class.h lets say this class.h\m get a value from another class\object at run time and print it as it is, and the next version of my app i would like my class.m\h print out a letter (a,b,c etc..) next to the number it gets, so it actually acts independetly because the class that passes the number does not care about whats happening in my class (m\h).

The entire app bundle is uploaded as one object to the app store.

If you change ANYTHING inside the app, you must upload a new version. Period.

The only way you could change content without uploading a new version of your app would be to have a server you create that delivers content to your app. At startup, you could query your server for the most current version number for your content, and download new content if it has changed since launch. You could use an approach like this to update a read-only SQL database, graphics and sounds, and things like that. You could not, however, update code. Even if you found a way to do it, Apple expressly forbids you from downloading code to your app.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.