CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
795 stars 107 forks source link

Fail to build in Xcode 12 beta #196

Closed tantakan closed 4 years ago

tantakan commented 4 years ago

The following error occurs on the Carthage build:

Undefined symbols for architecture armv7:
  "type metadata for Swift._StringObject.Variant", referenced from:
      outlined init with take of Swift._StringObject.Variant in XMLDecoder.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

environment: Xcode Version: 12 beta 3 Carthage: 0.35.0

related issue: Undefined symbol: type metadata for Swift._StringObject.Variant https://developer.apple.com/forums/thread/649918

MaxDesiatov commented 4 years ago

Thank you for reporting this. Unfortunately, it seems to be caused by an Xcode bug, so I'm not sure what can be done about that at the moment. If it persists in GM or maybe even later betas we'll need to start looking for some workaround. PRs are very welcome, as usual 🙂

tantakan commented 4 years ago

Thank you for your reply, but it looks fixed in Xcode 12 beta4 (String issue) 👀