首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Xcode中访问Genstring?

如何在Xcode中访问Genstring?
EN

Stack Overflow用户
提问于 2016-07-07 00:20:50
回答 1查看 1.5K关注 0票数 1

我目前使用的是一个能够在语言之间切换的吊舱。安装过程的一部分如下:

代码语言:javascript
复制
To support this new i18n syntax, Localize-Swift includes custom genstrings swift and python scripts.

Copy the genstrings file (either .swift or .py) into your project's root folder and run with

./genstrings.swift
or

python genstrings.py
This will print the collected strings in the terminal. Select and copy to your default Localizable.strings.

The swift genstrings includes the ability to specify excluded directories and files (by editing the script).

我不熟悉字符串,也不知道作者指的是什么。我猜作者是指我的本地化字符串文件夹,但是当我在上面运行一个终端时,我得到了以下错误:

代码语言:javascript
复制
-bash: ./genstrings.swift: No such file or directory

你知道这些指令是什么意思吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-25 21:38:14

我看你在用本地化-Swift。该项目中的自述文件表示,您需要将genstring.swift文件复制到项目的根中,并从命令行运行它。这对我有用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38235849

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档