开发者

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.


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!


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜