Core data changes, now update is crashing - ios

I did a grave mistake, not migrating the coredata model properly (I'm a newbe, sorry). But now my update will crash when doing a specific operation. I need to fix it quickly because it is already out in the app store. My data model is very simple and all I need is deleting old model and uploading new one (like, deleting the app and reinstall it). how do I do it?
I know it is a stupid question, I can probably find the answer myself and learn how to do it, and I would have done that unless my bugged app had not ben already out there. Thanks in advance.

I followed the instructions here:
http://iphonedevelopment.blogspot.com/2009/09/core-data-migration-problems.html
Much better than Apple's documentation... (found it in another thread in this site).
And it worked right away!

Related

Settings in iPhone errors

So silly question here but if someone would humor me and lend any advice I would appreciate it SO much. I’ve had some issues since I’ve created my apple account, but one thing I keep noticing specifically that confuses me (my Apple ID once said it can not be changed, now it allows me the option to change my Apple ID and phone/email everything)
I wouldn’t be so concerned with this, but I’ve had reasons for safety/security concerns and then I noticed this. I see many “null” type messages in my data when I view it directly from my device as well. I’m not tech savvy at all so this is all beyond me. Forgive me please if I’m not posting this correctly. I receive error messages from apple when trying to download my data even. I’ve updated and reset my phone before but it doesn’t help. I want to just know this is user error on my end but I’m not finding information to confirm that anywhere I try to look. Thank you so much for anyone who might be able to point me in the right direction.

How to initialize a CKSubscription in iOS 10.3

I am building an app that needs to subscribe to record changes in the public database of iCloud. Now, after watching the apple video's and reading their documentation, I decided to get to work. However, I immediately got stuck here:
All initialization methods on a CKSubScription are deprecated. This can be seen here, but meanwhile apple still seems to use the very same methods in their documentation here.
This left me surprised. Looking around on the web and SO, there doesn't seem too be much information or any tutorials available (at least, none with up to date info on initializing subscriptions), probably because this technology is relatively new and these changes are recent. I have very superficial experience with CloudKit, so I'd rather ask for a decent way to do this than to improvise something myself. My question is:
How to initialize a CKSubscription?
Obviously, if the entire idea of subscriptions is outdated I am open to any answer that will result in my app receiving pushes when records of specific types appear in my public database.
Seems like CKSubscription is really more or less deprecated.
According to http://iosdevetips.blogspot.de/2016/06/deprecated-apis-in-ios-10.html you should use CKRecordZoneSubscription and CKQuerySubscription now.
Update:
Like Trevis pointed out, the docs are not really helpful here, but at least Xcode shows a somewhat helpful Warning:
If you are looking for a new class to substitute Apple's own documentation, use CKQuerySubscription in place of CKSubscription. They have almost identical initializers.

implementing Facebook login onto Xcode

I'm really new to programming started the end of December.
I'm have a problem trying to implementing Facebook login onto Xcode. I've tried using the Facebook method but i came across a problem because was written 'object C', i came across a youtube turoiral but turns out its old, i came across another tutorial that lend me down a path using 'Cocoapods'.ive looked through a number of questions on here and took what i understand and still to no avail, so far the only thing I've managed to correct every time is download the relevant SDKs and put the right info onto the info.plist.
can someone please point me in the right direction as to how write the code from the App delegates point because thats where i seem to just crash n burn.
your help would be much appreciated.
free strength and conditioning advice is the only thing i have to offer in return at this moment in time because I'm new to using programming.

Caching likes a follow state iOS swift

I'm building a small social network. I quite far already. But now I need to implement a caching system.
In my app I can like things and follow other peoples. So what I want:
When I like a recipe it automatically counts up the number of likes. In the whole app without to reload a page
When I follow someone the it aitmomatically counts up the number of followers. In the whole app aswell without reloading anything.
Does anybody have an idea how to do this?
I'm working with swift.
Thank you :D
If you need an in-memory cache try the following library:
http://realm.io
If you need some kind of persistent database here are some options:
YapDatabase (key-value SQLite wrapper)
Realm.io (it fits for such purposes too)
Core Data (seems that it is too complicated solution for your issue)
This might help to you in caching, which code has written in swift. Code is here!

100+ Targets for one Xcode Project

I am wondering if anyone has experience with having 100+ targets in a single xcode project. I have a case right now where we are building many apps that use the same code base. There is some debate internally that if the amount of apps gets to an unmanageable level aka (Maybe a couple of 1000 apps) we are going to have issues.
So my Question: Does anyone have experience with making a xcode project that has a ton of apps/targets (100+) in one project? Is there any issues with this? Is it easier then having a single project for each one and just sharing code with symbolic links?
I have built a project and made about 80 targets. Besides xcode crashing a couple of times while I was creating them (I think this was because I was using hot-keys and going really fast) it seemed like it was fine. I did not see any major performance hits, but since this was not a full project I am skeptical that this was tested fully.
Thanks for any insight.
So I found some information hidden in a post of a site called openradar. I think it will answer my question. I would love to hear from some real world experience through. So if anyone still has input please add it. I will be doing some more research on the subject.
Link to Post: http://openradar.io/15060709
Also I asked apple for comment on this as well and as soon as I get a response back I will post it in this answer.

Resources