TestPin

TestPin 設定指南(用電腦)

只有第一次要用到電腦,大約 10 分鐘。每做完一段就打一個勾,進度會記在這台裝置的瀏覽器裡。

完成 0/7

1準備好三樣東西

沒有電腦?iOS 27 可在 TestPin 的設定精靈選「在這支 iPhone 上完成」,配對與支援檔案都在手機上完成。本頁是用電腦設定的流程。

  1. a
    這支 iPhone:iOS 18 以上設定 › 一般 › 關於本機 › iOS 版本
  2. b
    一台電腦:Mac 或 WindowsWindows 要先安裝 Apple Devices(Microsoft Store)或 iTunes,電腦才認得 iPhone。
  3. c
    手機的充電線要能傳資料的線(原廠線都可以)。
  4. d
    下載 idevice-tools(開源、免費)github.com/jkcoxson/idevice/releases → 選你電腦的版本,解壓縮。
  5. d
    下載 TestPin 助手Apple 晶片(M1 以後) · Intel · Windows(Microsoft Store) · Mac:macOS 11 以上,已通過 Apple 公證,打開 dmg 把 TestPin 助手拖進「應用程式」。Windows:Windows 10/11(64 位元),先裝好 Apple Devices,再從 Microsoft Store 安裝 TestPin 助手(不會出現安全提示)。

2接上電腦,按「信任」

電腦要先被這支手機信任,才能替它做鑰匙檔案。

  1. 1
    用線把 iPhone 接上電腦,手機解鎖。
  2. 2
    手機跳出「要信任這部電腦嗎?」→ 按「信任」沒跳出來?拔掉再插一次,或先解鎖手機。
  3. 3
    輸入手機的解鎖密碼。
檢查一下:在終端機(Windows 用 PowerShell)執行下面這行,看到你的 iPhone 名字就代表電腦認得它。
idevice-tools ideviceinfo

3打開「開發者模式」

工具可嘗試讓隱藏的開發者模式入口顯示。開啟、重新啟動及重啟後確認,仍需在手機上手動完成。

先在電腦上讓它顯示:
idevice-tools amfi show
助手:按「顯示開發者模式」,然後到手機上照下面的順序做。
  1. 4
    把開關撥成綠色 → 手機問要不要重新開機 → 按「重新啟動」。
  2. 5
    重開機後,手機問「要開啟開發者模式嗎?」→ 按「開啟」,輸入密碼。
還是找不到開關?確認第 2 步真的按過「信任」,再執行一次 amfi show(或助手的「顯示開發者模式」),關掉設定 App 重開。
檢查一下:回傳 true 就是開好了。
idevice-tools amfi status

4建立鑰匙檔案

鑰匙檔案等於「這台電腦對這支 iPhone 的信任」,TestPin 之後靠它自己連自己。只放在這支手機上,不要傳給別人。

  1. 1
    手機接著線、解鎖,在終端機執行:
    idevice-tools rppairing pair TestPinApp testpin-rppair.plist
    名字一定要是 TestPinApp(大小寫也要一樣,App 匯入時會比對)。手機可能再跳一次「信任」,一樣按信任。
  2. 2
    看到 Paired! Saved to testpin-rppair.plist 就成功了。
助手:這一步和下一步會自動完成,手機若再問「信任」就按信任。

5把鑰匙檔案放進手機

TestPin 會自動匯入放到它資料夾的配對檔。指令版使用下方命令;電腦設定工具會自動完成傳送。

  1. 1
    用指令直接放進去(手機還接著線)
    idevice-tools afc --documents com.boringnet.testpin upload testpin-rppair.plist /Documents/testpin-rppair.plist
檢查一下:打開 TestPin → 設定精靈第 4 步,看到綠色「已收到鑰匙檔案」就對了。

6把開發者支援檔案放進手機

iOS 的定位模擬需要 Apple 官方的開發者支援檔案(Developer Disk Image)。TestPin 不會自己下載,由電腦放進手機;安裝時由 Apple 線上驗證。

先看 iOS 版本:第 2 步 ideviceinfo 的 ProductVersion。iOS 26.4 以上用 A,較舊的用 B。Windows 的 PowerShell 請把 curl 改成 curl.exe。
  1. A
    iOS 26.4 以上(5 個檔)
    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_hash
  2. B
    iOS 26.3 以下(3 個檔)
    mkdir 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
助手:助手會依 iOS 版本自動下載並放進手機。
檢查一下:打開 TestPin → 設定精靈第 5 步,變綠就對了。

7回到手機,啟用服務

可以拔線了。最後一步在 TestPin 的精靈裡完成。

  1. 6
    按「啟用服務」→ 允許加入 VPN 設定 → 等三個項目打勾第一次請連 Wi-Fi 再啟用(任一 Wi-Fi,不必和電腦同一個):會連線並安裝支援檔案,大約 10–30 秒,只用行動網路或飛航模式都無法完成。設定好之後沒有 Wi-Fi 時,才照下方「沒有 Wi-Fi 時怎麼連線」。
全部完成!
之後要用:首頁按「啟用服務」→「定位測試」選座標 → 按「套用」。不需要電腦了。

沒有 Wi-Fi 時怎麼連線

只用 4G/5G 無法建立連線,但可以借飛航模式完成;連上之後就能用行動網路上網和定位測試。只有需要建立連線時才要這樣做(例如重開機或停用服務之後)。

  1. 1
    先用行動網路按「啟用服務」一定要在飛航模式之前啟用:飛航模式下系統不允許啟用服務。卡片會提示改用飛航模式。
  2. 2
    開啟飛航模式,保持 Wi-Fi 關閉回到 TestPin,不用按任何按鈕,App 會自動重連。
  3. 3
    等卡片顯示「連線就緒,請關閉飛航模式」第一次使用時,會提示關閉飛航模式後自動掛載支援檔案。
  4. 4
    關閉飛航模式行動網路恢復後連線仍在,就能設定位置、執行路線和正常上網。

出問題時

  1. ?
    精靈最後一步一直「尚未連線」只用行動網路時無法建立連線:連上 Wi-Fi,或照下方「沒有 Wi-Fi 時怎麼連線」開啟飛航模式,App 會自動重連。還是不行就從第 4 步重做一次鑰匙檔案。
  2. ?
    匯入時說「這把鑰匙檔是給另一個 TestPin 版本的」第 4 步的名字打錯了。用 TestPinApp 重做第 4、5 步。
  3. ?
    鑰匙檔案什麼時候會失效重設「定位與隱私權」、清除手機、關閉開發者模式,或在電腦上重新配對後。重做第 4、5 步即可。
  4. ?
    手機重開機後位置套不上去重開機後連線會中斷,支援檔案不用重新掛載。重新按「啟用服務」即可;只有行動網路時照「沒有 Wi-Fi 時怎麼連線」做。