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

FBRetainCycleDetector error in private library #104

Closed
FunnyerFeng opened this issue Aug 30, 2020 · 13 comments
Closed

FBRetainCycleDetector error in private library #104

FunnyerFeng opened this issue Aug 30, 2020 · 13 comments

Comments

@FunnyerFeng
Copy link

截屏2020-08-30 下午10 30 53

@FunnyerFeng
Copy link
Author

过程是,想把CocoaDebug 制作成私有库,在制作私有库的时候,已经把FBRetainCycleDetector 传到私有源,然后针对CocoaDebug做pod lib lint的时候,遇到了下面的报错,一直过不了,希望能帮忙解答一下应该如何处理?

  • ERROR | [iOS] xcodebuild: FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.mm:25:10: error: returning block that lives on the local stack
    • ERROR | [iOS] xcodebuild: FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.mm:40:10: error: returning block that lives on the local stack

@CocoaDebug CocoaDebug changed the title 引入后,FBRetainCycleDetector 内有错误提示 FBRetainCycleDetector error in private library Aug 31, 2020
@CocoaDebug
Copy link
Owner

This .m file not using MRC, please use ARC.

@FunnyerFeng
Copy link
Author

1、 I clone FBRetainCycleDetector, change source, make it to Private libraries(becuse CocoaDebug depend it)
2、I clone CocoaDebug,, change source, make it to Private libraries,when “pod lib lint”,There are a few mistakes,Tip me:
ERROR | [iOS] xcodebuild: FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.mm:25:10: error: returning block that lives on the local stack
ERROR | [iOS] xcodebuild: FBRetainCycleDetector/FBRetainCycleDetector/Filtering/FBStandardGraphEdgeFilters.mm:40:10: error: returning block that lives on the local stack

I haven't changed anything,just clone、change source、pod lib lint
Please advise how to deal with this error

@8secz-johndpope
Copy link
Contributor

I'm seeing this crash here - is it possible to disable FBRetainCycleDetector without removing cocoadebug completely?
Screen Shot 2020-09-17 at 5 36 47 pm

@hdNguyenPTR
Copy link

It's happening on newer phones / iphone 11 - older phones is fine. seems like it's threading issue.

@CocoaDebug
Copy link
Owner

CocoaDebug commented Sep 18, 2020

You can just remove FBRetainCycleDetector

@pongsakorn-onsri
Copy link

pongsakorn-onsri commented Nov 9, 2020

Any news? I found this issue today and don't know how to remove just FBRetainCycleDetector. So I need to change to older version to 1.3.5 for remove this dependency.

P.S. I crashed on iPhone XR, iOS 14.1.0

@8secz-johndpope
Copy link
Contributor

8secz-johndpope commented Nov 9, 2020 via email

@CocoaDebug
Copy link
Owner

Next version will remove FBRetainCycleDetector

@CocoaDebug
Copy link
Owner

Please update to the latest version

@zhaozzq
Copy link

zhaozzq commented Nov 19, 2020

FBRetainCycleDetector still there

@CocoaDebug
Copy link
Owner

FBRetainCycleDetector still there

Will it still crash?

@CocoaDebug
Copy link
Owner

version 1.5.5 has removed FBRetainCycleDetector now.

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

6 participants