Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

crashed on ios 11 #56

Open
penghaibo203 opened this issue Nov 1, 2017 · 10 comments
Open

crashed on ios 11 #56

penghaibo203 opened this issue Nov 1, 2017 · 10 comments

Comments

@penghaibo203
Copy link

added to my app in ios 11, it crashed when retain cycles

@gaoyuqiang
Copy link

me too

@pjocer
Copy link

pjocer commented Nov 21, 2017

me too,and another point is that i cant call keyboard up.
can someone tell me why?

@mayu0418
Copy link

me too

@xinxi053
Copy link

xinxi053 commented Feb 5, 2018

  @try {
    for (id subobject in self.object) {
      if (retainsKeys) {
        FBObjectiveCGraphElement *element = FBWrapObjectGraphElement(self, subobject, self.configuration);
        if (element) {
          [temporaryRetainedObjects addObject:element];
        }
      }
      if (isKeyValued && retainsValues) {
        FBObjectiveCGraphElement *element = FBWrapObjectGraphElement(self,
                                                                     [self.object objectForKey:subobject],  //crashed here, subobject it's a UITableView
                                                                     self.configuration);
        if (element) {
          [temporaryRetainedObjects addObject:element];
        }
      }
    }
  }

@vsravan
Copy link

vsravan commented Feb 8, 2018

I have same issue when I'm compiling from Xcode 9.2 App is crashing.

@nRewik
Copy link

nRewik commented Feb 20, 2018

@xinxi053 same issue.

Does someone know how to solve this ?

@zhangxqq
Copy link

1 I also can't call keyboard up, but I found in release mode is normal, who know why?
2 About the crash I modified FBObjectiveCObject file, do with CALayerArray specially, like this:

  • (NSSet *)allRetainedObjects
    {
    Class aCls = object_getClass(self.object);
    if (!self.object || !aCls) {
    return nil;
    }
    if ([NSStringFromClass(aCls) hasPrefix:@"CALayerArray"]) {
    return nil;
    }
    ......

I test in my project it can use normally, you can try.
Also, the same question have been answerd, the link is: facebook/FBRetainCycleDetector#60,
but the fact is the question is still not sloved.

@LiZhiDaDa
Copy link

me too. carsh and no keyboard.
anyone can solve this question.

@vsravan
Copy link

vsravan commented Sep 19, 2019

Me too, crashing on Device 11.4 and Xcode 10.2 while doing Retain cycle. does anyone has the solution??

@lafayea
Copy link

lafayea commented Oct 23, 2019

me too

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

No branches or pull requests

10 participants