Hello, i think you're correct. The SwiftPM think that i want to build for macOS, and when i try to typing import appk
, then SourceKit-LSP
shows AppKit
as Module
.
I've try to change the sysroot
into iPhone, but no luck. I try to change the sysroot
into iPhone because from this article, maybe when the sysroot
changed into iPhone, then SwiftPM know that i want to build the package for iOS, not for macOS.
Please check my screenshoots below:
-
I try to change build type/
sysroot
into iOS, and warning sayssysroot
still inMacOSX
:
-
I try to type
UIK
andSourceKit-LSP
doesn't give anything:
-
I try to type
appk
andSourceKit-LSP
works perfectly, maybe like you says, SwiftPM treat my package as formacOS
build, notiOS
build:
Even when i try to generate simple iOS
project from XCode, and run it using NeoVim
, the SourceKit-LSP
still treat the project as for macOS
build:
Maybe SourceKit-LSP
hate NeoVim
, mate.
Thank you for your response, and have a good day