iOS This application does not support this device’s CPU type

The iOS project build was successful, and the installation on the real machine reported an error:

This application does not support this device’s CPU type

Solution:

Modify Build Setting-Architectures-Valid Architectures. According to your model, add the required instruction set.

 

For example, if the machine that needs to be installed is iphone6s, but Valid Architectures only adds the instruction set of armv7, it will prompt This application does not support this device's CPU type. Need to add arm64, as shown below:

 

armv6:

  iPhone, iPhone 3G, iPod 1G/2G

armv7:

  iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad 2, iPad 3, iPad Mini

armv7s:

   iPhone 5, iPhone 5c, iPad 4

arm64:

  iPhone X,iPhone 8(Plus),iPhone 7(Plus),iPhone 6(Plus),iPhone 6s(Plus), iPhone 5s, iPad Air(2), Retina iPad Mini(2,3)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325860903&siteId=291194637