Skip to content

Commit

Permalink
Update MainView.swift
Browse files Browse the repository at this point in the history
Development证书打包时保持跟xcode生成的entitlements.plist文件一致,避免重签名后不能真机调试。
  • Loading branch information
huzhenchao authored and DanTheMan827 committed Apr 30, 2019
1 parent f1094f5 commit 73f30c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion AppSigner/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,10 @@ class MainView: NSView, URLSessionDataDelegate, URLSessionDelegate, URLSessionDo
setStatus("Parsing entitlements")

if let profile = ProvisioningProfile(filename: useAppBundleProfile ? appBundleProvisioningFilePath : provisioningFile!){
if let entitlements = profile.getEntitlementsPlist(tempFolder) {
if var entitlements = profile.getEntitlementsPlist(tempFolder) {
if let oldAppID = getPlistKey(appBundleInfoPlist, keyName: "CFBundleIdentifier"){
entitlements = entitlements.replacingOccurrences(of: "*", with: oldAppID) as NSString
}
Log.write("–––––––––––––––––––––––\n\(entitlements)")
Log.write("–––––––––––––––––––––––")
do {
Expand Down

1 comment on commit 73f30c6

@DanTheMan827
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The development certificate is kept consistent with the entitlements.plist file generated by xcode when it is packaged, so that it cannot be debugged after re-signing.

Please sign in to comment.