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

Adding linker flag for code coverage to prevent ' #569

Closed
wants to merge 1 commit into from

Conversation

thomas-chris
Copy link

While trying to use ZXingify-objc in my project through SPM (as opposed to Cocoapods) I ran into the following crash

Undefined symbols for architecture x86_64
Symbol: ___llvm_profile_runtime
Referenced from: ___llvm_profile_runtime_user in ZXingObjC.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Upon investigation I needed to add a change to the Package.swift file to enable the project to compile

Undefined symbols for architecture x86_64
Symbol: ___llvm_profile_runtime
Referenced from: ___llvm_profile_runtime_user in ZXingObjC.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Remove code comment
@benjohnde
Copy link
Member

Fixed in current master

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 this pull request may close these issues.

2 participants