应用程序签名和程序包安装程序问题

本文关键字:程序 安装 问题 包安装 应用程序 | 更新日期: 2023-09-27 18:12:41

大家好,当我试图创建用于分发的应用程序时,我遇到了一些问题。我已经创建了我需要的每一个证书,开发者和开发者安装程序,根据这里描述的指南Developer.xamarin.com/guides/mac/deployment,_testing,_and_metrics/publishing_to_the_app_store/,一切看起来都很好,在bin/release文件夹中生成的文件可以毫无问题地执行,但是当安装程序开始使用一些库(如SQLite (时,它自己生成的文件会失败

当我构建应用时,我收到以下警告

Building: Touring (Release)
Detecting code signing identity...
Code Signing Identity: "Developer ID Application: Melvin Starlin Gonzalez Cerda (4J7DT37GUB)"
App ID: "com.starlingonzalez.touring"
Performing main compilation...
Skipping project since output files are up to date
Build complete -- 0 errors, 0 warnings

提取嵌入内容

    Merging Mono Runtime into app bundle
    /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp -nolink "-minos=10.8" --sdkroot "/Applications/Xcode.app/Contents/Developer" -o "/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release" -n "Touring.MacOSX" --profile "4.5" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Drawing.dll" -a "/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll" -a "/Users/starlingonzalez/Desktop/TouringProject/Touring/packages/Newtonsoft.Json.6.0.3/lib/net40/Newtonsoft.Json.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Net.Http.dll" -a "/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/System.Core.dll" "/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release/Touring.MacOSX.exe"
    warning MM2006: Native library 'libfam.so.0.dylib' was referenced but could not be found.
    warning MM2006: Native library 'libgamin-1.so.0.dylib' was referenced but could not be found.
warning MM2006: Native library 'libasound.so.2.dylib' was referenced but could not be found.
warning MM2006: Native library 'libX11.dylib' was referenced but could not be found.
warning MM2006: Native library 'libwinspool.drv.dylib' was referenced but could not be found.
warning MM2006: Native library 'libcups.dylib' was referenced but could not be found.
warning MM2006: Native library 'libgda-2.dylib' was referenced but could not be found.
warning MM2006: Native library 'libodbc32.dylib' was referenced but could not be found.
bundling complete

准备资源规则

Signing native libraries
codesign -v --force --sign "Developer ID Application: Melvin Starlin Gonzalez Cerda (4J7DT37GUB)" "/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release/Touring.MacOSX.app/Contents/MonoBundle/libMonoPosixHelper.dylib"
/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release/Touring.MacOSX.app/Contents/MonoBundle/libMonoPosixHelper.dylib: signed Mach-O thin (i386) [libMonoPosixHelper]
Signing application
codesign -v --force --sign "Developer ID Application: Melvin Starlin Gonzalez Cerda (4J7DT37GUB)" "--resource-rules=/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release/Touring.MacOSX.app/Contents/ResourceRules.plist" "/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release/Touring.MacOSX.app"
/Users/starlingonzalez/Desktop/TouringProject/Touring/Touring.MacOSX/bin/Release/Touring.MacOSX.app: signed bundle with Mach-O thin (i386) [com.starlingonzalez.touring]

----------------------完成------------------

Build: 0 errors, 8 warnings

这也是我的建筑简介http://postimg.org/image/s4m39p1qx/http://postimg.org/image/kd5db4xll/

应用程序签名和程序包安装程序问题

好吧,经过大量的搜索、测试和我的疯狂,我终于得出了一点,xamarin生成的包实际上不适合我,所以Andy Ayre的这篇博客文章给出了解决方案:http://www.britishideas.com/2011/09/25/creating-package-installers-for-monomac/

基本上,我要做的是在没有任何软件包安装程序的情况下编译项目,并将生成的.app文件放在packagemaker上(可以从developer.apple.com下载(,这个生成的安装程序文件实际上很有魅力,嗯,在我的机器上,必须在另一个地方进行测试。

但至少,无论如何,我会让你知道它是否适合我。