ospfranco / sol

MacOS launcher & command palette
MIT License
1.92k stars 89 forks source link

No signing certificate error when running yarn dev #63

Closed s-oram closed 1 year ago

s-oram commented 1 year ago

Hello,

This is an exciting project! I'd like to attempt a contribution if you're open to it.

I cloned the repo, installed dependencies and ran yarn dev and received an error:

error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "24CMR7378R" with a private key was found. (in target 'macOS' from project 'sol')

Is there a way to resolve this error?

ospfranco commented 1 year ago

You need to open the project and remove the certs from the signing configuration

ospfranco commented 1 year ago

Also yarn dev will try to build a archived .app file, you won't be able to get that working without certificates, to run in development mode you should run yarn macos

ospfranco commented 1 year ago

Did you manage to get it working?

s-oram commented 1 year ago

Thanks for following up @ospfranco.

I got past the signing error by changing the signing certificate to "Sign to run locally".

Screen Shot 2022-08-21 at 6 21 35 pm

But run into another error when running yarn macos. The error is unable to open file (in target "macOS" in project "sol") for /Users/shannon/dev/tp/sol/macos/Pods/Target Support Files/Pods-macOS/Pods-macOS.debug.xcconfig:1:1:

The full terminal output is:

yarn macos

yarn run v1.22.19
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ react-native run-macos --scheme macOS --verbose
info Found Xcode workspace "sol.xcworkspace"
info Building (using "xcodebuild -workspace sol.xcworkspace -configuration Debug -scheme macOS")
error Failed to build macOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening sol.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace sol.xcworkspace -configuration Debug -scheme macOS

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Resolve Package Graph

Resolved source packages:
  HotKey: https://github.com/soffes/HotKey @ master
  LaunchAtLogin: git@github.com:sindresorhus/LaunchAtLogin.git @ main

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: 6e4bb42bb004c3c7e50c11d006014a6c
Build description path: /Users/shannon/Library/Developer/Xcode/DerivedData/sol-bvvagbeyknutatgjkgnieejnleob/Build/Intermediates.noindex/XCBuildData/6e4bb42bb004c3c7e50c11d006014a6c-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
/Users/shannon/dev/tp/sol/macos/Pods/Target Support Files/Pods-macOS/Pods-macOS.debug.xcconfig:1:1: error: unable to open file (in target "macOS" in project "sol")
/Users/shannon/dev/tp/sol/macos/Pods/Target Support Files/Pods-macOS/Pods-macOS.debug.xcconfig:1:1: error: unable to open file (in target "macOS" in project "sol")
/Users/shannon/dev/tp/sol/macos/Pods/Target Support Files/Pods-macOS/Pods-macOS.debug.xcconfig:1:1: error: unable to open file (in target "macOS" in project "sol")

2022-08-21 18:20:25.310 xcodebuild[28216:2018027] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-08-21 18:20:25.310 xcodebuild[28216:2018027] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008103-001D29AA34F1001E }
{ platform:macOS, arch:x86_64, id:00008103-001D29AA34F1001E }
{ platform:macOS, name:Any Mac }
** BUILD FAILED **

error Command failed with exit code 1.

Any ideas? I'm not sure what to try next. I'm more familiar with web development.

Thanks

ospfranco commented 1 year ago

did you do a pod install in the macos folder?

ospfranco commented 1 year ago

Going to close this issue for now, since it is not really an issue with the project itself.