shadowmint / ue4-mac-setup

Setup mac for unreal development
4 stars 4 forks source link

./GenerateProjectFiles.sh error #1

Open noodle1983 opened 5 years ago

noodle1983 commented 5 years ago

./GenerateProjectFiles.sh

Setting up Unreal Engine 4 project files...

Setting up Mono Generating data for project indexing... 0%Triggered an exception while looking for SDK directory in Xcode.app System.IO.DirectoryNotFoundException: Directory '/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs' not found. at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in :0 at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in :0 at System.IO.Directory.GetDirectories (System.String path, System.String searchPattern) [0x00000] in :0 at System.IO.Directory.GetDirectories (System.String path) [0x00000] in :0 at UnrealBuildTool.AppleToolChainSettings.SelectSDK (System.String BaseSDKDir, System.String OSPrefix, System.String& PlatformSDKVersion, Boolean bVerbose) [0x00000] in :0 WARNING: Exception while generating include data for UE4Editor: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for BlankProgram: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for BuildPatchTool: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for CrashReportClient: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealLaunchDaemon: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for DsymExporter: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UE4EditorServices: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealAtoS: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for MayaLiveLinkPlugin2016: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for MayaLiveLinkPlugin2017: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for MayaLiveLinkPlugin2018: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for MinidumpDiagnostics: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for ShaderCompileWorker: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for SlateViewer: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for SymbolDebugger: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for TestPAL: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealCEFSubProcess: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealFileServer: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealFrontend: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealHeaderTool: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealLightmass: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealPak: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealVersionSelector: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for UnrealWatchdog: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs WARNING: Exception while generating include data for BootstrapPackagedGame: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs Generating data for project indexing... 100% Writing project files... 0% ERROR: UnrealBuildTool Exception: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs

noodle1983 commented 5 years ago

solution: sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms /Library/Developer/CommandLineTools/

https://forums.unrealengine.com/development-discussion/c-gameplay-programming/102037-os-x-can-t-create-new-project

muhammed-kizilkaya commented 3 years ago

Hello, I am getting the same error in kali linux. What is your solution suggestion?

cosic commented 2 years ago

Installing the command line tool in Xcode preferences helped me fix this problem image

Rick-Weng commented 2 years ago

您好,我在 kali linux 中遇到了同样的错误。您的解决方案是什么?

Have u sloved the issue?