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

When my page used WKWebView,command + s, crash #209

Closed
lanht opened this issue Mar 17, 2020 · 3 comments
Closed

When my page used WKWebView,command + s, crash #209

lanht opened this issue Mar 17, 2020 · 3 comments

Comments

@lanht
Copy link

lanht commented Mar 17, 2020

(lldb) bt

  • thread Plans for supporting tvOS? #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xbad)
    frame #0: 0x0000000110cecde9 libswiftCore.dylibswift_unknownObjectRetain + 9 frame #1: 0x00000001134e2e0a iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 90
    frame Library not loaded #2: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #3: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
    frame Detect project path  #4: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #5: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    frame Load bundle fail if serval Xcode exist. #6: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #7: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
    frame injection make xcode stuck #8: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #9: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
    frame damaged binary.zip #10: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #11: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
    frame Symbol not found: ___llvm_profile_runtime #12: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #13: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    frame Added code coverage info to README.md #14: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #15: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
    frame Support for AppCode #16: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #17: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
    frame Support for Device debugging #18: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #19: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
    frame Improve SwiftSweeper.sweepValue method #20: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #21: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    frame Error loading #22: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #23: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
    frame Re-compilation failed #24: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #25: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
    frame xcode.activeWorkspaceDocument is nil in branch "MAS-version" #26: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #27: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
    frame Injection iii zlli fork #28: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #29: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    frame A suggestion to write injected code in one file #30: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #31: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
    frame Use Xcode9.4 Crash #32: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #33: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
    frame Changes made in development pod not recognized by file watcher and not injected #34: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #35: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
    frame Could not locate compile command #36: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #37: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    frame One of the two will be used. Which one is undefined. #38: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #39: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
    frame Xcode9.4.1,swift4.1, there is no effect #40: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #41: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257
    frame Using storyboard will cause a bug to show only the parent Class View? #42: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277 frame #43: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436
    frame Work with files outside of project directory #44: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #45: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
    frame App Store version do not do anything after selecting project folder #46: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #47: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
    frame Add information about available downloads in README.md #48: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #49: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
    frame *** Could not locate containing project or it's logs. Have you customised the DerivedData path? *** #50: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #51: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
    frame does it support objective-c?  #52: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257 frame #53: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277
    frame how can i update UITableviewCell dynamic #54: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436 frame #55: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
    frame Request: Bring back Ctrl+^ #56: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #57: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
    frame Merge MAS version into master #58: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #59: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    frame Improve file watcher by checking for kFSEventStreamEventFlagItemRenamed #60: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #61: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
    frame Issues using convenience init - Symbol not found ... Expected in: flat namespace #62: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #63: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257
    frame [NSDictionaryM setObject:forKeyedSubscript:] issue #64: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277 frame #65: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436
    frame Related tests cache. #66: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #67: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
    frame Crash in sweepMembers function (avoid unowned ivars) #68: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #69: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
    frame Manual/Auto inject mode? #70: 0x00000001134e2aec iOSInjection`(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
    • frame Log files as they are stored up for injection. #71: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #72: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
      frame Initial setup question #73: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #74: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257
      frame Improve precision of regular expression when injecting storyboards #75: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277 frame #76: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436
      frame Symbol not found #77: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #78: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame Crash while injecting #79: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #80: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Bump version to 1.3 and change DEVELOPMENT_TEAM #81: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #82: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame Feature Vaccine #83: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #84: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame Improve handling of view controller injection in Vaccine #85: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257 frame #86: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277
      frame Oc && Swift when using two language mixes together Error loading  #87: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436 frame #88: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
      frame Option to debug sweep #89: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #90: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
      frame Add log message when chaning Swift classes #91: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #92: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
      frame Running Injection with different XCode names. #93: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #94: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
      frame Injection doesn't seem work when foldername starts with an uppercase character #95: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #96: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257
      frame Inject storyboard: no such file or directory #97: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277 frame #98: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436
      frame Re-compilation failed #99: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #100: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame There's no way to show it #101: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #102: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Injection does not work with Whole Module Optimization #103: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #104: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame Fix issue #98 #105: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #106: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame Crash when working with generics #107: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257 frame #108: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277
      frame It seems not working for iOS 10 #109: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436 frame #110: 0x00000001134e2eb8 iOSInjectionclosure Plans for supporting tvOS? #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264
      frame Injection crashing after running injected code with class cast exception  #111: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15 frame #112: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20
      frame Generated .sh contain "-F <Multiple -F Values>" #113: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer<A1>) throws -> B1) throws -> B1 + 15 frame #114: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812
      frame crash #115: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43 frame #116: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20
      frame Support for Xcode 10.2 #117: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716 frame #118: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257
      frame Support Xcode 10.2 #119: 0x00000001134e1a4d iOSInjectioniOSInjection.SwiftSweeper.sweepMembers(Any) -> () + 1277 frame #120: 0x00000001134e12ec iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1436
      frame pod中的代码无法修改 #121: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #122: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame after running project, change code in viewDidLoad does not work #123: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #124: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Re-compilation failed if the recursive header search paths are set. #125: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #126: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame InjectionIII doesn't work #127: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #128: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame [Suggestion] Facilitate the installation using CocoaPods #129: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #130: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame build failed #131: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #132: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Update storyboard injection for Xcode 10.2 #133: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #134: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame Crash in run xcode10.1 #135: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #136: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame What project directory to select when the main project and sub project are in the peer directory? #137: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #138: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame UIView with programmatic layout #139: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #140: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Injection fail #141: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #142: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame Storyboard hot reload not working with InjectionIII 1.5.2 on Xcode 10.2 #143: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #144: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame Symbol not found: _OBJC_CLASS_$_SwiftObject #145: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #146: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame New files added from AppCode aren't picked up #147: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #148: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Injection can not work with project in path of iCloud directory in Mac  #149: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #150: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame dlopen() error Expected in: flat namespace #151: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #152: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame command+s crash #153: 0x00000001134e2eb8 iOSInjectionclosure #1 (Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> () in (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 264 frame #154: 0x00000001134e2eef iOSInjectionreabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 15
      frame Symbol not found: OBJC_CLASS #155: 0x00000001134e2f54 iOSInjectionpartial apply forwarder for reabstraction thunk helper from @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@error @owned Swift.Error) to @escaping @callee_guaranteed (@unowned Swift.UnsafePointer<Swift.Optional<Swift.AnyObject>>) -> (@out (), @error @owned Swift.Error) + 20 frame #156: 0x0000000110af980f libswiftCore.dylibSwift.UnsafePointer.withMemoryRebound<A, B>(to: A1.Type, capacity: Swift.Int, _: (Swift.UnsafePointer) throws -> B1) throws -> B1 + 15
      frame Inject swiftui #157: 0x00000001134e2aec iOSInjection(extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 2812 frame #158: 0x00000001134e2fdb iOSInjection@objc (extension in iOSInjection):__C.NSObject.legacySwiftSweep() -> () + 43
      frame Remove redundant use of Xcode scripting interface #159: 0x00000001134e1534 iOSInjectionpartial apply ObjC forwarder + 20 frame #160: 0x00000001134e1404 iOSInjectioniOSInjection.SwiftSweeper.sweepInstance(Swift.AnyObject) -> () + 1716
      frame Tidy up #161: 0x00000001134e07f9 iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3257 frame #162: 0x00000001134e09fe iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 3774
      frame Xcode10.2.1 💉 *** Re-compilation failed  #163: 0x00000001134e01cd iOSInjectioniOSInjection.SwiftSweeper.sweepValue(Any) -> () + 1677 frame #164: 0x00000001134dc72d iOSInjectionstatic iOSInjection.SwiftInjection.inject(tmpfile: Swift.String) throws -> () + 8957
      frame Library not loaded: @rpath/XCTest.framework/XCTest #165: 0x00000001134d9ac7 iOSInjectionstatic iOSInjection.SwiftInjection.inject(oldClass: Swift.Optional<Swift.AnyObject.Type>, classNameOrFile: Swift.String) -> () + 487 frame #166: 0x00000001134d9c6e iOSInjection@objc static iOSInjection.SwiftInjection.inject(oldClass: Swift.Optional<Swift.AnyObject.Type>, classNameOrFile: Swift.String) -> () + 142
      frame Add which Swift version(s) this works with to README—Swift 4, 4.2, and/or 5? #167: 0x000000011348e627 iOSInjection__34-[InjectionClient runInBackground]_block_invoke.1283 + 407 frame #168: 0x0000000111451df0 libdispatch.dylib_dispatch_call_block_and_release + 12
      frame Updated README #169: 0x0000000111452d64 libdispatch.dylib_dispatch_client_callout + 8 frame #170: 0x0000000111460e1c libdispatch.dylib_dispatch_main_queue_callback_4CF + 1500
      frame I found that it doesn't work on Xib file changes #171: 0x00007fff23afb699 CoreFoundation__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 frame #172: 0x00007fff23af62f9 CoreFoundation__CFRunLoopRun + 2329
      frame How to debug the client code in the InjectionBundle target. #173: 0x00007fff23af56b6 CoreFoundationCFRunLoopRunSpecific + 438 frame #174: 0x00007fff3815cbb0 GraphicsServicesGSEventRunModal + 65
      frame Follow symbolic links #175: 0x00007fff47162a67 UIKitCoreUIApplicationMain + 1621 frame #176: 0x000000010ec95970 CheeGumain(argc=1, argv=0x00007ffee12c1d60) at main.m:15:16
      frame Operation not permitted error #177: 0x00007fff5123bcf5 libdyld.dylib`start + 1
      (lldb)
@johnno1962
Copy link
Owner

Hi, when this happens you have to avoid using an @objc injected method and instead use the notification “INJECTION_BUNDLE_NOTIFICATION". The “sweep” to locate instances of an injected class has it's limitations.

@lanht
Copy link
Author

lanht commented Mar 18, 2020

yes, that's the way I do it of "INJECTION_BUNDLE_NOTIFICATION" ,but still crash

override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        super.init(nibName: nil, bundle: nil)
        let name = NSNotification.Name("INJECTION_BUNDLE_NOTIFICATION")
        NotificationCenter.default.addObserver(self, selector: #selector(inject(notification:)), name: name, object: nil)
    }
@objc func inject(notification: Notification) {

    }

@johnno1962
Copy link
Owner

You need to remove the old @objc injected method if it is still there or it will still attempt the “sweep”.

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