Xcode3.2.4和3.2.5版本通过

移动开发 iOS
本文介绍的是Xcode 3.2.4和3.2.5版本通过,基本是以代码实现的,先来看内容。

Xcode 3.2.4和3.2.5版本通过是本文要介绍的内容,我们之间进入话题,首先关闭Xcode,打开你的命令行终端,复制粘贴下面的代码:[[36900]]

#!/bin/bash
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS/
dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255
printf “\x8f\x2a\x00\x00″ >> working
dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=127504 seek=127504
/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original
/bin/mv working iPhoneOS\ Build\ System\ Support
chmod a+x iPhoneOS\ Build\ System\ Support

执行完后再复制粘贴下面的代码到命令行终端:(需要internet网络连接)

mkdir /Developer/iphoneentitlements30
cd /Developer/iphoneentitlements30
curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
mv gen_entitlements.txt gen_entitlements.py
chmod 777 gen_entitlements.py

执行完脚本后修改”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,做如下修改:

新增如下两项:

PROVISIONING_PROFILE_ALLOWED = NO
PROVISIONING_PROFILE_REQUIRED = NO

再用文本编辑器打开”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,将所有“XCiPhoneOSCodeSignContext”替换为“XCCodeSignContext”,(非常重要,不进行此步骤会导致打开项目文件Xcode会崩溃报错退出)保存退出。

打开Xcode,打开你的项目,Project>>Edit Project Setting,选择“Build”页面,Configurations和Show都选择All,找到Code Signing Identity项,删除其子项,并将“Code Signing Identity”赋值为“iPhone Developer”(其实是个选项)。

然后找到你项目的xxx-Info.plist文件,添加“SignerIdentity”项,其值为“Apple iPhone OS Application Signing”.保存。

将iPhone接入电脑,在Xcode的Window>>Organizer中会侦测到你的iPhone.查看iPhone和你的Xcode识别正常后退出Organizer,选择编译环境为“iPhone Device-3.1.2|Release”,点击"Build and Go",期间会出现让我们选择签名证书,点选“允许”后,祈祷你的iPhone屏幕亮起吧。

你的程序会自动下载到你的iPhone中。点触运行无任何错误提示。

小结:Xcode3.2.4和3.2.5版本通过的内容介绍完了,希望本文对你有所帮助。

转自:http://bbs.weiphone.com/read-htm-tid-591311.html

责任编辑:zhaolei 来源: 互联网
相关推荐

2012-11-16 09:50:32

Windbg

2011-08-05 11:03:53

Xcode 证书 调试

2011-03-18 08:39:28

iOS 4.2 SDKiOS SDK

2010-11-09 16:03:27

2010-06-08 09:45:27

openSUSE 11

2012-05-07 23:45:54

FantomJavaJVM

2012-03-06 13:45:43

JavaJActor

2010-08-26 17:08:20

vsftpd faq

2009-06-18 09:14:47

Spring modu

2009-07-08 16:45:07

Servlet 2.5

2014-07-04 13:33:03

jQueryjQuery Mobi

2010-06-08 10:34:23

opensuse 10

2012-05-09 09:11:52

Silverlight

2009-07-16 16:53:29

Jython 2.5

2011-08-18 11:26:23

Kingsoft OfOffice

2010-10-21 16:10:08

2015-07-17 13:27:16

MySQL 5.7

2012-05-17 13:28:08

OpenStack

2015-07-17 13:45:12

MySQL 5.7

2009-12-18 13:43:07

Ruby 1.9版本
点赞
收藏

51CTO技术栈公众号