Swift compilation discrepancy in version 2.1.1 and xcode 7.2 - swift2

We have latest Xcode(7.2) having Swift(2.1.1) installed in few mac systems. Here developer didn't find any errors in his code which was checked in, but the same code used at other end were observing errors(most of them related unwrapping variables).
verified all settings and version details not able to find any difference. Any help or suggestions will be appreciated. Thanks

Most likely the machine "at the other end" is not running Xcode 7.2. There is a tool for converting Swift 1.x to 2.x, but not the other direction. But without code sample illustrating the problem, we can't help you much. In addition to shifting unwrapping conventions, there is new syntax later versions of Swift (e.g. guard, error throwing, etc.).
But, if you're going to share a Swift project amongst multiple developers, you probably just want to make sure everyone is using the same version of Xcode. And with Swift progressing as quickly as it is, you might want to encourage everyone to use the latest production version of Xcode.

Related

Why is my build failing using Meteor 1.4.2.3 and XCode 7.3?

I never had a problem building with Meteor and XCode before, but after upgrading to Meteor 1.4.2.3 with React I'm getting a whole lot of build issues. XCode has asked me if I wanted to upgrade to Swift, but I've been reluctant afraid that it may stop previous builds from other projects from working.
I converted to swift, but I still am having many errors although less then before. Is there an easy fix for this?
Apple have upgraded to xcode 8 now and that has caused all kinds of problems with new versions of swift which are not compatible. This is the case in many areas not just meteor projects. The meteor webapp has been updated to allow for this so I would recommend that you go to xcode 8 as well.
Given that meteor generates all of the code you shouldn't need to worry about compatibility

Neovim builds failing on OS X 10.10.2

I should mention that I originally posted this as an issue on Neovim's tracker, but it hasn't been getting a ton of traction there lately and I'm beginning to suspect that it's more an issue with my setup rather than Neovim itself.
Essentially, I had stopped building neovim nightlies for a few months. Having heard that it's getting integrated terminal support I decided to rebuild using the latest source, only to get a persistent, odd error. No matter what my build settings are, it always boils down to make hitting an error when it has to compile a file called loop.so. I hadn't noticed this issue with any other software I try to build, but I suspect it could be an issue with my environment.
Does anyone here know what this file's role is, and why the compilation could be failing at that point?
You might need to install the full Xcode app and not just the command line. This fixed the issue for me.
The issue turned out to be a bad typedef in a libuv header, object.h.

What happens to my project when updating from xCode 5.1 to xCode6?

I'm currently using xCode 5.1 and Objective-C to learn how to make apps and I'm wondering what would happen to my projects if I update from 5.1 to 6. Will my projects still run or will I have to code everything in Swift?
Your projects should still run if they were running in previous versions. What will most likely happen is that you will be bombarded by warnings and alerts about deprecated code and syntax. You're going to get a lot of them with an upgrade that big.
For the most part, XCode should tell you exactly what needs to be upgraded. It shouldn't change any of your code. But it's always good practice to back up your project.
Good luck!
See also : https://stackoverflow.com/a/24005402/4329655

Using Apple's coding examples in XCode 4.3.2 - Base SDK Missing

I'm discovering XCode and iOS development.
Delving into the iOS documentation, I've tried to download and run some of the programming examples.
As an example, I'll use AccelerometerGraph.
If I download the code and try to compile, i get an error message, and I realize that the Navigation panel tells me : Base SDK Missing.
After fiddling around (the existing answers on stackoverflow refer to the Xcode 3.2 answer, which doesn't work) I figured I should go to "Editor > Validate Settingsā€¦" and accept the changes.
It "seems" to work, (as in the "Missing SDK" message disappears, and I can compile) but I'm wondering if i'm missing something more fundamental.
Also, I thought if there is such a fundamental change, it would be useful to have it up there in one of the questions.
Thx
P.
Go to the project settings and choose "Latest SDK" for the SDK option and that should fix your projects.
And if you want to be super helpful, file a bug with Apple (at http://bugreporter.apple.com) and tell them to update these outdated sample projects to use the latest SDK's if possible.
Not missing something more fundamental. Apple's sample projects have a variety of vintages. Mostly they compile and link under the current versions of Xcode and friends. Some need to be brought up to date. What you found was one that was originally set up for an obsolete version of the SDK and it compiles and links fine with one that was automagically found on your system when you updated it.

XCode 4.0.0 Version instead of Xcode 4.0.2

I downloaded Xcode 4.0.2 just a while back. I am not able to connect to the repositories as I was able to do in Xcode 4.0.0.
I do not know the reason for this, and I think the settings are pretty much right. I am now searching for Xcode 4.0.0 so that I could revert back to the earlier version.
Does anybody know where I can find the earlier version of Xcode?
You can look on torrent sites, there may be some out there. Also, try searching Google for links from Apple, you may be able to figure out the download link from the most recent available on Apple.
Are you running Time Machine? You could revert to an earlier version from there.

Resources