简体   繁体   English

iPhone应用程序目录重组

[英]iPhone app directory reorganization

I'm trying to clean up my source directory tree by putting things into folders. 我正在尝试通过将内容放入文件夹中来清理源目录树。 When I move files, obviously I have to specify the relative paths in the target settings. 移动文件时,显然必须在目标设置中指定相对路径。 If I don't, XCode will complain. 如果我不这样做,XCode将抱怨。

I've moved the following files to a subfolder from my project root: 我已将以下文件从项目根目录移至子文件夹:

  • MyApp-Info.plist. MyApp-Info.plist。 I can tell XCode about this file by clicking on the "Choose Info.plist file" button in the target settings page. 我可以通过在目标设置页面中单击“选择Info.plist文件”按钮来告诉XCode有关此文件的信息。
  • Default*.png. 默认* .png。 Those are fixed by entering the relative path in the Target > Info > Launch Image field. 通过在“目标”>“信息”>“启动图像”字段中输入相对路径可以解决这些问题。
  • en.lproj/MainStoryboard_*.storyboard . zh.lproj / MainStoryboard _ *。storyboard Dunno how to fix this. 邓诺如何解决此问题。
  • en.lproj/InfoPlist.strings . en.lproj / InfoPlist.strings Dunno how to fix this. 邓诺如何解决此问题。
  • There's also my source code files but that's easy to move around as these appear in the Build Phases > Compile Sources. 还有我的源代码文件,但是它们很容易移动,因为它们出现在“构建阶段”>“编译源代码”中。

So my question is, what's required for specifying a subfolder for the rest of the supporting files in my target settings? 所以我的问题是,在目标设置中为其余支持文件指定子文件夹需要什么?

Thanks a lot! 非常感谢!

The answer is: XCode was just confused about the location of the storyboard. 答案是:XCode只是对于情节提要的位置感到困惑。 I removed the storyboard files and added them back in the project and at that point the storyboard is available in the dropdowns in the target settings page. 我删除了情节提要文件,并将它们添加回项目中,此时,目标设置页面的下拉列表中提供了情节提要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM