没有 xcode 的协同设计 - 错误代码对象根本没有签名
Codesign without xcode - error code object is not signed at all
我有一个使用非 xcode 工具开发的 macOS .app。我要签名,以便用户可以从我的网站下载。
我手动创建了我的 "info.plist" 文件,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>mydemo</string>
<key>CFBundleName</key>
<string>md</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.company.mydemo</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>md</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleIconFile</key>
<string>mydemo.icns</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
<string>disk</string>
<string>****</string>
</array>
</dict>
</array>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
我有一个 Apple 开发者帐户并且在
https://developer/apple/account/mac/certificate 按照说明创建 Developer ID 申请证书。
我正在做这个
codesign -s "Certificate Developer ID Company Name" mydemo.app
但是报错
mydemo.app: code object is not signed at all In subcomponent:
mydemo.app/Contents/info.plist
我的 .app 文件不包含其他库 - 只是可执行文件 mydemo.app/Contents/MacOS/mydemo
我想签到成功mydemo.app。我在 mydemo.zip 分发我的应用程序,我的目标是当人们下载时。解压并将其拖入/Applications 它将运行更容易
info.plist
文件名应大写:
Info.plist
改正后应该可以协同设计,没有问题。
我有一个使用非 xcode 工具开发的 macOS .app。我要签名,以便用户可以从我的网站下载。
我手动创建了我的 "info.plist" 文件,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>mydemo</string>
<key>CFBundleName</key>
<string>md</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.company.mydemo</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>md</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleIconFile</key>
<string>mydemo.icns</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
<string>disk</string>
<string>****</string>
</array>
</dict>
</array>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
我有一个 Apple 开发者帐户并且在 https://developer/apple/account/mac/certificate 按照说明创建 Developer ID 申请证书。
我正在做这个
codesign -s "Certificate Developer ID Company Name" mydemo.app
但是报错
mydemo.app: code object is not signed at all In subcomponent: mydemo.app/Contents/info.plist
我的 .app 文件不包含其他库 - 只是可执行文件 mydemo.app/Contents/MacOS/mydemo
我想签到成功mydemo.app。我在 mydemo.zip 分发我的应用程序,我的目标是当人们下载时。解压并将其拖入/Applications 它将运行更容易
info.plist
文件名应大写:
Info.plist
改正后应该可以协同设计,没有问题。