2016-03-22 72 views
0

我在Xamarin中創建了一個應用程序,我將上傳到TestFlight,但是在嘗試上傳時出現錯誤。iOS無效的代碼簽名權利

它說

ERROR ITMS-90045: "Invalid Code Signing Entitlements. Your application bundle's signature contains signing entitlements that are not supported on iOS. Specifically, key 'UIBackgroundModes' in **app-path**' is not supported." 

我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>UIDeviceFamily</key> 
    <array> 
     <integer>1</integer> 
    </array> 
    <key>UISupportedInterfaceOrientations</key> 
    <array> 
     <string>UIInterfaceOrientationPortrait</string> 
    </array> 
    <key>UISupportedInterfaceOrientations~ipad</key> 
    <array> 
     <string>UIInterfaceOrientationPortrait</string> 
     <string>UIInterfaceOrientationPortraitUpsideDown</string> 
     <string>UIInterfaceOrientationLandscapeLeft</string> 
     <string>UIInterfaceOrientationLandscapeRight</string> 
    </array> 
    <key>MinimumOSVersion</key> 
    <string>7.1</string> 
    <key>CFBundleDisplayName</key> 
    <string>**app-name**</string> 
    <key>CFBundleIdentifier</key> 
    <string>**app-path**</string> 
    <key>CFBundleVersion</key> 
    <string>10</string> 
    <key>CFBundleIconFiles</key> 
    <array> 
     <string>[email protected]</string> 
     <string>Icon.png</string> 
     <string>[email protected]</string> 
    </array> 
    <key>CFBundleShortVersionString</key> 
    <string>1.6.4</string> 
    <key>UIStatusBarTintParameters</key> 
    <dict> 
     <key>UINavigationBar</key> 
     <dict> 
     <key>Style</key> 
     <string>UIBarStyleDefault</string> 
     <key>Translucent</key> 
     <false/> 
     <key>BackgroundImage</key> 
     <string></string> 
     </dict> 
    </dict> 
    <key>UIPrerenderedIcon</key> 
    <false/> 
    <key>UIStatusBarHidden</key> 
    <true/> 
    <key>UIStatusBarStyle</key> 
    <string>UIStatusBarStyleBlackOpaque</string> 
    <key>UIAppFonts</key> 
    <array> 
     <string>icomoon.ttf</string> 
     <string>TitilliumWeb-Light.ttf</string> 
    </array> 
    <key>UIBackgroundModes</key> 
    <array> 
     <string>remote-notification</string> 
    </array> 
    </dict> 
</plist> 

的Entitlements.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>keychain-access-groups</key> 
    <array> 
     <string>$(AppIdentifierPrefix)**app-path**</string> 
    </array> 
    <key>UIBackgroundModes</key> 
    <array> 
     <string>remote-notification</string> 
    </array> 
    </dict> 
</plist> 

我能有什麼錯呢?

在下面的例子中我與**app-name****app-bath**

+0

什麼是您的應用程序部署目標? –

+0

部署目標設置爲iOS 7.1 –

回答

1

UIBackgroundModes取代了應用程序名和應用程序路徑是不是一個有效的授權密鑰 - 此密鑰應包括在Info.plist代替。

Info.plist關鍵參考:

https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

Entitlements.plist關鍵參考:

https://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html

希望這有助於。

相關問題