问题
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
Extracting embedded content
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
Preparing resources rules
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
Also this is my building profile http://postimg.org/image/s4m39p1qx/ http://postimg.org/image/kd5db4xll/
回答1:
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/
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.
来源:https://stackoverflow.com/questions/24713767/app-signing-and-package-installer-issue