TestPin
只有第一次要用到電腦,大約 10 分鐘。每做完一段就打一個勾,進度會記在這台裝置的瀏覽器裡。
沒有電腦?iOS 27 可在 TestPin 的設定精靈選「在這支 iPhone 上完成」,配對與支援檔案都在手機上完成。本頁是用電腦設定的流程。
電腦要先被這支手機信任,才能替它做鑰匙檔案。
idevice-tools ideviceinfo
工具可嘗試讓隱藏的開發者模式入口顯示。開啟、重新啟動及重啟後確認,仍需在手機上手動完成。
idevice-tools amfi show
idevice-tools amfi status鑰匙檔案等於「這台電腦對這支 iPhone 的信任」,TestPin 之後靠它自己連自己。只放在這支手機上,不要傳給別人。
idevice-tools rppairing pair TestPinApp testpin-rppair.plist名字一定要是 TestPinApp(大小寫也要一樣,App 匯入時會比對)。手機可能再跳一次「信任」,一樣按信任。TestPin 會自動匯入放到它資料夾的配對檔。指令版使用下方命令;電腦設定工具會自動完成傳送。
idevice-tools afc --documents com.boringnet.testpin upload testpin-rppair.plist /Documents/testpin-rppair.plistiOS 的定位模擬需要 Apple 官方的開發者支援檔案(Developer Disk Image)。TestPin 不會自己下載,由電腦放進手機;安裝時由 Apple 線上驗證。
mkdir testpin-ddi
cd testpin-ddi
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Cryptex/BuildManifest.plist
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Cryptex/Image.dmg
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Cryptex/Image.dmg.trustcache
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Cryptex/Image.dmg.cryptex_info
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Cryptex/Image.dmg.root_hash
idevice-tools afc --documents com.boringnet.testpin mkdir /Documents/DDI
idevice-tools afc --documents com.boringnet.testpin upload BuildManifest.plist /Documents/DDI/BuildManifest.plist
idevice-tools afc --documents com.boringnet.testpin upload Image.dmg /Documents/DDI/Image.dmg
idevice-tools afc --documents com.boringnet.testpin upload Image.dmg.trustcache /Documents/DDI/Image.dmg.trustcache
idevice-tools afc --documents com.boringnet.testpin upload Image.dmg.cryptex_info /Documents/DDI/Image.dmg.cryptex_info
idevice-tools afc --documents com.boringnet.testpin upload Image.dmg.root_hash /Documents/DDI/Image.dmg.root_hashmkdir testpin-ddi
cd testpin-ddi
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Personalized/BuildManifest.plist
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Personalized/Image.dmg
curl -LO https://github.com/doronz88/DeveloperDiskImage/raw/refs/heads/main/PersonalizedImages/Xcode_iOS_DDI_Personalized/Image.dmg.trustcache
idevice-tools afc --documents com.boringnet.testpin mkdir /Documents/DDI
idevice-tools afc --documents com.boringnet.testpin upload BuildManifest.plist /Documents/DDI/BuildManifest.plist
idevice-tools afc --documents com.boringnet.testpin upload Image.dmg /Documents/DDI/Image.dmg
idevice-tools afc --documents com.boringnet.testpin upload Image.dmg.trustcache /Documents/DDI/Image.dmg.trustcache可以拔線了。最後一步在 TestPin 的精靈裡完成。
只用 4G/5G 無法建立連線,但可以借飛航模式完成;連上之後就能用行動網路上網和定位測試。只有需要建立連線時才要這樣做(例如重開機或停用服務之後)。