我的第乙個iphone應用程式真機除錯

2021-08-10 06:57:27 字數 1895 閱讀 6611

自從買了乙個ituouch之後就開始研究上邊的應用程式,下邊是我的第乙個應用程式的真機上機演示。抓了兩張圖。讓大家羨慕一下。

xcode破解

關閉xcode,開啟你的命令列終端,複製貼上下面的**,每貼上一行執行一次:

#!/bin/bash

cd /developer/platforms/iphoneos.platform/developer/library/xcode/plug-ins/

cd "iphoneos build system support.xcplugin"

cd 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

mv gen_entitlements.txt gen_entitlements.py

chmod 777 gen_entitlements.py

./gen_entitlements.py

執行完指令碼後修改」/developer/platforms/iphoneos.platform/info.plist」檔案(從資源管理器finder中雙擊可以進入目錄,雙擊可以編輯),新增下面四行**(位置:新增到類似下面**格式的末尾即可):     

provisioning_profile_allowed

noprovisioning_profile_required

no新增完後,將所有「xciphoneoscodesigncontext」替換為「xccodesigncontext」,(非常重要,不進行此步驟會導致開啟專案檔案xcode會崩潰報錯退出)儲存退出。

開啟xcode,開啟你的專案,project>>edit project setting,選擇「build」頁面,configurations和show都選擇all,找到code signing identity項,刪除其子項,並將「code signing identity」賦值為「iphone developer」(其實是個選項)。

帖子結束

補充1:

xcode公升級破解

如果是在原xcode的版本上公升級到3.2.5,並且之前已經破解過,那麼只需要再做如下步驟即可:

新增如下兩項(告知專案編譯無需證書):

1provisioning_profile_allowed = no 2

provisioning_profile_required = no

然後將該檔案中所有的」xciphoneoscodesigncontext」替換為」xccodesigncontext」,即去掉中間的」iphoneos」

補充2:我自己的配置為vm7.0.1+mac10.6.8+xcode3.2.6+ios 4.3.3 我完成這個教程之後,到了organizer那一步,結果出現了xcode cannotfindthe software image to install this version'。

我的第乙個windows應用程式

建立乙個windows應用程式,有以下基本步驟 建立視窗類 註冊視窗類 建立視窗 顯示視窗 訊息迴圈 編寫視窗過程 訊息處理函式 如下 include stdafx.h lresult callback windowproc hwnd hwnd,uint umsg,wparam wparam,lpa...

第乙個應用程式HelloWorld

備註 相比較xcode 4.6版本,新建專案選項中沒有了use storyboards 使用故事板 use automatic reference counting 使用自動引用計數 和include unit tests 包含單元測試 三個選項。4.單擊next按鈕,在接下來的對話方塊中選擇儲存專...

第乙個csharp應用程式

不扯屁話,直接看 學習,是需要站在巨人的肩膀之上的,網上資源很多,請不要侷限在書面文件 using system using system.collections.generic using system.linq using system.text namespace 宣告 提示使用者輸入功能序號...