Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How did my Xcode project get changed from iOS project to an OSX project?

Tags:

xcode

xcode4.6

I've been doing only iOS development and never made an OSX app. In the iOS project I'm working on now I see that suddenly Xcode thinks it's an OSX project. The all my framework files are shown in red (missing), and lots of the options in the project panel show choices that are only appropriate for OSX such as "deployment target", which offers only 10.4, 10.5, 10.6 etc. and in Build Settings the Valid Architecture shows i386 x86_64 with no drop-down options.

What happened? How can I change this back to an iOS project?

like image 786
RobertL Avatar asked Aug 01 '13 02:08

RobertL


People also ask

How do I open an existing iOS project in Xcode?

Open a projectClick Open on the Welcome screen or File | Open from the main menu. Navigate to the desired . xcodeproj directory. Specify whether you want to open the project in a new window, or close the current project and reuse the existing window.

What is the difference between project and target in Xcode?

A project is a set of files and general preferences. A target is a subset of the files, and specific preferences (which override the project preferences). Each target builds a product, which may be a library, executable, or framework.

How do I compare two Xcode projects?

To compare changes in one source file, open the file and click the Enable Code Review button in the upper-right corner of the Xcode window. The comparison view highlights changes between the current source code and the most recent commit.


2 Answers

could be 2 late to answer this question, however, this answer might help someone in the future, as the above answer wasn't helpful for me, so here is what I have done.

1- on the left top corner of Xcode click on the scheme.

2- click edit scheme

enter image description here

3- in the new window change "Executable" from non to the name of your project scheme "target"

enter image description here

4- on the top where it says "My Mac 64-bit" if it didn't changed automatically to iPhone/iPad change it manually.

enter image description here

5- if there wasn't any option, in bottom of the window click "Manage Schemes" and make sure the check box next to your project scheme is checked.

hope this could help and save anyone time.

like image 68
Crazy Avatar answered Nov 05 '22 11:11

Crazy


By your comment you should not have an issue navigating this.

Go to your Project (in upper left) -> Project (project name in submenu) -> Build Settings -> under Architectures menu select Base SDK and choose iOS 6.1.

enter image description here


This should switch your project back. Now under Info you should see your Deployment Target options have switched from saying OS X Development Target to iOS Development Target

enter image description here


As for why it originally changed, I have no idea. But hopefully this will fix your issue.

like image 24
Firo Avatar answered Nov 05 '22 11:11

Firo