使用适用于 iOS6 的 xcode 4.5 绕过代码签名

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12456112/
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 01:30:42  来源:igfitidea点击:

Bypassing code sign with xcode 4.5 for iOS6

xcodeios6

提问by greg3z

We used to modify the SDKSetting.plist to allow the build of unsigned apps, by setting CODE_SIGNING_REQUIREDto NO.

我们曾经修改 SDKSetting.plist 以允许构建未签名的应用程序,通过设置CODE_SIGNING_REQUIREDNO.

But since xcode 4.5, this file seems encrypted (here is its path : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/SDKSettings.plist).

但是从 xcode 4.5 开始,这个文件似乎是加密的(这是它的路径 : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/SDKSettings.plist)。

Does somebody know how to build unsigned apps for iOS6?

有人知道如何为 iOS6 构建未签名的应用程序吗?

回答by Jim Huang

sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/SDKSettings.plist ~/Downloads

sudo chmod 777 ~/Downloads/SDKSettings.plist
  • open ~/Downloads/SDKSettings.plist

  • Edit in the popup window of XCode

  • 打开 ~/Downloads/SDKSettings.plist

  • 在 XCode 的弹出窗口中编辑

sudo mv ~/Downloads/SDKSettings.plist /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/SDKSettings.plist
  • restart xcode
  • 重启xcode

回答by Matej

First quit Xcode,

首先退出Xcode,

Then in terminal execute

然后在终端执行

sudo vim /Applications/Xcode.app/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/SDKSettings.plist

Navigate using arrow keys (or kand j) then press ito edit. Make your changes, then press escape followed by :wq

使用箭头键(或kj)导航,然后按i进行编辑。进行更改,然后按退出,然后按:wq

Start Xcode

启动Xcode

回答by bbodenmiller

Rather than editing SDKSettings.plistyou can also just pass xcodebuildan argument of CODE_SIGNING_REQUIRED=NO.

而不是编辑SDKSettings.plist,你也可以只传递xcodebuild的参数CODE_SIGNING_REQUIRED=NO

回答by greg3z

I managed to edit the file from another XCode on another computer.

我设法从另一台计算机上的另一个 XCode 编辑该文件。