如何在xcode 5中創建Entitlement.plist文件?如何在xcode 5中創建Entitlement.plist文件?
我已經下載了最新版本的xcode。我想在我的項目中創建Entitlement.plist文件。 請給我適當的措施在Xcode 5
如何在xcode 5中創建Entitlement.plist文件?如何在xcode 5中創建Entitlement.plist文件?
我已經下載了最新版本的xcode。我想在我的項目中創建Entitlement.plist文件。 請給我適當的措施在Xcode 5
創建Entitlement.plist文件可以在能力管理權利的目標設置標籤。
此處的任何更改都會自動更新Entitlements.plist
或Info.plist
文件。
這就是說,一個Entitlements.plist
文件最後只是一個plist
。您可以按照in this question提供的步驟,儘可能多地添加plist
。
但我想添加一個新的Entitlement.plist 功能沒有選項來添加一個新的Entitlement.plist –
感謝您的回答我正在爲此工作,如果有幫助,會讓你知道。 –
謝謝!它適用於Xcode 6!你救了我的一天! – miguelghz
如果你想的權利在Xcode 5添加到現有的項目請按照下列步驟操作:
最簡單的答案。非常感謝 :) –
在Xcode 5中,對於常見的權利,您不再需要手動創建Entitlements.plist
文件。您改爲使用新的功能窗格。見https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html
如果您仍想手動創建一個,方法如下:
foo.entitlements
」(通常,「foo
」是目標名稱)不要忘記將您的目標的CODE_SIGN_ENTITLEMENTS
構建設置設置爲您剛添加的權利文件的路徑。
您可以使用下面的模板手動創建Entitlements.plist
文件。
保存爲YourTargetName.entitlements
在你Target > Build Settings
,設置鍵「代碼簽名權利」(CODE_SIGN_ENTITLEMENTS
)到該文件的路徑。
<?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>application-identifier</key>
<string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
<key>beta-reports-active</key>
<true/>
</dict>
</plist>
這已經有一個答案[這裏](http://stackoverflow.com/questions/9044735/steps-to-create-and-edit-a-plist-file-in-xcode) – Rugmangathan
@ MKR感謝您的幫助 –