使用 Xcode 6 绕过代码签名

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26822962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:08:08  来源:igfitidea点击:

Bypass code signing with Xcode 6

iosobjective-ciphonexcode

提问by SAR392

How do you bypass code signing on Xcode 6 for IOS 8 apps? I used to do this pretty easily following some guides on the Internet on Xcode 5 so I could directly test my apps on my jailbroken iPhone since I don't have the developer account. However, I can't seem to get rid of this error anymore:

您如何绕过 Xcode 6 上的 IOS 8 应用程序代码签名?我曾经在 Xcode 5 上按照 Internet 上的一些指南很容易地做到这一点,因此我可以直接在我越狱的 iPhone 上测试我的应用程序,因为我没有开发者帐户。但是,我似乎无法再摆脱此错误:

"No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found."

“没有找到具有有效签名身份(即证书和私钥对)的配置文件。”

None of the guides that I know of seem to work on Xcode 6? Any solutions?

我所知道的所有指南似乎都不适用于 Xcode 6?任何解决方案?

采纳答案by mefik

  1. Install AppSync Unified on device from cydia.angelxwind.net repo
  2. Open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
  3. Change value of parameter AD_HOC_CODE_SIGNING_ALLOWED to YES
  4. Change value of parameter CODE_SIGNING_REQUIRED to NO
  5. Restart XCode
  6. Set "Code Signing Identity" parameter in "Build settings" (Both "Target" and "Project") to "Ad Hoc Code Sign"
  7. Add new "Property List" file to your project with name "Entitlements.plist"
  8. Add "Can be debugged" parameter with value "YES" to Entitlements.plist
  9. Set "Code Signing Entitlements" parameter in "Build settings" (Both "Target" and "Project") to "Entitlements.plist"
  1. 从 cydia.angelxwind.net 存储库在设备上安装 AppSync Unified
  2. 打开/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
  3. 将参数 AD_HOC_CODE_SIGNING_ALLOWED 的值更改为 YES
  4. 将参数 CODE_SIGNING_REQUIRED 的值更改为 NO
  5. 重启 XCode
  6. 将“Bu​​ild settings”(“Target”和“Project”)中的“Code Signing Identity”参数设置为“Ad Hoc Code Sign”
  7. 将名为“Entitlements.plist”的新“属性列表”文件添加到您的项目中
  8. 将值为“YES”的“可以调试”参数添加到 Entitlements.plist
  9. 将“构建设置”(“目标”和“项目”)中的“代码签名权利”参数设置为“Entitlements.plist”

For XCode 6.4 need to do some additional things:

对于 XCode 6.4 需要做一些额外的事情:

  1. Go to "Info" tab in "Target" and copy value of "Bundle identifier"
  2. Add "application-identifier" parameter with recently copied value to Entitlements.plist
  1. 转到“目标”中的“信息”选项卡并复制“捆绑标识符”的值
  2. 将最近复制的值的“application-identifier”参数添加到 Entitlements.plist

Enjoy!

享受!