LiveUI / Awesome

FontAwesome 6 Swift & SwiftUI implementation for iOS, tvOS & macOS
MIT License
97 stars 27 forks source link

Error while generating enums: "cannot convert value of type 'Int' to expected element type 'SwiftVersion'" #42

Closed ghowen closed 2 years ago

ghowen commented 5 years ago

There is something wrong with generating new enums at the moment, possibly something related to Alamofire? Using latest Xcode 10.2 final.

MBP:Generator georg$ ./generate.sh 
Updating https://github.com/SwiftyJSON/SwiftyJSON.git
Updating https://github.com/Alamofire/Alamofire.git
Updating https://github.com/scinfu/SwiftSoup
https://github.com/Alamofire/Alamofire.git @ 4.8.1: error: manifest parse error(s):
/var/folders/9l/skpn8h8s2gn_kjkp2f238nc80000gn/T/TemporaryFile.fdwXre.swift:40:29: error: cannot convert value of type 'Int' to expected element type 'SwiftVersion'
    swiftLanguageVersions: [3, 4]
                            ^
./generate.sh: line 7: ./.build/release/Generator: No such file or directory
\nRequesting data from 'https://github.com/FortAwesome/Font-Awesome/releases/download/5.8.1/fontawesome-free-5.8.1-web.zip'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   619    0   619    0     0   1093      0 --:--:-- --:--:-- --:--:--  1093
100 13.5M  100 13.5M    0     0   806k      0  0:00:17  0:00:17 --:--:-- 1695k
cp: Output/Awesome.swift: No such file or directory
cp: Output/AwesomePro.swift: No such file or directory
MBP:Generator georg$ 
ghowen commented 5 years ago

Seems to be related to an issue with XCode 10.2: https://github.com/Alamofire/Alamofire/issues/2761

ghowen commented 5 years ago

Temporary fix in https://github.com/LiveUI/Awesome/pull/43

ghowen commented 5 years ago

Will leave it open for now and close once Alamofire has solved the issue in their released pod.