iTunes 12.7 移除了 Apps 的選項,我該如何安裝 .ipa 檔案到 iOS 裝置?

Lefty Chang
2 min readNov 8, 2017

--

(2019.11.19更新——文章末端新增macOS Catalina的安裝方式)

(2019.5.31更新——Ad Hoc版本除了拖曳外也可以使用複製貼上的方法)

如題。為此找了幾種解法。

這篇提到:

1. You can drag your .ipa to the “Installed Apps” area in Xcode’s “Devices and Simulators” window. (Or use the little plus icon.)

2. To get the ipa loaded I dragged and dropped the ipa file onto the ‘On My Device’ panel in the left hand column of iTunes. The status bar indicated that it was syncing the information, and the app loaded correctly.

但是 2. 的方式似乎僅限使用 Ad Hoc Provisioning Profile 輸出的 .ipa 檔才適用,其他的似乎會拖曳不進去。(從拖曳時裝置上方是否有出現藍色半透明的 layer 可以判斷得出是否支援安裝。)

(2019.5.31更新——在某些機型拖曳方式不會出現藍色半透明遮罩,這時可以試著在 Finder (Windows 則是檔案總管)選擇 .ipa 檔、右鍵拷貝,然後在 iTunes 左邊裝置處按右鍵,選擇「貼上」來安裝)

這篇則是提到:

You can install an .ipa by dragging it to the Installed Apps list in the Devices window in Xcode. This installs it much like iTunes would have, not via the incremental mechanism that Xcode normally uses when you build and run.

到目前為止與上面的 1. 一樣。但後面有補充一個比較不常見的做法:

If you want to avoid Xcode entirely, you can do this with Apple Configurator by dragging it to your device in the All Devices window.

但是這個 Apple Configurator 2 是要透過 Mac App Store 下載的。似乎也不是那麼方便。

最後這段僅供參考,關係不大:

Finally, if you’re interested in automating app update testing, you can use Xcode’s app data support, as discussed in this post.

這篇的問題比較不直接相關,但是下面的討論內容也可以參考一下:

See the Manually add items from your computer section of Manually manage content on your iPhone, iPad, or iPod touch using iTunes — Apple Support. This can be used to copy apps, books, and tones from your computer to your device. The File Sharing feature for copying data between apps and the computer is still there.

在上面提供的官方 Support 連結中提到:

3. On your computer, find the item you want to add to your device. If you’re looking for Apps, Tones, or Books (for Windows) that previously appeared in your iTunes library, you can find them in your iTunes media folder.

4. Drag the item from your computer to your iOS device in the left sidebar of iTunes.

也就是說,在 iTunes 的進階偏好設定中,可以看到 iTunes Media 檔案夾的位置,之前曾安裝或下載的 Apps / Tones / Books (for Windows) 會被放在該位置中。可以藉由拖曳檔案到 iTunes 左邊 sidebar 處,它就會自動同步。這裡其實跟一開始的 2. 是一樣的。所以對於 App 來說也是限於 Ad Hoc 的版本。

總結:

總共有三個做法可以將 .ipa 安裝到 iOS 裝置中,

  1. 透過 Xcode 的 Devices and Simulators 視窗,將 .ipa 拖曳進 INSTALLED APPS 去。
  2. 直接將 .ipa 拖曳到 iTunes 左側邊欄的 iOS 裝置名稱中,此方式僅適用於 Ad Hoc 版本。(2019.5.31更新——在某些機型拖曳方式不適用,但是仍然可以在 Finder (Windows 則是檔案總管)選擇 .ipa 檔、右鍵拷貝,然後在 iTunes 左邊裝置處按右鍵,選擇「貼上」來安裝)
  3. 透過下載 Apple Configurator 2 安裝,官方介紹。僅限 Mac 適用。

關於 3. ,下面這篇有 Step by step 的說明。

結果看完之後發現還有第四種方法,

4. 使用官方特別版本 iTunes 12.6疑難排解。Mac 及 PC 皆適用。

另外,因為 Apps 的選項被移除了, iTunes 12.7 在裝置頁面的設定中多了一個檔案共享的選項。如果只是單純想要從電腦複製檔案到 App 的 sandbox 目錄中(或是反過來),可以直接利用。

--

--