.Xib creates error when running the project with Xcode 4.6.1 - iphone

Please someone help me out.
MY Mac OS(10.8.5) is updated and me also using the Xcode 5, but i have my previous Xcode 4.6.1 also installed in my mac. When i run my project through Xcode 5 then it's OK but when i run my project through Xcode 4.6.1 then it show that error which you seen in the image.and can't run the project.

This has a very simple answer.
Open the Project file on Xcode 5, And then
1.Open file inspector
2.On Interface Builder Documents section change Open with to Xcode 4.6 (if it's 5.x).
3.Click Revert, Close the project and open that with old Xcode.
you can do the same thing on Xcode 4.6 to work with older version.
Happy coding.. :)

1)Goto your xcode5 see your StoryBoardFile go to Assistant Editor preview option.
2)Then Goto file inspector see first tab
3)Select your interface Builder Documents 4.6
4) One Alert popup they ask you Revert to Xcode 4.6 format? select Revert
Follow this step and open your project in your old xcode project.

Related

How can I make my xcode project automatically select the correct Xcode version when I double click on it?

I have multiple versions of XCode installed on my MAC. When I install a new version of the SDK, I noticed that I can't no longer double-click on the project file for the newer version of XCode to launch the project. I have to constantly do a right-click and then select the newer Xcode version. (multiple versions now show up when I do a right click). I thought maybe once I right-click selected the newer Xcode app once, it would remember, but it does not. Is there a way to make it so that my project will ALWAYS launch with the newest XCode when I double-click..or must I constantly do a right-click and select the right Xcode version?
Right-click on your project and choose Get Info, then where it says Open With, choose the correct version of Xcode you want to open it. This may not be the official way, but it will work as expected. Also, doing it this way, and clicking on the Change All... button will change all of your Xcode projects to open with the one you selected.
Do a right click on your .xcodeproj file. Then select the "Open With" option.
Then select "Other" and navigate to the path the the specific version of Xcode you want to be selected automatically for this project. You will need to navigate to the correct xcode.app file. To help you find the right file, note that when you do a default install of Xcode, it gets put into the Macintosh HD->Developer->Applications folder. However, if you have installed multiple versions of Xcode, navigate to the specific version you have installed and then select the appropriate Xcode.app file. Make sure you select "Always Open With" in the window you are using to select the app.
Once you do this, you can finally double click on the project and the correct Xcode version will now launch.
Is there any reason to have to old version on your MAC still?

Error in Build - Missing SDK

I downloaded some Application samples from a website.
It used to work but when I went back to Xcode (After a couple of months) I tried them and it gives me this error.
error: There is no SDK with the name
or path 'iphoneos2.0'
I tried looking for a file called "iphoneos2.0"
and tried looking for a highlighted code but nothing.
Could anyone help me please?
The Base SDK of your downloaded app's Target has set to iphoneos2.0. Change the Base SDK of the Target from iphoneos2.0 to a iOS version which is available.
To change the Build Settings in (Xcode 3.2) - Goto Project -> Edit Project Settings menu. Or, Double-click the project name in the project tree in Xcode.
To change the Build Settings in (Xcode 4) - Select the project name in the project tree. It will open the Project Settings in the document area of Xcode.
In the project settings, search for Base SDK.

xcode3 xcode4 project file sharing?

I'm sharing xcode4 project through svn.
Wonder if it'll be ok for another user to use xcode3.
I read xcode3 and xcode4 can read the same project file.
However, when you share the project file using svn file, it's a bit different story.
(Mainly I'm(with xcode4) worried of possibilities that I'll have to rebuild project on every other person(with xcode3)'s commit or vice versa)
Has anyone done this?
From XCode 4 User Guide
Xcode 4 can open an Xcode 3 project
without difficulty. You can open the
project in any of the usual ways:
Control-click the project and choose
Xcode 4, drag the project onto the
Xcode 4 icon, or choose File > Open to
open the project. You can have both
Xcode 3 and Xcode 4 installed on your
system at the same time without
conflict. You can open a project in
either program, save it, then open it
in the other program without
invalidating the project or losing any
data.
Xcode 4 reads and builds projects
created in Xcode 2.1 through the
latest release of Xcode 3. Projects
created with Xcode 4 can be opened and
built on Xcode 3.2 and later.
Opening and building a project in
Xcode 4 does not upgrade or alter it.
Changes you make to a project in Xcode
4 remain compatible with earlier
versions of Xcode.
General interoperability works fine. But if you use Xcode 4's integrated unit testing (running "application tests" in the simulator), those won't work in Xcode 3.
I did this already at it was no problem. Xcode 3 and Xcode 4 are using the same formats, only the interfaces differe.

error: There is no SDK with the name or path 'iphoneos'

I have downloaded a sample and when I try to run it I get that error, how can I fix it?
The XCode project file you're trying to open is referencing a version of the iOS SDK that you either don't have installed or don't have in the anticipated location. This should be easily fixed by updating the project file to reference a version of the SDK available on your local machine.
XCode 4
Open the XCode project
In the left hand navigation pane open the project file
For both your project and targets open the build settings tab
Look for the 'Base SDK' setting and set it to the desired version
Older Versions
Open the Edit menu
Open Project Settings
Same as XCode 4 instructions - set the 'Base SDK' to your desired version

Can I run Xcode 4 Project in Xcode 3?

I download the One Example which had been in Xcode 4. I have Xcode 3 therefore, I can't run the Project. Please let me know is it Possible to run Xcode 4 Project in Xcode 3?
Yes, this is possible. Xcode4 saves the Xcode4 specific settings in a file that isn't used by Xcode3. But the project "layout" (which files should be compiled, compiler settings etc) is still in Xcode3 compatible files. And all the .m, .h .xib files are of course in the same format as in Xcode3
But since "I can't run the Project" isn't a helpful error description I can't help you further.