我正在尝试存档构建以便分发到应用程序商店,但在存档过程中,我不断收到来自Xamarin Studio的异常弹出窗口,说明如下:
“发生了错误 - 无法存档应用包。空字符串不被视为有效值”
签署应用程序时发生异常:
'System.ArgumentException: An empty string is not considered a valid value.
at System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) [0x00081] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/corlib/System/Enum.cs:523
at System.Enum.Parse (System.Type enumType, System.String value) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/corlib/System/Enum.cs:453
at Xamarin.MacDev.PropertyListFormat+XmlFormat+Context.ReadObjectHead () [0x00001] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/Xamarin.MacDev/PListObject.cs:1737
at Xamarin.MacDev.PropertyListFormat+XmlFormat+Context..ctor (System.Xml.XmlReader reader) [0x0000f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/Xamarin.MacDev/PListObject.cs:1726
at Xamarin.MacDev.PropertyListFormat+XmlFormat.StartReading (System.IO.Stream input) [0x0008e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/Xamarin.MacDev/PListObject.cs:1702
at Xamarin.MacDev.PropertyListFormat.CreateReadContext (System.IO.Stream input) [0x00019] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/Xamarin.MacDev/PListObject.cs:1070
at Xamarin.MacDev.PDictionary.FromFile (System.String fileName, System.Boolean& isBinary) [0x00026] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/Xamarin.MacDev/PListObject.cs:664
at Xamarin.MacDev.PDictionary.FromFile (System.String fileName) [0x00004] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/Xamarin.MacDev/PListObject.cs:653
at MonoDevelop.IPhone.IPhoneProject.Archive (IProgressMonitor monitor, MonoDevelop.Projects.DotNetProjectConfiguration conf) [0x00111] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.13-branch/07afec66/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:384'
继承我的bin \ AppStore \ iPhone \ AppName.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>BuildMachineOSBuild</key>
<string>11G63b</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>ANet</string>
<key>CFBundleExecutable</key>
<string>ANetMobile</string>
<key>CFBundleIconFiles</key>
<array>
<string>logo_57.png</string>
<string>logo_114.png</string>
<string>logo_120.png</string>
</array>
<key>CFBundleIdentifier</key>
<string>com.anet.anmobile</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>ANetMobile</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleResourceSpecification</key>
<string>ResourceRules.plist</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>9B176</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>DTPlatformVersion</key>
<string>5.1</string>
<key>DTSDKBuild</key>
<string>9B176</string>
<key>DTSDKName</key>
<string>iphoneos5.1</string>
<key>DTXcode</key>
<string>0440</string>
<key>DTXcodeBuild</key>
<string>4F250</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>4.3</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv6</string>
</array>
<key>UIStatusBarTintParameters</key>
<dict>
<key>UINavigationBar</key>
<dict>
<key>Style</key>
<string>UIBarStyleDefault</string>
<key>TintColor</key>
<dict>
<key>Blue</key>
<real>1</real>
<key>Green</key>
<real>0.0</real>
<key>Red</key>
<real>0.0</real>
</dict>
<key>Translucent</key>
<false/>
</dict>
</dict>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
答案 0 :(得分:0)
您的所有字段都填写了项目选项吗?确保填写了应用名称。本周我的ad-hoc分发应用程序已存档,没有任何问题。
答案 1 :(得分:0)
首先尝试解决此问题:
<key>CFBundleSignature</key>
<string>????</string>
项目选项中的:
尝试设置有效的包标识符。
然后,为了构建AppStore,您必须在Apple网站上注册这个BundleIdentifier
答案 2 :(得分:0)
Xamarin已经确认这是Studio中的一个错误,将在4.0.14修补程序版本中修复。