Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to Create Snapshot in Xcode 4

Does Xcode 4 have a problem with creating a snapshot for a project with git submodules?

fatal: Path 'path/to/project/vendor/facebook-ios-sdk/src' is in submodule 'path/to/project'

Now, this error message is also wrong, if it refers to git submodule. The 'path/to/project' is not a git submodule.

Next:

  1. I tried to delete the snapshot, and try to create it again. This is successful.
  2. I try to create a new snapshot (while an existing snapshot is there). This is failed.
like image 243
Jesse Armand Avatar asked Dec 09 '22 08:12

Jesse Armand


2 Answers

I had the same problem today with Xcode 4.2 (4D199) after changing the folder structure of my project. I fixed it by taking the following steps:

  • Make sure all files and folders in your project are added or ignored in the repository
  • Choose "Organizer" in the "Window" menu
  • Choose "Projects" in the organizer
  • Choose your project in the sidebar
  • Delete all snapshots of the project

WARNING: Export snapshots before you delete them, if you want to use them later!

like image 150
mxgzf Avatar answered Jan 12 '23 07:01

mxgzf


had the same issue. moving the project folder to another location worked for me (there was a * in a folder name further up the directory chain where the project was located in (like this /***myprojects/iphoneprojects/wontsnapshoproject), as soon as renamed the folder with the * it worked (/myprojects/iphoneprojects/wontsnapshoproject).

like image 22
Marc Avatar answered Jan 12 '23 08:01

Marc