iOS 應用安裝失敗緣由排查ios
看了不少仍是 stackflow 上這個最靠譜: Unable to download application,
如下是一個回答:架構
Most common causes of this issue: Device storage is full The provisioning profile is a developer provisioning profile The ad hoc distribution provisioning profile is corrupted and the device is having an issue with it. The device was restored from a backup and is causing a conflict for over-the-air distribution There was a network timeout Architecture settings of the build and the device are incompatible ( can sometimes happen when "Build Active Architecture Only" is on when building). Not Using Mobile Safari. To find out the exact cause of this issue: Connect the device with iMac. Open Organizer then choose devices. Choose your Connected device from sidebar. Choose Console inside the chosen device. Now install the app it will show the exact cause of problem
就是手機連上電腦,經過xcode的devices窗口的控制檯 查看app安裝失敗時的logapp
當時我問題的log是:ide
因此最後查出來是 應用打包時 Bulid Active Architecture Only
選擇了YES
只適配了一種cpu 架構,因此不一樣cpu架構的機型沒法安裝。ui
再附上一個機型對應架構的連接: apple-ios-devices-dates-versions-instruction-setsthis
不抄了直接給幾個比較好的連接:.net