Firstly, it would be very useful if someone spent some time going through all the samples provided with a build to make sure they work. I have tracked down an issue and it would have been considerably faster if the PCTradeClient sample worked with the latest RO stuff. I have attached the one I ended up with but there are various things that need to be done to make it work which may be tricky for someone new to this. Things like having to add security/libxml references, edit the storyboards to build with latest Xcode, add NSAppTransportSecurity to info.plist, some graphics files are missing and make it actually run on a iPad (I never got this to work - I was trying to get it working on the iPad initially since that’s what my app is then found it is OK on the iPhone app so haven’t actually looked at this). Anyway, I digress…
The problem I have is this. I’m adding some calculated fields and caching them to speed things up for the user (as little changes on the table I do this). The definition (https://docs.dataabstract.com/API/Cocoa/Classes/DACachedCalculatedFieldDefinition/#q=addCalculatedFieldName) says that these are not saved to a briefcase but there is a problem because it seems they are and it corrupts the briefcase and it will not load next time it is needed. It also cannot be opened in server explorer. I’m edited the sample as attached to save the briefcase after the fields are setup and changed one of the fields to be cached so to see the problem, run the sample once until you see the clients view controller, then run it again and it will fail to load the briefcase. If you look at the briefcase in a text editor you can see it is added:
Can you rebuild DA locally? if so, try changing that to YES should fix the issue (DADataTable.m, line 251). I’ll fix for next build and retest myself, as well.
I’m probably going to struggle today as I’m away for a week from this evening and there’s a few things I need to get done so I’m happy to await the next build thank you. I will endeavour to do it if I can. Incidentally, I don’t think this is a new issue - I think it’s been there a while.
A new build is up on the firehose that you could use, as well
Yeah, this probably never worked, and no-one ever used the combo of cached calculated fields, and briefcases ;). Which is odd, coz I used cached calculated fields quite extensively in our (now long defunct) internal “Bugs 7” application — which ay the time was the internal poster child for DA/Xcode use. Strange.
Any idea which build this may be in? I’ve been off, and just come back to this, and I see it isn’t in the latest DA (.1467) and tried a couple of firehose builds but can’t see it and am really not sure how to rebuild DA locally.
Also, the latest DA build fails with “Could not find .fx file “libxml” referenced from “libDataAbstract.fx”” when I build my project.
Ah, so it is thanks, I see the change in the source code, just not in the change log! I can’t test it though due to the libxml error above (that’s the Fire plugin I tried). Bit of a delay getting back to things as ended up in hospital again this week ! OK now.
No probs, this is a project in the office (I nipped over there to grab the log as I’m not in there again until next Friday), I’ve got no issues in my other projects which are on my home mac (they all use DA).
I’ve tried a couple of times, to no avail, I just grabbed the latest fire plugin from firehose that I could see (.1468 dated 10th Feb) and am using the latest Fire (.2483) and this problem is still there, and is on any of my DA projects. If I revert to the latest stable DA then all works (other than the original cached field issue of course).
You’re referencing a DA.fx dated later than that, bit it still asks for a non-existent libxml? Can you send me the exact .fx file you’re building agains, and a complete rebuild/diagnostic build log? thanx!