Got the "No Scheme" issue after merging the conflict issue
Auto-merging SampleProject.xcodeproj/project.pbxproj CONFLICT (content): Merge conflict in SampleProject.xcodeproj/project.pbxproj Automatic merge failed; fix conflicts and then commit the result.
Definitely I took some defected operations when merging the conflicts. The question is that does there has any best solution to fix the "No Scheme" issue in this kind of case.
When Schemes shows "No Scheme" option, Click on
No Scheme
-> Manage Scheme
-> then click the button Autocreate Schemes Now
I found the top rated answer didn't work for me so thought I would post my usual approach here - as I just had to solve this problem:
We know the problem - the error is actually quite clear on this issue:
Auto-merging SampleProject.xcodeproj/project.pbxproj CONFLICT (content): Merge conflict in SampleProject.xcodeproj/project.pbxproj Automatic merge failed; fix conflicts and then commit the result.
We have a conflict in the project.pbxproj file.
If it said "Conflict in appDelegate.h" we'd know exactly what to do but the fact the project won't compile seems to be more worrying than a normal conflict - which is what this actually is.
So how do we go about fixing this conflict?
Above is an example of how the conflicts will look.
Once you have found all the conflicts in this file just save and reload the project. The scheme should be back and the project working.
Note: As mentioned above some thought is required when resolving the conflicts. Usually they will be very easy (just remove the conflict lines) but sometimes you will need to fix a little bit of code. If you see the example below - the file had been corrupted and needed to be fixed:
The fix required in this example was:
path = DetailModels;
sourceTree = "<group>";
};
This code needed to be added and could be worked out from the code in the above areas.
Similar issue. Closed my projects, quit then re-opened XCode and my schemes were back.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With