2013-10-16 52 views
0

我想分配給應用程序商店歸檔構建但在歸檔過程中,我不斷收到來自Xamarin Studio中的一個例外彈出說出以下時:Xamarin工作室例外歸檔的AppStore的

「錯誤已經發生 - 無法歸檔應用程序捆綁空字符串不被視爲一個有效的價值」

當它被簽署應用程序時出現異常:

'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' 

我的繼承人斌\ 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

你可能想分享你的info.plist –

+0

好吧,我已經在上面添加了。 – user1532510

回答

0

註冊這個BundleIdentifier Xamarin已經確認這是在Studio中的錯誤,並且將其固定在4.0.14修補程序版本。

0

都是你的領域填補了該項目的選擇?確保您填寫了應用程序名稱。本週我將自己的專用分發應用程序歸檔,沒有任何問題。

+0

似乎一切似乎都填寫了設置,它在發生異常的「簽名應用程序」階段。 – user1532510

+0

也許你應該重新創建你的證書/配置文件的東西,並使用新的。 – valdetero

+0

我已經做了很多次了。我向Xamarin提交了一個bug,因爲它看起來像.xcent文件在歸檔構建時已損壞。我會及時向大家發佈。 – user1532510

0

嘗試解決此問題第一:

<key>CFBundleSignature</key> 
<string>????</string> 
在您的項目選擇

enter image description here

嘗試建立一個有效的捆綁標識符。

然後,爲了打造爲AppStore的,你必須要在蘋果網站

+0

Hi Stephane,我昨天在Xamarin論壇上發佈了這個問題,而TeamXamarin的貢獻者說CFBundleSignature應該是????。但是,正如您所建議的,我已經創建了一個帶有捆綁ID,證書和配置文件的標識符,但仍然存在相同的問題。 – user1532510

+0

確保您的AppID /證書/供應配置文件都具有相同的捆綁標識符(或者您使用的是通配符)。 – valdetero

+0

等待Xamarin的錯誤報告結果。 – user1532510