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

XWVBindingObject.performSelector线程错误 #103

Open
semnyqu opened this issue May 10, 2019 · 4 comments
Open

XWVBindingObject.performSelector线程错误 #103

semnyqu opened this issue May 10, 2019 · 4 comments

Comments

@semnyqu
Copy link

semnyqu commented May 10, 2019

image

performSelector queue.sync: on_queue_fulfillmentToken
00selector: on_queue_fulfillmentToken
以上是调试的信息,出现on_queue_开头的方法,基本都会崩溃
崩溃位置如上图

@semnyqu
Copy link
Author

semnyqu commented May 13, 2019

if let isExcluded = cls.isKeyExcluded(fromScript:), name.withCString(isExcluded) {
return true
}

image

@xwv
请教个问题,这个方法始终没有想明白,前面的参数传入的是哪个,我调试的时候发现isKeyExcluded用的貌似是name;还有后面的withCString怎么能使用一个bool的返回值(单独使用报错);
请楼主赐教,谢谢

@xwv
Copy link
Contributor

xwv commented May 26, 2019

@semnyqu, sorry for my late reply. I'm not actively working on this project.

I need more detail information about the 1st question. What are the results of unit tests(the XWVInvocationTest.swift especially)? It would be helpful if you write a minimaized and runnable code snippet to demonstrate the problem.

Regarding the 2nd question, isExcluded is funtion type, not bool.

@semnyqu
Copy link
Author

semnyqu commented May 28, 2019

@semnyqu, sorry for my late reply. I'm not actively working on this project.

I need more detail information about the 1st question. What are the results of unit tests(the XWVInvocationTest.swift especially)? It would be helpful if you write a minimaized and runnable code snippet to demonstrate the problem.

Regarding the 2nd question, isExcluded is funtion type, not bool.

@xwv
非常感谢你的回复,这个项目是个非常好的swift项目,我正在通过这个项目学习swift语言,并且通过这个翻译成objective-c版本加深自己的swift使用,方便的话可以留下联系方式,想请教些问题,还望不吝赐教,谢谢
[email protected]

@xwv
Copy link
Contributor

xwv commented May 28, 2019

@semnyqu , thank you for your long time support of the project. You can reach me via wechat.

Initially, some files were Objective-C code. I spent a lot of efforts to convert them to Swift, see here and here. I don't know why you want to convert back to Objective-C, you can reference these changes though they are pretty old. Oppositely, I wish to ditch the dependence of Objective-C runtime ultimately.

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

2 participants