Skip to content
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

对于项目名为中文不成功 #9

Open
HLoveMe opened this issue Mar 14, 2016 · 3 comments
Open

对于项目名为中文不成功 #9

HLoveMe opened this issue Mar 14, 2016 · 3 comments

Comments

@HLoveMe
Copy link

HLoveMe commented Mar 14, 2016

对于项目名包含中文 比如 项目名:项目
其中有个类 class Person:Nsobject{}
那么你得到的ClassName:_xTC项目.Person (可能不准确)
这样就不能通过类名得到 AnyClass

@TsuiOS
Copy link

TsuiOS commented Jun 16, 2016

项目中不止不能使用中文,我在新建项目的时候,提示总是解包失败.最后我才发现我项目名为:Swift-Reflect,项目中出现了横线,然后我重新新建项目SwiftReflect才把问题解决了. 看到你说的不能有中文,我才想到可能是我的项目名有问题

@HLoveMe
Copy link
Author

HLoveMe commented Jun 16, 2016

objc_getClass(项目名.类名)完美解决

@securitgithub
Copy link

中文项目名称可以吗,github?

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

No branches or pull requests

3 participants