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

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

Open
angelmic opened this issue Jun 17, 2021 · 1 comment
Open

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

angelmic opened this issue Jun 17, 2021 · 1 comment

Comments

@angelmic
Copy link

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
Copy link
Member

phimage commented Jun 17, 2021

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

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

2 participants