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

Linker issues w/ Carthage archive #11

Open
yhkaplan opened this issue Aug 4, 2020 · 0 comments
Open

Linker issues w/ Carthage archive #11

yhkaplan opened this issue Aug 4, 2020 · 0 comments

Comments

@yhkaplan
Copy link
Owner

yhkaplan commented Aug 4, 2020

solutions

  • give up on making it a static library and go w/ regular dynamic one?
  • give up on making archive altogher
  • make sure Reg and Sukar are linked properly

manually

carthage fetch "https://github.com/yhkaplan/credit-card-scanner.git"
(cd Carthage/Checkouts/credit-card-scanner/ && swift package generate-xcodeproj)
carthage build --platform $PLATFORM_NAME credit-card-scanner
ld: warning: Could not find or use auto-linked framework 'Reg'
Undefined symbols for architecture x86_64:
  "Reg.Regex.init(stringLiteral: Swift.String) -> Reg.Regex", referenced from:
      closure #1 (__C.VNRequest, Swift.Error?) -> () in CreditCardScanner.ImageAnalyzer.requestHandler.getter : (__C.VNRequest, Swift.Error?) -> ()? in CreditCardScanner(ImageAnalyzer.o)
  "Reg.Regex.captures(in: Swift.String) -> [Swift.String]", referenced from:
      closure #1 (__C.VNRequest, Swift.Error?) -> () in CreditCardScanner.ImageAnalyzer.requestHandler.getter : (__C.VNRequest, Swift.Error?) -> ()? in CreditCardScanner(ImageAnalyzer.o)
  "Reg.Regex.firstMatch(in: Swift.String) -> Swift.String?", referenced from:
      closure #1 (__C.VNRequest, Swift.Error?) -> () in CreditCardScanner.ImageAnalyzer.requestHandler.getter : (__C.VNRequest, Swift.Error?) -> ()? in CreditCardScanner(ImageAnalyzer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
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

1 participant