扩展项目模板未出现在 Xcode 6 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24056290/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Extension project templates not appearing in Xcode 6
提问by Terry
I'm not sure if I am the only one experiencing this program, but I have tried searching and have not been able to find anyone in my current situation. I downloaded Xcode 6 beta and was interested in Extension programming for iOS 8. However, I have been unable to locate the extensions in my project templates when creating a new project in Xcode, I saw a YouTube video (unrelated to extension programming) but I did notice that the option was not there for the said video. Now, I have had a look through the contents of the Xcode 6 beta package and have been able to locate the actual templates themselves, so I have no doubt they are present, it just seems that they are not actually being loaded.
我不确定我是否是唯一一个体验这个程序的人,但我已经尝试过搜索,但在我目前的情况下没有找到任何人。我下载了 Xcode 6 beta 并且对 iOS 8 的扩展编程感兴趣。 但是,在 Xcode 中创建新项目时,我一直无法在我的项目模板中找到扩展,我看到了一个 YouTube 视频(与扩展编程无关)但我确实注意到该选项不存在于所述视频中。现在,我已经浏览了 Xcode 6 beta 包的内容,并且已经能够自己找到实际的模板,所以我毫不怀疑它们存在,只是看起来它们实际上并没有被加载。
For the record, I also downloaded some example custom keyboard code from GitHub in order to see whether Xcode will recognise it and it does, going as far as actually displaying the 'E' icon beside the build target. I should also mention that I do have a build of Xcode 5 also present on my machine.
作为记录,我还从 GitHub 下载了一些示例自定义键盘代码,以查看 Xcode 是否会识别它,并且它确实会在构建目标旁边实际显示“E”图标。我还应该提到,我的机器上也有一个 Xcode 5 版本。
Is anyone else experiencing this issue, or does anyone know how to overcome it?
有没有其他人遇到过这个问题,或者有没有人知道如何克服它?
Thanks
谢谢
回答by streem
回答by Masalis
I had the same problem. The solution was to not try to add the extension in File/new/File...
menu but in File/new/Target...
menu.
我有同样的问题。解决方案是不要尝试在File/new/File...
菜单中添加扩展名,而是在File/new/Target...
菜单中添加扩展名。
You can add extension to any existing project.
您可以向任何现有项目添加扩展。