Is there any tool to find any difference between two xcode projects? - ios

Is there any tool available to find the difference between two versions of same xcode project?. So that I can easily get an overview of the changed/newly-added/deleted files.
Thanks,
durai.

The Xcode tools include the FileMerge.app application that does exactly what you're looking for.
It's at <Developer Tools>/Applications/Utilities/FileMerge.app.

You can compare two Xcode project using FileMerge tool available with Xcode.
Below are steps for comparison in Xcode 6.1
Right click on Xcode icon -> Select 'Open Developer Tool' -> Select 'FileMerge' option
This will open window as show below :
Select two Xcode project which is to be compared by clicking Left and Right button
Click on 'Compare' button. This will create list of file that are added, removed or altered
by comparing two Xcode project.
Note : While selecting file for Left/Right go to folder level not Xcode file or workspace
You can check changes in Left/Right, identical between Left/Right or Added/Deleted by selecting feature present in extreme right side of window (if using Xcode 8.2.1)

Related

What do the different icons beside Xcode projects mean?

When I open Xcode, it prompts me to open recent projects. In the screenshot below, the second and third projects are the same, and the first is different.
What I Want To Know:
1) What is the difference between the white and blue Xcode icons at the left?
2) Given the the second and third projects are the same, one has a white icon and the other has a blue icon. What does it mean for them both to be listed?
The white icons are Xcode workspaces (.xcworkspace) and the blue icons are Xcode projects (.xcodeproj). A workspace can refer to one or more projects.
Here are examples of three different Xcode document types from my Open Recents menu:
The white icon represents a Xcode workspace, which has an extension of .xcworkspace. The blue one is for xcode project with an extension of .xcodeproj.
An Xcode workspace can contain multiple projects.
A workspace is an Xcode document that groups projects and other documents so you can work on them together. A workspace can contain any number of Xcode projects, plus any other files you want to include. In addition to organizing all the files in each Xcode project, a workspace provides implicit and explicit relationships among the included projects and their targets.
https://developer.apple.com/library/archive/featuredarticles/XcodeConcepts/Concept-Workspace.html
What is the difference between the white and blue Xcode icons at the left?
The blue ones are project files and the white ones are workspaces. Workspaces can refer to several project files, which makes them useful for working with several different components at once. For example, you have a project that builds a framework and another that builds a test application that uses the framework. Using a workspace lets you work on both at once.
Given the the second and third projects are the same, one has a white icon and the other has a blue icon. What does it mean for them both to be listed?
It simply means that you can open any of them. Note that you can't have the same project open more than once, so if you open a project and then open a workspace that refers to that project, you won't be able to see the contents of the project in the workspace.

XCode 7.3 Not showing "general" tab in options.

I'm trying to access the "general" tab of the Xcode options for a target I'm trying to build but there seems to be none.
Heres an image of my settings tab with the target selected: http://imgur.com/ljgW9j6
Try this.General option
Click the left top corner icon (Hide project and targets list button) that appears in the image and then a list will show you your project, then click your project and the general option now appear.enter image description here
It looks like the project was not created correctly for iOS. You need to do File->New->Project. Then, go to iOS category and choose your project type (usually single view application). Then input your project name, preferred language, organization, etc. and create the project. Now, when you click on the target, you will see the general tab.
that message is talking about your IOS device general tab so you have to go to your (iphone or ipad) setting -> general -> (in IOS 11)Profile & Device Management -> Then select your apple Id which is signed in xcode
Note: your ios device should connected to internet

XCode only showing info and build settings not the rest?

Anyone can explain why the other menus in xcode are not being displayed? I downloaded a tutorial file and it only shows
and not as I would expect this
I am looking for the Capabilities tab,
Presumably, you're looking at a project:
and not a target:
Use the popup menu (or the sidebar that's shown collapsed in my screenshots) to select your app target instead.

can't run iOS project in simulator nor device

I made some changes in my xcode project, which somehow, causes me to not be able to run the app in the simulator nor device. The only option that I can see now is My Mac 64 bit. How do I fix this? The target is correct.
Try this:
Go to Edit scheme (Drop down near the stop button), then select Excecutable as "yourapp.app".
If you open the project in XCode (4.4.1), on the left top click the folder icon, then select your project icon to bring up the project settings page. Click on the "Summary" tab, then you should see "Devices" where you can select the device you want to target.
If that doesn't work (you don't see "iOS Application Target") you may need to go into "Build Settings" and select a different "Base SDK" -- I usually select "Latest iOS". You may have selected a Mac OS X SDK. Also check "Supported Platforms" to select "iOS".
Another Way which did it for me ...
go to manage Schemes and click Autocreate schemes now on the upper left side ..
hope it helps

How to disable no inverse relationship warning for CoreData in Xcode 4.2?

There was a MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting on Xcode 3 but I cannot find it in Xcode 4.2 and trying to set it as a user defined build setting have no effect.
I know why I should use inverse relationship but I just don't want it for various reasons.
In XCode 5, 6 and 7, you can still set the variable.
Navigate to Build Settings
A. Select your project on the left side bar under Project Navigator.
B. Select the "Build Settings" tab.
Find and set MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS
A. Select 'All' in the upper left of the main screen.
B. Search for MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS by pasting the key into the search bar.
C. Change value to YES.
Build again and the warnings are gone.
****EDIT****
Thanks #RajTandel for the comment. If you still see the warnings, restart Xcode and the warnings should go away.
Using XCode 4.3:
Find your way to Build Settings
Select project node (top node) in the project Navigator
Select your project under Targets
Select the "Build Settings" tab
Find and set the MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting
Scroll all the way down the build settings to near the bottom and find the section named "Data Model Version Compiler (MOMC) Warnings"
The first entry is "MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS" and it defaults to NO
Change it to YES
Build again, and the warnings should vanish.
The setting is still there in Xcode 4. At least it is for me when I create a new project in Xcode 4.2 that uses Core Data. The MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS setting is in the Data Model Version Compiler (MOMC) Warnings collection, which is towards the bottom of the build settings list.

Resources