johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 566 forks source link

Symbol not found: ___llvm_profile_runtime #232

Closed jalakoo closed 6 years ago

jalakoo commented 6 years ago

Stumped with this one:

> Injection: Loading /Users/developer/Library/Developer/Xcode/DerivedData/sample_app-fwctvcuszzrxoqdlshalqwjdhqtm/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle1.bundle
> Injection: Bundle Load Error Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Users/developer/Library/Developer/Xcode/DerivedData/sample_app-fwctvcuszzrxoqdlshalqwjdhqtm/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle1.bundle/InjectionBundle, 265): Symbol not found: ___llvm_profile_runtime
  Referenced from: /Users/developer/Library/Developer/Xcode/DerivedData/sample_app-fwctvcuszzrxoqdlshalqwjdhqtm/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle1.bundle/InjectionBundle
  Expected in: flat namespace

Presuming the __llvm_profile_runtime is not visible to dynamic libraries. Anyone how to make it visible?

johnno1962 commented 6 years ago

Try turning of test coverage collection if it is on

jalakoo commented 6 years ago

That worked, thx!

chaoszm commented 5 years ago

Try turning of test coverage collection if it is on

same "Symbol not found" problem but because of an inner class in project, I wonder how to turn of test coverage collection?