Open ZehuaZhang opened 2 years ago
Not been able to repro this. Does the latest commit help at all? Will look to disable signing too by default
I just pulled the latest and encountered build errors with Mac builds (normal and M1), it seems the latest has added another bug for referencing external libs
e.g. It tries to find libMoltenVK
in root/build/lumos/external
, but instead it should find in root/lumos/external
CompileAssetCatalog /Lumos/bin/Debug-macosx-/Runtime.app/Contents/Resources /Lumos/Resources/AppIcons/Assets.xcassets (in target 'Runtime' from project 'Runtime')
cd /Lumos/build
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Lumos/bin-int/Debug-macosx-/obj/Debug/Runtime/Runtime.build/assetcatalog_dependencies --output-partial-info-plist /Lumos/bin-int/Debug-macosx-/obj/Debug/Runtime/Runtime.build/assetcatalog_generated_info.plist --app-icon AppIcon --enable-on-demand-resources NO --development-region en --target-device mac --minimum-deployment-target 10.15 --platform macosx --compile /Lumos/bin/Debug-macosx-/Runtime.app/Contents/Resources /Lumos/Resources/AppIcons/Assets.xcassets
** BUILD FAILED **
The following build commands failed:
CpResource /Lumos/bin/Debug-macosx-/Runtime.app/Contents/Resources/libMoltenVK.dylib /Lumos/build/Lumos/External/vulkan/libs/macOS/libMoltenVK.dylib (in target 'Runtime' from project 'Runtime')
Hopefully latest dev branch should fix your issues
Build is successful, but the Runtime.app
cannot be opened
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Runtime [62434]
Path: /Users/USER/*/Runtime.app/Contents/MacOS/Runtime
Identifier: Runtime
Version: alpha (0.2)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2022-07-07 14:51:39.6691 -0700
OS Version: macOS 12.4 (21F79)
Report Version: 12
Bridge OS Version: 6.5 (19P5071)
Anonymous UUID: 4C116DDD-7C2E-A8E2-FE93-C334B692990C
Time Awake Since Boot: 630000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 JobSystem_10 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [62434]
VM Region Info: 0 is not in any region. Bytes before following region: 4384550912
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10556f000-106db3000 [ 24.3M] r-x/r-x SM=COW ...MacOS/Runtime
Thread 0 Crashed:: JobSystem_10 Dispatch queue: com.apple.main-thread
0 ??? 0x0 ???
1 Runtime 0x105b5af73 Lumos::Graphics::VKPhysicalDevice::VKPhysicalDevice() + 179 (VKDevice.cpp:40)
2 Runtime 0x105b5ca85 Lumos::Graphics::VKPhysicalDevice::VKPhysicalDevice() + 21 (VKDevice.cpp:36)
3 Runtime 0x105b5db07 Lumos::Reference<Lumos::Graphics::VKPhysicalDevice> Lumos::CreateSharedPtr<Lumos::Graphics::VKPhysicalDevice>() + 55 (Reference.h:542)
4 Runtime 0x105b5d0d1 Lumos::Graphics::VKDevice::Init() + 49 (VKDevice.cpp:286)
5 Runtime 0x105b397cf Lumos::Graphics::VKContext::Init() + 719 (VKContext.cpp:129)
6 Runtime 0x105a56b97 Lumos::GLFWWindow::GLFWWindow(Lumos::WindowDesc const&) + 1239 (GLFWWindow.cpp:59)
7 Runtime 0x105a5845d Lumos::GLFWWindow::GLFWWindow(Lumos::WindowDesc const&) + 29 (GLFWWindow.cpp:42)
8 Runtime 0x105a5c7a0 Lumos::GLFWWindow::CreateFuncGLFW(Lumos::WindowDesc const&) + 48 (GLFWWindow.cpp:465)
9 Runtime 0x10569cbdf Lumos::Window::Create(Lumos::WindowDesc const&) + 239 (Window.cpp:17)
10 Runtime 0x1055c13cf Lumos::Application::Init() + 1119 (Application.cpp:195)
11 Runtime 0x105573a0b Runtime::Init() + 1451 (Runtime.cpp:49)
12 Runtime 0x105c24ee9 Lumos::MacOSOS::Run() + 425 (MacOSOS.mm:34)
13 Runtime 0x105572bf4 main + 132 (EntryPoint.h:74)
14 dyld 0x11a40751e start + 462
The engine looks promising
But after I build it, Runtime.app launched and crashed immediately. My laptop is intel-based not M1
Also when building there's always an error for
No Code Signing
, had to openbuild\runtime.xcodeproj
and remove team and disable code signing everytime.