3G iPhone Device “finished running” but app won't load

徘徊边缘 提交于 2019-11-29 14:52:53

问题


I'm trying to run an app on a 3G device. Xcode says that the app has "Finished running on the iPhone" but the app will not deploy. I think I have the architectures configured correctly (see image below)

any help would be great,

thanks


回答1:


I figured this out finally. In the Info.plist there's a "Required device capabilities" setting that was set to armv7. I was aware of the armv6 and armv7 requirements in the target build settings for the 3G model but not in the plist. here's a screenshot. hope it helps anyone else stuck with something similar:




回答2:


Your configuration looks fine. I’ve seen this before; removing the device from the Organizer (selecting it in the list on the left of the “Devices” tab and clicking the “Remove” button at the bottom of the main panel), restarting Xcode, and connecting it again seemed to fix the problem.




回答3:


In my case, the architecture in the target properties was set to Standard (armv7). I had to add the armv6 architecture and it worked




回答4:


Check "Required device capabilities" in settings. I had problem with accelerometr set to OFF. When I had remove this line, everything start working.

Same problem on 3G (iOS4) and 4GS (iOS5)




回答5:


Each .xib file and core data model also has a deployment property. It's in the identity inspector. Changing it worked for me.




回答6:


Make sure you have it setup like this in the target build settings, not just the project build settings.




回答7:


Restarting the device usually fixes this one for me.




回答8:


Under Build Settings at the top, you'll not a selection named 'Levels'. If you select this you may find that the Architecture and/or your Code Signing Identity is out of step with the settings that were showing under the 'Combined' setting. I had a case where an App was building successfully and simply not deploying on the phone. When I select "Levels" the values under my App target for these Build settings was incorrect. Once I set them here it deployed to the device fine.

Hope that helps.



来源:https://stackoverflow.com/questions/8127343/3g-iphone-device-finished-running-but-app-wont-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!