1
私はソース(https://github.com/apple/swift)から迅速に構築しようとしています。ただし、PhaseScriptExecutionをビルドするときにエラーが発生します。ここにエラーメッセージがあります:スウィフトを構築するためのSDKバージョン?
<unknown>:0: error: Swift does not support the SDK 'MacOSX10.11.sdk'
make: *** [/Users/yangwei/Git/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/core/macosx/x86_64/Swift.o] Error 1
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution CMake\ Rules /Users/yangwei/Git/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/core/Swift.build/Debug/add_custom_command_target-8e6e230f23a92c1cda79a3cf59140ab8-Swift.o.build/Script-4123DECAA170465EA6F4D9CC.sh
(1 failure)
SDKのバージョンに関連する問題です。誰が私が使用すべきSDKバージョンを教えてもらえますか?どうすればバージョンにダウングレードできますか?
ありがとうございます!
更新:
私はので、私は迅速かつ他のすべての必要なプロジェクトの迅速-2.2のブランチをチェックアウトしようとしたバージョンの問題に気づきました。私はあなたが最新のスウィフトソースを構築するための新しいXCodeの8ベータ版が必要だと思う
make -f /Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeScripts/ReRunCMake.make
make[1]: *** No rule to make target '/Users/yangwei/Git/llvm/lib/DebugInfo/CodeView/CMakeLists.txt', needed by '/Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeFiles/cmake.check_cache'. Stop.
make: *** [/Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution CMake\ Rules /Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/LLVM.build/Debug/ZERO_CHECK.build/Script-80DAA73EAB654B0EA77D1AEF.sh
(1 failure)
utils/build-script: command terminated with a non-zero exit status 65, aborting
私はので、私は迅速かつ他のすべての必要なプロジェクトの迅速-2.2のブランチをチェックアウトしようとしたバージョンの問題に気づきました。しかし、コマンド 'utils/build-script -x'でビルドしようとすると、' make [1]:***ターゲットを作成するルールがありません '/ Users/yangwei/Git/llvm/lib/DebugInfo/CodeView/CMakeLists.txt '、' /Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeFiles/cmake.check_cache 'で必要です。やめる。 make:*** [/ Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeFiles/ZERO_CHECK]エラー2 コマンド/ bin/shが終了コード2で失敗しました。 ** BUILD FAILED ** ' –
' build'ディレクトリを削除してみてください。 –