Macos 代码签名:缺少开发人员目录路径
我正在使用Macos 代码签名:缺少开发人员目录路径,macos,code-signing,Macos,Code Signing,我正在使用codesign命令行实用程序对Atom Electron.app文件夹进行签名。我使用的命令是: codesign --verbose --deep --force --sign "Mac Developer: <MY NAME AND IDENTIFIER HERE>" AdminTool.app/Contents/Frameworks/Squirrel.framework 我查看了先前的StackOverflow线程,该线程与codesign\u allocate
codesign
命令行实用程序对Atom Electron.app文件夹进行签名。我使用的命令是:
codesign --verbose --deep --force --sign "Mac Developer: <MY NAME AND IDENTIFIER HERE>" AdminTool.app/Contents/Frameworks/Squirrel.framework
我查看了先前的StackOverflow线程,该线程与codesign\u allocate helper tool not found
问题有关,我按照它所说的,将DEVELOPER\u DIR
环境变量重新分配到xcrun
错误中的路径。我不确定我是否把事情搞砸了,现在无法签署我的应用程序
如有任何帮助和/或建议,将不胜感激 通过使用
xcode-select--install
安装xcode命令行工具,然后运行以下命令来解决此问题:
xcode-select -s /Applications/Xcode.app/Contents/Developers
我假设这正确地重置了我的DEVELOPER\u DIR路径,这样当我再次运行它时,codesign
就可以找到它
xcode-select -s /Applications/Xcode.app/Contents/Developers