lencx / Noi

🚀 Power Your World with AI - Explore, Extend, Empower.
https://noi.nofwl.com
6.22k stars 449 forks source link

Failed to start on MB Pro M1 #18

Closed oxoocoffee closed 8 months ago

oxoocoffee commented 8 months ago

Hello

Downloaded latest version Noi_macos_0.2.1-arm64.dmg After installing and trying to run I get an error message about app damage. Here is the popup message.

“Noi” is damaged and can’t be opened. You should move it to the Trash.

In /Applications/Noi.app/Contents/MacOS

$ otool -L ./Noi 
    @rpath/Electron Framework.framework/Electron Framework (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)

I am also attaching a list of all files in Noi.app Noi.tree.txt

I do have 3rd party apps checked in Security settings. Also, do not see Noi there on the first run to allow as it is the case when running an unsigned application from 3rd party.

Cheers

oxoocoffee commented 8 months ago

I reinstalled it to ~/Applications and attempted to start from the command line and this time around got an initial screen.

$  ./Noi 
12:07:01.367 › [config] noi.conf not exists, create it
12:07:01.378 › [config] noi.mode not exists, create it
12:07:01.384 › [config] user.mode not exists, create it
12:07:01.393 › [config] cache.mode not exists, create it
12:07:01.398 › [prompts] prompts not exists, create it
12:07:01.407 › [i18n] ready...
2024-01-29 12:07:02.077 Noi Helper (Renderer)[84240:1341625] CoreText note: Client requested name ".PingFangSC-Semibold", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2024-01-29 12:07:02.077 Noi Helper (Renderer)[84240:1341625] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2024-01-29 12:07:02.080 Noi Helper (Renderer)[84240:1341625] CoreText note: Client requested name ".PingFangSC-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2024-01-29 12:07:02.081 Noi Helper (Renderer)[84240:1341625] CoreText note: Client requested name ".PingFangSC-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2024-01-29 12:07:09.864 Noi[84229:1341375] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
lencx commented 8 months ago

please try the following command in Terminal:

xattr -cr /Applications/Noi.app
Davdav05 commented 7 months ago

@lencx What's the reason for this message in the first place, and why does bypassing security features fix it?

lencx commented 7 months ago

@Davdav05 You must become an Apple developer and package the app using an Apple ID to be officially recognized. I have not paid the fee to become a developer with Apple, so it will be blocked by security.