通过iPhone 5s 砸壳后的ipa,在重签名后安装到iPhone X 时一直报错:The application is not built for this device
。
这是由于砸壳的iPA做了瘦身,info.plist里支持的设备不全,需要修改info.plist
的UISupportedDevices
项,把需要的设备添加上去即可,重新运行xcode即可。
<array>
<string>iPhone12,5</string>
<string>iPhone12,3</string>
<string>iPhone12,1</string>
<string>iPhone11,8</string>
<string>iPhone11,6</string>
<string>iPhone11,4</string>
<string>iPhone11,2</string>
<string>iPhone10,6</string>
<string>iPhone10,5</string>
<string>iPhone10,4</string>
<string>iPhone10,3</string>
<string>iPhone10,1</string>
<string>iPhone10,4</string>
<string>iPhone6,1</string>
<string>iPhone6,2</string>
<string>iPhone7,2</string>
<string>iPhone8,1</string>
<string>iPhone8,4</string>
<string>iPhone9,1</string>
<string>iPhone9,3</string>
<string>iPod7,1</string>
</array>
网友评论