twostraws / CodeScanner

A SwiftUI view that is able to scan barcodes, QR codes, and more, and send back what was found.
MIT License
1.01k stars 286 forks source link

For SwiftUI 100Days studing "Hot Prospects" in day82, MacBook Pro 2021 m1 pro chip, Xcode14.1, Meeting Error #93

Closed anotcat closed 1 year ago

anotcat commented 1 year ago
  1. Error Info

    Link Hot Prospects (arm64):
    Undefined symbols for architecture arm64:
    "_$s11CodeScanner0aB4ViewV7SwiftUI0C0AAMc", referenced from:
      _$s11CodeScanner0aB4ViewVAC7SwiftUI0C0AAWl in ProspectsView.o
    ...
    ...
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
  2. In ProspectsView.swift

    import SwiftUI
    import CodeScanner
    struct ProspectsView: View {...}
  3. I`am in google can not solve the error

nathanfallet commented 1 year ago

How did you add the package to your app? Can you provide a reproducible example?

anotcat commented 1 year ago

I found out that it was due to an error in importing this package. first I should starred this package, and then use my GitHub account in Xcode to add this package.