How to add an external project to Xcode 4? - ios4

I am stuck with an issue of including an project in Xcode 4. I have all the document but it works with Xcode 3 and not Xcode 4.
How to add ZXingWidget.xcodeproj to my project in Xcode 4?

In Xcode 4, you're mostly meant to create a new Workspace to which you can add multiple projects. From the main menu: File > New... > New Workspace...
Once you create your new workspace, drag the Xcode project files into the project navigator of the newly-created workspace. Drop the first one anywhere in the project navigator pane but be careful to note the insertion pointer when you drop the second one. Advice: Drop it beneath the entire first project but with your pointer as close to the left edge of the project navigator panel as you can get. This makes sure you're not inserting a project into another project.
In this way, you get all the benefits of a workspace (automatic dependencies, etc.) without changing the structure of the projects themselves. Then you simply open the workspace rather than the individual projects within it.

Despite that this question had been asked months ago, here is a great resource directly answering it. It worked flawlessly for me (even though I had ARC turned on for the main project I was importing it into).

Related

Sublime Text 3: How do I have multiple workspaces associated with the same project file?

Say, I have two windows, each containing several open tabs, and I want that "structure" to be viewed as one – either a project or a workspace, I do not care. All I want is to be able to close and then re-open both the windows via a single "open" operation.
As far as I understand, usually a workspace corresponds to one window (possibly with multiple tabs); on the other hand, I've seen it mentioned several times that multiple workspaces can correspond to the same project (file).
How do I achieve that?
If I try to add a new workspace to an existing project via Project → New workspace for project, that seems to work at first, but then if I, say, close the project, close the editor, open a new empty window and use "Open project…" – I end up with just one of my two windows re-opened.
The created .sublime-project file is essentially empty: all it has is "{}". What shall I place there to have two workspaces associated with that one project?
Thank you!
Project or workspace in sublime is essentially about paths, for saying if you are working on the a project in /depot/project_a/..., you can set up a sublime project under /depot/project_a/project_a.sublime-project, then in that project you add "." as your folder. then you can set up another sublime project under /depot/project_a.sublime-project and add "project_a" as your folder in that second project. Sublime text will recognize them as different project although they are literally the same one.
Then you can have 2 windows on the same project but have their own files opened.
I help I explain clearly and it will help you.

how to create layout folder depending on api version?

i want to Create different layout depending api version as follows. Since the default folder layout is already available,when i create new layout as below screenshot it doesnt apppear in android studio folder list under res. but i right click on res and open with explorer those folder does shows. can any one please help me how to create those layout folder.
/res/layout/layout.xml (Default)
/res/layout-v14/layout.xml (Api 19)
/res/layout-v17/layout.xml (API 21)
I think the reason for not seeing the folders is due to the current viewing option you have selected in Android Studio. (please refer to the image below)
When Android is selected the folders are more compact, meaning it will focus on showing a single resource/folder regardless of qualifiers and I think that's what you experience. Switching to Project would solve it however.
This viewing option does have some great benefits by the way, for example I really love how gradle scripts are grouped together and it even shows the Global gradle.properties file (at least on MacOS) which it doesn't in Project view.

Add existing project to blank solution in source control

I am trying to put several existing projects in one blank solution. This solution plus existing projects then need to be added to TFS source control.
Is there any way to achieve this? I simply am not able to find out how to get this done. Adding the project to a blank solution is relatively easy. Except it only places references to the existing project, rather than adding the files to the solution.
So when checking-in at sourcecontrol, it does not recognise the projectfiles as they do not get added to the solution, just references.
How can I get this done?
I managed to figure it out.
Add projectfiles of the project to be added to the solutiondirectory.
Add a reference to existing project (the one now in your solution directory).
In Windows Explorer, rightclick on the projectmap you just added and navigate to "Team Foundation Server" --> "Add".
The showing messagebox will describe which files will be added (they should be ONLY projectfiles, no bindirectory or anything).
Then reopen the solution in Visual Studio and the project should appear to be in source control.
Edit: The changes to show up in the pending-changeswindow, you just have to add them manually. They should show as "detected". Select these to be promoted and you should be able to check them in.

Visual Studio 2012 not recognizing all pending changes?

I'm working in TFS with my team for project and the problem occurs when I'm trying to make new modeling project for my classes, it doesn't show up in pending changes.
So here is how I go:
First I enter my folder where I keep my classes. I've tried from there many combinations: I've tried first right-clicking on my folder and putting "check-out for edit" and then continued to * (see later); next I've tried clicking on .csproj of my classes so I activate my project when I'll be adding modeling project and then moved to *; last I tried to activate whole solution of our whole projects which is connecting them and then to moved to *.
None of it worked. (I was always having last version)
here is what I did next for all the possibilities:
I went to Architecture -> New diagram (named diagram and left create new project) -> Create (then windows shows up for creating new project in which folder and I always select my folder where I keep my classes).
After when that was done, I went to check to "pending changes" in Team Explorer, because there should be some available since I created already Modeling project. But there was none. Since I couldn't do it like that, the last solution how I made it was by right-clicking to Source-control Explorer on my project and going to Add items to folder and selected my project which was created locally where I wanted it to be created.
But, this last solution was giving me errors while trying to open my modeling project after. I know I should activate first modeling project, so I clicked to .modelproj and while clicking to it, it was giving me this "notice" or rather "warning":
The solution you have opened is under source control but not currently configured for integrated source control in Visual Studio. Would you like to bind this solution to source control now?
--
What am I doing wrong? Why solutions are not integrated by default while creating my project (my friends are doing it automatically, they don't need to right-click in Source Control Explorer to add item to be able to see pending changes)?
I hope I made myself understandable.
It looks like your solution binding is broken. Either click yes on the question to bind your solution to source control, this is information that must be stored in the solution file and while Visual Studio does see that the folder is mapped to source control, it also sees that your solution isn't (did you check the add solution to source control checkbox when you created it?)
Optionally try opening file -> Source Control -> (optionally) Advanced -> Manage Source Control. You can select project in your solution individually and then click the bind button on the toolbar to bind them to sourcecontrol manually.
I had a similar issue and, in my case, the solution was to right click on my project and choose Source Control->Go online. Apparently I must have somehow been switched to the offline mode.
I have successfully checked in files from source control explorer instead of solution explorer in this case. Then after that it has worked again
VIEW > Other Windows > Source Control Explorer
Other way to do it:
File--> Source Control --> Advance --> Change Source Control.
In the window displayed select all the projects you want to bind to the TFS
I had the same issue and solve it by clicking:
File -> Source Control -> Advanced -> Refresh Status
In VS2013+, you can check if your solution is online. In my case, due to VSO service outage, my solutions went offline. I had to open the solution, File > Source Control > Go Online.

Completely Delete Xcode project and all references?

Every time I try to delete my project, and create a new one under the previous name that i deleted, the icons and references are still there. I can't seem to fully delete it then start again with the same name. Any help is appreciated.
Using: Xcode 4
Close the project then delete it with Finder. Open Xcode's Organizer window (Cmd-Shift-2) and click the Projects tab. Find and delete the project from that list. Close the organizer than try creating your project again.
Also, file a bug report at http://bugreport.apple.com - this shouldn't be necessary but I have seen it before (in 4.0 betas).
A solution for Xcode 6:
(You can skip steps 2 and 4 if you just want Xcode to forget the project, but don't want to remove the actual project files.)
Go to Window ▸ Projects.
In the list on the left, secondary-click on the project you want to delete, and select "Reveal in Finder".
Go back to Xcode and secondary-click again on the project in the Projects sub-window, and this time select "Remove from Projects...". This will remove the project from Xcode, but won't delete the actual project files.
Go to the Finder window that opened in step 2 and move the project folder to trash.
Also, to get rid of the unwanted projects when you control-select on Xcode in docks:
1) Follow Joshua's instructions above
2) Quit xCode
3) Control-click on "show recents"
Now only the projects you have left will show up.
In Xcode 4.3, close the project, close Xcode, then use finder to delete the project folder. Next time you launch Xcode the project should be gone.

Resources