更新时间:2023-10-15 19:00:04
我有尝试在iPhone 3G 4.2.1上运行新创建的Xcode 4.2项目同样的问题。以下是我如何让它运行。
I was having the same issue trying to get a newly created Xcode 4.2 project running on an iPhone 3G 4.2.1. Here is how I was able to get it to run.
1)将目标的构建设置==>架构从标准(armv7)更改为其他。添加armv6和armv7。
1) Change the Target's "Build Settings" ==> "Architecture" from "Standard (armv7)" to "other". Add armv6 and armv7.
2)将目标的构建设置==>有效架构更改为armv6和armv7。
2) Change the Target's "Build Settings" ==> "Valid Architecture" to armv6 and armv7.
3)将目标的构建设置==>iOS部署目标更改为iOS 4.2。
3) Change the Target's "Build Settings" ==> "iOS Deployment Target" to iOS 4.2.
4)打开项目* -Info.plist,删除设置所需的设备功能(注意它需要armv7)
4) Open the projects *-Info.plist, remove the setting "Required device capabilities" (note it required armv7)
顺便说一句,当我尝试通过组织者手动添加应用程序并且它报告时,我想出了这个:
btw I figured this out when I tried to manually add the app via the organizer and it reported:
可以安装应用程序
Can't install application
/Users/.../TestsDebug.app上的应用程序的Info.plist指定
设备功能要求,但不满足开发者iPhone 3G
The Info.plist for application at /Users/.../TestsDebug.app specifies device capability requirements, which are not met by Dev iPhone 3G
之后一切都应该有效。谈论PITA。
All should work after that. Talk about a PITA.