GithubHelp home page GithubHelp logo

fishhook.c crash about fbretaincycledetector HOT 11 OPEN

facebook avatar facebook commented on April 25, 2024
fishhook.c crash

from fbretaincycledetector.

Comments (11)

lexuanquynh avatar lexuanquynh commented on April 25, 2024 1

Hot fix in Xcode 13, push this code into your Podfile:

pod 'MLeaksFinder', :configurations => ['Debug']
  post_install do |installer|
      ## Fix for XCode 12.5
      find_and_replace("Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm",
        "layoutCache[currentClass] = ivars;", "layoutCache[(id<NSCopying>)currentClass] = ivars;")
      ## Fix for XCode 13.0
        find_and_replace("Pods/FBRetainCycleDetector/fishhook/fishhook.c",
        "indirect_symbol_bindings[i] = cur->rebindings[j].replacement;", "if (i < (sizeof(indirect_symbol_bindings) / sizeof(indirect_symbol_bindings[0]))) { \n indirect_symbol_bindings[i]=cur->rebindings[j].replacement; \n }")
  end

push end of the file:

def find_and_replace(dir, findstr, replacestr)
  Dir[dir].each do |name|
      text = File.read(name)
      replace = text.gsub(findstr,replacestr)
      if text != replace
          puts "Fix: " + name
          File.open(name, "w") { |file| file.puts replace }
          STDOUT.flush
      end
  end
  Dir[dir + '*/'].each(&method(:find_and_replace))
end

from fbretaincycledetector.

youngdfb avatar youngdfb commented on April 25, 2024

What version of XCode were you running and what iOS version?

from fbretaincycledetector.

applebest avatar applebest commented on April 25, 2024

您正在运行哪个版本的XCode和哪个iOS版本?

xcode version 11.3.1
iOS version 13.4.1 It runs on my phone

So far I have switched release

from fbretaincycledetector.

simonepauro avatar simonepauro commented on April 25, 2024

I have the same issue on my Xs with iOS 13.2, does not happen on my 6s with iOS 12.4

from fbretaincycledetector.

Auber2071 avatar Auber2071 commented on April 25, 2024

I have the same issue on my air3 iOS 13.3.1 and iPad Pro 12.9-inch (3rd generation) 13.5.

from fbretaincycledetector.

SummerYP avatar SummerYP commented on April 25, 2024

遇到了同样的问题,iOS13.5.1,运行必crash

from fbretaincycledetector.

humoroutlaw avatar humoroutlaw commented on April 25, 2024

When I try to create barcode with "CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"];",it crashes 100% on iOS13 under debug mode, while release mode is workable, same same crash issue with the screenshoot

from fbretaincycledetector.

travishan avatar travishan commented on April 25, 2024

Same Problem.

iOS 14.0 beta 2, XCode 12 beta 2, MacOS Big Sur

from fbretaincycledetector.

FuncTime avatar FuncTime commented on April 25, 2024

Same Problem.

iOS 13.6, XCode 11.6, MacOS 10.15.5

from fbretaincycledetector.

wangwanjie avatar wangwanjie commented on April 25, 2024

Xcode 12.1 macOS 11.0.1 (20B29) the same. When I call +[CIFilter filterWithName:withInputParameters:]

from fbretaincycledetector.

jooyyy avatar jooyyy commented on April 25, 2024

Update fishhook to the latest version, contains .h and .c files; Be care for the renames.

from fbretaincycledetector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.