简体   繁体   中英

Run on device gets “Finish running on device” message but never runs

I'm trying to run for the first time an app in a device.

  • XCode 4.2
  • iPhone 3G 4.2.1

  • I have a provisioning profile showing under Xcode organizer installed with a wildcard app identifier (DQQVZJ94G3.*).

  • The device lists in XCode organizer.
  • I have certificates installed in my Mac keychain and they show the private key.

  • I have created a new project from template and didn't add a single line of code.

  • I have set iPhone as my schema.
  • I have set under Build Settings->Code Signing->Code Signing Identity->Debug->Any iOs SDK-> the iOS Development Certificate/Provisioning Profile pair.
  • I have set the tagert deployment target as 4.1.
  • I have set Bulid Settings->Architectures to Standard(armv6)
  • I have removed from plist file "required devices capabilities"->armv7

All the previous settings are set up in the Target settings.

  • I have realunch xCode and reinstalled certificates and profiles.

Whenever I hit Run, I just get "Finish running myApp on iPhone", but nothing happens, not even a log to get a cue of what's happening.

Build settings are duplicated: there are project build settings and target build settings. Generally, if you change the project settings, the target settings are automatically changed, and this is useful if the project contains multiple targets. But sometimes, that doesn't work and you have the manually change the target settings which are the actual settings used to build the target. So start with that and verify that the target settings look like this:

  • Architectures : $(VALID_ARCHS)
  • Valid Architectures: armv6 armv7 (default value)
  • iOS Deployment target : iOS 4.2.1 or lower

If that doesn't work, then the problem is probably that the provisioning profile isn't correctly setup. An easy way to make sure it works correctly is to make Xcode manage it for you. So remove the provision profile from your device and from Organizer, also remove the developer profile from Organizer. Then plug the iPhone, right click on it in Organizer and select: Add Device to Provisioning Portal .

Edit

Make sure you remove the other values in Architectures . For example, in the screenshot below, you have to remove the selected line armv7 .

在此输入图像描述

I added armv6 as described in the other answer, then under Target, I had to remove "armv7" from "Required device capabilities"

单击连字符以删除armv7

我有同样的问题,我的解决方案最终是因为我没有将我的iPad的设备ID添加到我的设备列表中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM