Xcode中Git提交问题

问题描述:今天在做TAG App用Xcode中的Git提交代码,出现如下错误:

The working copy "ViewDeck" failed to commit files.

error: pathspec 'IIWrapController.m' did not match any file(s) known to git.
error: pathspec 'IIWrapController.h' did not match any file(s) known to git.
error: pathspec 'IISideController.m' did not match any file(s) known to git.
error: pathspec 'IIViewDeckController.m' did not match any file(s) known to git.
error: pathspec 'IISideController.h' did not match any file(s) known to git.
error: pathspec 'IIViewDeckController.h' did not match any file(s) known to git.

问题解决:用GitHub进行提交,OK了

Undo “New Group from Selection” project

问题描述:今天在做TAG App 时在Project上不小心“New Group from Selection” 了下。然后无法撤销了。。。Project上就一直顶着一个New Group。

问题解决:

  1. close xcode
  2. right click on your project's .xcodeproj, then click "Show Package Contents"
  3. inside .xcodeproj, remove the project.xcworkspace
  4. save it and re-open your xcode project and it would be rebuild the file

 

Base Internationalization需要iOS6以上

问题描述:今天在做TAG Apple 时发现问题。在iOS6-iOS7下,模拟器和真机都运行良好。在iOS5下,模拟器可以运行,但是真机跳出错误,如下:

2013-09-23 10:53:05.199 TAG[2136:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main_iPhone' in bundle NSBundle </var/mobile/Applications/B841AA38-1064-4C47-A560-0C1A8FF003AE/TAG.app> (loaded)'

*** First throw call stack:

(0x3743388f 0x35138259 0x3147f5fb 0x312b63ed 0x3113f6eb 0x3113972f 0x31107ac3 0x31107567 0x31106f3b 0x33b4922b 0x37407523 0x374074c5 0x37406313 0x373894a5 0x3738936d 0x3113886b 0x31135cd5 0x8f68d 0x8e130)

terminate called throwing an exception(lldb)

问题分析:首先想到可能是storyboard,查了一下,是支持iOS5+的。然后找到TARGETS-BUILD Phases,发现是所有storyboard都没找到。最后进入文件系统发现在Base.lproj目录下。

问题解决:原因是Base Internationalization需要iOS6+。在GitHub上找到让其支持iOS5的方法:https://github.com/RolandasRazma/RRBaseInternationalization