zxingify / zxingify-objc

An Objective-C Port of ZXing
Apache License 2.0
3.06k stars 752 forks source link

Adding linker flag for code coverage to prevent ' #569

Closed thomas-chris closed 11 months ago

thomas-chris commented 2 years ago

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_profileruntime 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

benjohnde commented 11 months ago

Fixed in current master