johnno1962 / InjectionApp

Issue Tracking Repo for Injection as an App
MIT License
111 stars 7 forks source link

Symbol not found #36

Open 375662923 opened 6 years ago

375662923 commented 6 years ago

dlopen() error: dlopen(/Users/idu/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval103.dylib, 2): Symbol not found: _OBJCCLASS$_RIIssue Referenced from: /Users/idu/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval103.dylib Expected in: flat namespace in /Users/idu/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval103.dylib

johnno1962 commented 6 years ago

Hi, What is “RI”? Is that a class in a third party framework? Sometimes these are not available to link against.

375662923 commented 6 years ago

RIIssue is a normal class in my project.

johnno1962 commented 6 years ago

Then this is a mystery. I’ve just checked and Objective-C should be working. Are you sure you’re using a debug build? I can TeamViewer if you like. Send you details and a time to injection at john holdsworth.com

qinxingxin commented 6 years ago

I have the same issue dlopen() error: dlopen(/Users/qinxingxin/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib, 2): Symbol not found: _OBJCCLASS$_JDCustomAnimation Referenced from: /Users/qinxingxin/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib in /Users/qinxingxin/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib

johnno1962 commented 6 years ago

This can happen when the class is compiled with “hidden” visibility or build option “Symbols hidden by default" is selected.

julestburt commented 5 years ago

Seeing a similar issue... Loading .dylib - Ignore any duplicate class warning... dlopen() error: dlopen(/Users/julesb/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib, 2): Symbol not found: ___llvm_profile_runtime Referenced from: /Users/julesb/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib Expected in: flat namespace in /Users/julesb/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib

johnno1962 commented 5 years ago

This is normally because you have code test coverage gathering turned on.

julestburt commented 5 years ago

Much appreciated! Getting great results now, and now able to play around and test out...thx!