--sdk
옵션에 대한 몇 가지 다른 옵션을 사용하여 Swift REPL을 실행할 수 있습니다. 당신은 실행할 수 있습니다Swift REPL에서 iphonesimulator sdk와 macosx sdk를 사용하는 차이점은 무엇입니까?
xcrun swift -v -sdk $(xcrun --show-sdk-path --sdk iphonesimulator)
또는
xcrun swift -v -sdk $(xcrun --show-sdk-path --sdk macosx)
도 아주 잘 작동하는 것 및 많은 오류가 발생하지 않습니다
xcrun swift -v -sdk $(xcrun --show-sdk-path --sdk iphoneos)
있습니다.
iphonesimulator sdk 대 macosx sdk를 사용할 때 출력이 어떻게 다릅니 까?