应用程序签名和安装程序包的问题 [英] App signing and package installer issue

查看:302
本文介绍了应用程序签名和安装程序包的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我现在面临的一些问题,当我尝试创建我的分发应用程序。我创建的每个证书,我需要,开发的开发人员安装,根据这里developer.xamarin.com/guides/mac/deployment,_testing,_and_metrics/publishing_to_the_app_store/描述的指导,一切都看起来不错,在bin生成的文件/ release文件夹可以可靠地执行,但是当它开始使用类似的SQLite一些图书馆安装程序生成自身的文件失败

Everyone, i'm facing a few issues when i try to create my app for distribution. i have created every certificate that i need, the Developer an Developer Installer, according to the guide described here developer.xamarin.com/guides/mac/deployment,_testing,_and_metrics/publishing_to_the_app_store/, everything looks fine, the file generated in the bin/release folder can be executed Without issues, but the file that the installer generate itself fails when it start to use some libraries like SQLite

我得到后续的警告,当我建立应用程序

I get the follow warnings when i build the app

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]

- --------------------做----------------------

---------------------- Done ----------------------

Build: 0 errors, 8 warnings

另外这是我的建筑型材
http://postimg.org/image/s4m39p1qx/
http://postimg.org/image/kd5db4xll/

Also this is my building profile http://postimg.org/image/s4m39p1qx/ http://postimg.org/image/kd5db4xll/

推荐答案

好吧,很多搜索,测试后,我做的一个nutsenses,我终于得到一个点的xamarin包生成其实不适合我,因此该解决方案,是由本博客文章由安迪·艾尔maded给出:
http://www.britishideas.com/2011/09/25/creating-package-installers-for-monomac/

Ok, after a lot of searching, testing, a nutsenses made by me, i finally get to one point that the package that xamarin generate actually don't work for me, so the solution, was given by this blog post maded by Andy Ayre: http://www.britishideas.com/2011/09/25/creating-package-installers-for-monomac/

基本上是我必须做的是编译该项目没有任何安装程序包,并采取产生的.app文件并把它放在packagemaker(可从developer.apple.com下载),安装程序文件,这实际上产生的工作就像一个魅力,好了,我的机器上,在另一个地方进行测试。

Basically what i have to do was compile the project without any package installer and take the .app file generated and put it on packagemaker (can be downloaded from developer.apple.com), the installer file that this generate actually work like a charm, well, on my machine, have to test in another place.

但至少,是什么东西,反正,我会让你知道,如果它为我工作。

But at least, is something, anyway, I will let you know if it work for me.

这篇关于应用程序签名和安装程序包的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆