IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
950 stars 40 forks source link

Can not install in macOS Monterey (12.0 21A5248p) #173

Open angelmic opened 3 years ago

angelmic commented 3 years ago

Try to use mint install IBDecodable/IBLinter to install it but failed error msg:

▶ mint install IBDecodable/IBLinter
🌱 Finding latest version of IBLinter
🌱 Cloning IBLinter 0.4.27
🌱 Resolving package
🌱 Building package
[1/11] Compiling SourceKit SourceKit.m
[2/11] Compiling Clang_C Clang_C.m
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[3/14] Compiling writer.c
[4/14] Compiling reader.c
[5/14] Compiling parser.c
[6/14] Compiling api.c
[7/14] Compiling emitter.c
[8/14] Compiling scanner.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization/private/var/folders/gm/6hgr32b973373pdvf4hpfz_xyht1z0/T/mint/github.com_IBDecodable_IBLinter/.build/checkouts/Yams/Sources/Yams/Emitter.swift:338:32: warning: initialization of 'UnsafeMutablePointer<yaml_version_directive_t>' (aka 'UnsafeMutablePointer<yaml_version_directive_s>') results in a dangling pointer
            versionDirective = UnsafeMutablePointer(&versionDirectiveValue)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/gm/6hgr32b973373pdvf4hpfz_xyht1z0/T/mint/github.com_IBDecodable_IBLinter/.build/checkouts/Yams/Sources/Yams/Emitter.swift:338:53: note: implicit argument conversion from 'yaml_version_directive_t' (aka 'yaml_version_directive_s') to 'UnsafeMutablePointer<yaml_version_directive_t>' (aka 'UnsafeMutablePointer<yaml_version_directive_s>') produces a pointer valid only for the duration of the call to 'init(_:)'
            versionDirective = UnsafeMutablePointer(&versionDirectiveValue)
                                                    ^~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/gm/6hgr32b973373pdvf4hpfz_xyht1z0/T/mint/github.com_IBDecodable_IBLinter/.build/checkouts/Yams/Sources/Yams/Emitter.swift:338:53: note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
            versionDirective = UnsafeMutablePointer(&versionDirectiveValue)
                                                    ^
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization/private/var/folders/gm/6hgr32b973373pdvf4hpfz_xyht1z0/T/mint/github.com_IBDecodable_IBLinter/.build/checkouts/SourceKitten/Source/SourceKittenFramework/Request.swift:251:58: error: cannot convert value of type 'Int' to expected dictionary value type 'Int64'
                    "key.editor.format.usetabs": useTabs ? 1 : 0
                                                         ^
🌱 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx12.0". Use --verbose to see full output
🌱  Failed to build IBLinter 0.4.27 with SPM

Please Help

phimage commented 3 years ago

you do not really install but use a tools that download sources and compile the program before installing it

you could download from latest release a binary https://github.com/IBDecodable/IBLinter/releases/tag/0.4.27 and move it to a location in your PATH

edit: I have not issue when building myself with Xcode 12.5 in debug