Skip to content

Icon在RN上,ios的配置不生效,报Unrecognized font family 'anticon' #1027

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zhulichao opened this issue Mar 21, 2017 · 12 comments
Closed
Assignees
Labels

Comments

@zhulichao
Copy link

zhulichao commented Mar 21, 2017

image
网站上的这段关于ios的配置能再说具体点吗,没做过ios开发,我是按下图这么弄的,不知道哪里有问题。
react-native@0.42.0
antd-mobile@1.0.6
image
image

@silentcloud
Copy link
Contributor

@zhulichao 路径不对,你先放在根目录下面试试

@silentcloud
Copy link
Contributor

@zhulichao 解决了么?

@zhulichao
Copy link
Author

没有哎,我试过放在根目录下,也没好使。现在使用的react-native-vector-icons。

@NewBen001
Copy link

@zhulichao 你可能需要添加target Membership,将项目和文件链接起来
ttf

@silentcloud
Copy link
Contributor

参看一下 demo app 实例:

image

image

Sorry, something went wrong.

@avennn
Copy link

avennn commented Jun 26, 2017

问题解决了吗?

Sorry, something went wrong.

@zhulichao
Copy link
Author

我使用react-native-vector-icons了,没再试过antd-mobile的Icon。

Sorry, something went wrong.

@lulut
Copy link

lulut commented Nov 20, 2017

我遇到的问题是一样的,anticon.ttf放在任何地方都不可以。target membership设置了,Info.plist里面也添加了,Build Phases 里面copy bundle resources里面也有对应的信息。但始终提示:
Unrecognized font family 'anticon'

@avennn
Copy link

avennn commented Nov 20, 2017

@lulut 要将iconfont项目里面的font-family改成anticon才行,要不然ios里面查看的文件信息还是iconfont,antd-mobile不认。
image 1

@HideOnBushTuT
Copy link

@naiba01 请问在哪里修改iconfont项目里的font-family

@avennn
Copy link

avennn commented May 23, 2018

@HideOnBushTuT
image 1更多操作里面

@llwcy8801
Copy link

不要使用anticon 使用iconfont 就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants