ここを参考にしながら"iPhone Developer"という名前で証明書を作成 ttp://developer.apple.com/documentation/Security/Conceptual/CodeSigningGuide/Procedures/chapter_3_section_2.html
作成した証明書をAlways Trustに変更
以下のInfo.plistを2カ所修正 /Developer/Platforms/iPhoneOS.platform/Info.plist 1)PROVISIONING_PROFILE_ALLOWEDをNOに変更 <key>PROVISIONING_PROFILE_ALLOWED</key> <string>YES</string> ↓ <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> 2)PROVISIONING_PROFILE_REQUIREDをNOに変更 <key>PROVISIONING_PROFILE_REQUIRED</key> <string>YES</string> ↓ <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</string>
ここを参考にしながら"iPhone Developer"という名前で証明書を作成 ttp://developer.apple.com/documentation/Security/Conceptual/CodeSigningGuide/Procedures/chapter_3_section_2.html
作成した証明書をAlways Trustに変更
/Developer/Platforms/iPhoneOS.platform/Info.plist
<key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</string>
<key>PLIST_FILE_OUTPUT_FORMAT</key> <string>binary</string> →ここにキーを追記 <key>SDKROOT</key> <string>iphoneos2.2</string>
<key>PLIST_FILE_OUTPUT_FORMAT</key> <string>binary</string> <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</string> <key>SDKROOT</key> <string>iphoneos2.2</string>
/Developer/Platforms/iPhoneOS.platform/Info.plist
<key>CODE_SIGN_CONTEXT_CLASS</key> <string>XCiPhoneOSCodeSignContext</string> ... <key>SDKROOT</key> <string>iphoneos2.2.1</string> <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</string>
正規の開発環境と同等の環境構築 元ネタはこちら
Cydiaのリポジトリに以下のURLを追加 http://www.iphone.org.hk/apt/ Tweaksセクションから"Mobile Installation Patch"2.2.1用をインストール iPhoneを再起動
1.Macのキーチェーンアクセスを起動 2.メニューの[キーチェーンアクセス]→[証明書アシスタント]→[証明書を作成] 3.名前:"iPhone Pwned Developer"、タイプ:自己署名ルート、デフォルトを無効化にチェック 4.シリアル番号:使われていない数字なら何でもいい、有効期間:適当に設定、証明書のタイプ:コード署名 5.証明書情報:適当に入力(不要かも) 6.後は最後まで[続ける]ボタンを押す 7.できあがった証明書を"常に信頼する"に変更
<key>SignerIdentity</key> <string>Apple iPhone OS Application Signing</string>
PROVISIONING_PROFILE_ALLOWED NO PROVISIONING_PROFILE_REQUIRED NO
iPhone Pwned Developer
sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk \ /Developer/221/Platforms/iPhoneOS.platform/Developer/SDKs sudo ln -s "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0 (7A341)" \ /Developer/221/Platforms/iPhoneOS.platform/DeviceSupport sudo mv /Developer/221/Platforms/iPhoneOS.platform/Developer/usr \ /Developer/221/Platforms/iPhoneOS.platform/Developer/_usr sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr \ /Developer/221/Platforms/iPhoneOS.platform/Developer
いざやってみると Code Sign error: a valid provisioning profile matching the application's Identifier(r ってなったけど
http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/20983-sdk-3-0-xcode-3-1-3-build-go-jailbroken-device-2.html#post98724
これしたら動いた
OS3.0の方法に加えて、
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1
詳しくは http://adcdownload.apple.com/iphone/iphone_sdk_3.0__final/iphone_os_3.0.1_advisory.pdf
#!/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=1 count=300752 printf "\xc8\x2f\x00\x00" >> working dd if=iPhoneOS\ Build\ System\ Support of=working bs=1 skip=300756 seek=300756 /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
http://www.alexwhittemore.com/?p=270&cpage=4#comment-601
http://networkpx.blogspot.com/2009/09/compiling-iphoneos-31-apps-with-xcode.html
http://networkpx.blogspot.com/2009/09/compiling-iphoneos-31-apps-with-xcode.html
http://networkpx.blogspot.com/2009/09/compiling-iphoneos-31-apps-with-xcode.html
http://networkpx.blogspot.com/2009/09/compiling-iphoneos-31-apps-with-xcode.html