EFPrefix / EFQRCode

A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
https://efprefix.github.io/EFQRCode
MIT License
4.58k stars 485 forks source link

Fix build on Xcode 14.3 beta #153

Closed giginet closed 1 year ago

giginet commented 1 year ago

I tried to build EFQRCode on Xcode 14.3 beta. Then this error is raised.

$ swift build
Fetching https://github.com/ApolloZhu/swift_qrcodejs.git
Fetched https://github.com/ApolloZhu/swift_qrcodejs.git (0.99s)
Computing version for https://github.com/ApolloZhu/swift_qrcodejs.git
Computed https://github.com/ApolloZhu/swift_qrcodejs.git at 2.2.2 (0.64s)
Creating working copy for https://github.com/ApolloZhu/swift_qrcodejs.git
Working copy of https://github.com/ApolloZhu/swift_qrcodejs.git resolved at 2.2.2
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
/Users/giginet/.ghq/github.com/EFPrefix/EFQRCode/Source/EFIntSize.swift:32:1: error: @objcMembers attribute used without importing module 'Foundation'
@objcMembers
^~~~~~~~~~~~
/Users/giginet/.ghq/github.com/EFPrefix/EFQRCode/Source/EFIntSize.swift:32:1: error: @objcMembers attribute used without importing module 'Foundation'
@objcMembers
^~~~~~~~~~~~
/Users/giginet/.ghq/github.com/EFPrefix/EFQRCode/Source/EFIntSize.swift:32:1: error: @objcMembers attribute used without importing module 'Foundation'
@objcMembers
^~~~~~~~~~~~
[23/23] Compiling EFQRCode UIImage+.swift

I added import Foundation to avoid implicit importing.

ApolloZhu commented 1 year ago

Tested and confirmed. Thank you very much!