Is that a bug for WWDC 2014 Sample Code? - swift

I have checked WWDC 2014 video about Changes in Core Data and I think it is great. However when I tried to use the sample code in Apple website: Earthquakes: Using Second Core Data Stack to Fetch Data in Background
I faced a lot of error shown. Even I tried to fix these errors but some of them I could not understand. I just wonder it is the errors made by Apple developers or the errors for my Xcode 6 beta 4.
I would appreciate much if you could check for me to make sure what happened because I really need these changes in Core Data.
Thank you so much!

As you know Swift is still in beta. The sample project that you have mentioned above is not build using the latest swift version beta 4. They have made lot of changes from beta to beta. The compiler error shown will help you to fix those error's. You can even check the changes in beta 4 here

Related

upgrading to iOS 7 and Xcode 5 - having issues with UIAccelerator, UIStringDrawing and NSObject

I updated my iPad to iOS 7, and discovered that the Enterprise app that I have been working on for over a year crashes. OK, no problem, I'll see where in Xcode it's crashing.
OK, Problem: I have to upgrade to Xcode 5 to debug iOS 7. OK, no problem, I'll upgrade to Xcode 5.
OK, Problem: The source code in Xcode 5 now shows 19 errors: One in NSObject.h, three in UIStringDrawing.h, and the rest in UIAccelerometer.h.
And, for a bonus, it adds one at the bottom, "Too many errors emitted, stopping now." Which is not all that comforting.
I've really scoured the internet for answers, but I must be using the wrong search terms because I am finding nothing that addresses this. Surely I am not the only one.
I have been developing iOS apps for almost two years now, I think, but I am still pretty stupid when it comes down to the nitty-gritty stuff. I usually just hit "Run" and hope it works. So far that has been a pretty effective strategy, but now I am stumped.
Can anyone tell me what I am doing wrong? Except the obvious, being that I should have left everything well enough alone.
I will also have to update my previous app, because it has iOS 7 issues too, but it scares me to even think of it.
I appreciate any help anyone can give.
I found the answer here: http://blog.spacemanlabs.com/2013/09/how-to-support-old-ios-sdks-in-xcode-5/#comment-1056917662
After figuring out how to do all this, the app showed a couple more errors unrelated to the original problem. Turns out I had a couple of XIBs set for Autolayout. Those being disabled, the app worked great on my iOS 6 phone with Xcode 5.
Glad you were able to switch back to the iOS 6 SDK. I had the same errors in UIAccelerometer.h and NSObject.h, but wanted to stick with the iOS 7 SDK.
For me, these errors were the result of stray copies of UIKit.framework, Foundation.framework (And a couple of other frameworks) inside my project folder. These were seen by the linker, hence the "duplicate symbol" error messages thrown. As soon as I got rid of the frameworks in the project folder and re-linked to the frameworks in "Build Phases" -> "Link Binary With Libraries," everything built.

I seem to be getting a huge amount of errors in XCode with ASI HTTP Request?

I am getting about thirty issues already with the files which I downloaded from http://allseeing-i.com/ASIHTTPRequest/.
See http://f.cl.ly/items/0J0l3w1t1n222N3E3v44/ASIErrors.tiff for a few errors highlighted in XCode.
Do I have to go through each one individually to fix or is there a simple fix?
EDIT: It seems to be something to do with "ARC"?
Thanks!
Guessing you're trying to compile with XCode 4.2 / iOS 5. You'll need to turn off ARC. Here's an article that shows how to do it for the whole project:
http://matthiaswessendorf.wordpress.com/2011/09/12/disabling-the-arc-in-xcode-4-2/

Apple's iAd sample code throwing errors

i am trying to incorporate iAd's into my app and in the process i'v gone through Apple's sample code.This is the link to the sample code. I have downloaded the sample code from apple's developer website and ran the same code without any changes in x-code. I encountered almost 9 errors after this,some of which are as follows.
1 - cannot find protocol declaration for iAdinterstitialAdDelegate
2 - ADInterstitialAd undeclared etc..
Please note that i haven't made any changes after downloading the code... Any help in this regard would really be appreciated
Do you have the SDK 4.3 (or newer) installed?
If yes, check the base SDK of your project/target and see if it's set to something lower than 4.3.
ADInterstitialAd is only available since 4.3

Did anybody have problems with migrating Xcode3.2x projects to Xcode4?

At the moment I'm in a production cycle with submitting updates to my App every 2 weeks in average. I'm thinking of migrating to Xcode4 right now. Did anybody have problems with migrating projects or archiving or submitting to store? If so, best practises in solving such issues are very welcome.
I haven't experienced any problems and the transition guide claims:
Working on a Project in Xcode 4 Leaves
Your Xcode 3 Preferences Untouched
I've also read somewhere else (but can't find it) that Xcode 4 uses the Xcode 3 project format unchanged. So far I can confirm this.

Will old source code run with SDK 4.2?

I've been working on creating my own iPhone app with source code my company gave me. This code was created with iPhone SDK 3.0. I've worked on it for over a year (I'm a designer so my coding is mostly copy and paste) and to test the app on my iPhone it says I must update my SDK to 4.2. I'm wondering will this break my app? I probably don't have the skills in xcode to upgrade my code if I am required to rewrite parts.
Thanks,
Chris
If none of the code has been deprecated, changed or even removed, chances are good it still runs fine. Most projects run, and if you have used external code (and hopefully noted where you got it from) there might be an update available for that piece of code.
Just set the deployment target to iOS 3.0 in your project settings
here some little explanation: link