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

Symbol not found: __llvm_gcda_emit_arcs #275

Open
davisford opened this issue Feb 21, 2019 · 7 comments
Open

Symbol not found: __llvm_gcda_emit_arcs #275

davisford opened this issue Feb 21, 2019 · 7 comments

Comments

@davisford
Copy link

Hi, I'm using XCode 10.1

I had hit #274 and so I turned off test coverage in the scheme.

screen shot 2019-02-21 at 3 42 37 pm

Now, I'm hitting this:

💉 *** Compiling /Users/dford/git/myproject/Classes/Controllers/AppUpdateViewController.m ***
💉 Loading .dylib - Ignore any duplicate class warning...
💉 *** dlopen() error: dlopen(/Users/dford/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib, 2): Symbol not found: _llvm_gcda_emit_arcs
  Referenced from: /Users/dford/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib
  Expected in: flat namespace

So I tried turning off coverage in the linker settings, to no avail. Any idea how to work past this issue?

screen shot 2019-02-21 at 3 24 30 pm

@davisford
Copy link
Author

Also did a full clean and rebuild, to no avail.

@johnno1962
Copy link
Owner

Not encountered this exact error before, You may not be able to inject that file. Any ideas @zenangst?

@zenangst
Copy link
Collaborator

This is a new one for me, but then again I only use Swift these days. @davisford you reckon that this could be replicated in an example project so that we could try it out and test it in isolation?

@davisford
Copy link
Author

I now realize that I posted this in the old injection repo. I am using InjectionIII I believe. I installed it via the App Store on Mojave. Does that make a difference at all? I can look at trying to create a demo project.

@HighwayLaw
Copy link

I have solved this by setting
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
GCC_GENERATE_TEST_COVERAGE_FILES = NO.
If you don't need code coverage, this would be a good way.
@davisford @johnno1962 @zenangst

@johnno1962
Copy link
Owner

Thanks for letting us know @lhwcqu. It was a bit of a mystery. What version of Xcode is this?

@HighwayLaw
Copy link

Thanks for letting us know @lhwcqu. It was a bit of a mystery. What version of Xcode is this?

That's all right. Am using Xcode 10.2.1

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

4 participants