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

fishhook.c crash #96

Open
applebest opened this issue May 18, 2020 · 11 comments · May be fixed by facebook/fishhook#79
Open

fishhook.c crash #96

applebest opened this issue May 18, 2020 · 11 comments · May be fixed by facebook/fishhook#79

Comments

@applebest
Copy link

applebest commented May 18, 2020

WechatIMG167

@youngdfb
Copy link
Contributor

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

@applebest
Copy link
Author

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

xcode version 11.3.1
iOS version 13.4.1 It runs on my phone

So far I have switched release

@simonepauro
Copy link

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

@Auber2071
Copy link

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

@SummerYP
Copy link

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

@humoroutlaw
Copy link

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

@travishan
Copy link

Same Problem.

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

@FuncTime
Copy link

Same Problem.

iOS 13.6, XCode 11.6, MacOS 10.15.5

@guoxiaomind guoxiaomind linked a pull request Aug 11, 2020 that will close this issue
@wangwanjie
Copy link

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

@jooyyy
Copy link

jooyyy commented Dec 11, 2020

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

@lexuanquynh
Copy link

lexuanquynh commented Oct 13, 2021

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

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

Successfully merging a pull request may close this issue.