开发者

Xcode Build Succeeded but not run on iPhone [duplicate]

开发者 https://www.devze.com 2023-04-13 00:55 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

I have a problem that i don't really understood, i'm using Xcode till yesterday and all work perfect, but yesterday i install Xcode 4.2 with iOS 5, but now when I try to do a run with my iPhone set as target is successfully build the application and then Stop immediately. No Errors, nothing in console logs. The application doesn't even copy over to my device. Xcode says: Building, Running, Finished Running....all within 2 seconds... On the simulator all works, but on the device nothing happen.

i have xCode 4.2 with iOS 5, and i have an iPhone 3G with io 4.2.1 and under the Deployment target i choose 4.2 like last day. Please help me i'm going crazy!

i see on the organizer window of Xcode, that the log give me this result, i copy a small part:

Sat Oct 15 18:17:14 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:14 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:14 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:14 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:15 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:15 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:16 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:16 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:16 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:16 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:17 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:17 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:17 unknown lockdownd[18] <Error>: 2ff6800开发者_JAVA技巧0 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:17 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:18 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
Sat Oct 15 18:17:18 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:18 unknown com.apple.mobile.lockdown[18] <Notice>: Could not receive size of message
Sat Oct 15 18:17:18 unknown lockdownd[18] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing

What is the problem?

P.S. i try to put the architecture to armv6 and build on the device is that the problem?...but how it's changed?...i have never changed the architecture on Xcode.


you are right - the problem is probably that the 3G runs an amrv6 and you are only building for armv7

in your build settings you find a setting for valid architectures. There should be one entry called armv7

just add another entry armv6 to that setting. that should do the trick


If you are using xcode 4.2 and want to install the app on to the device follow the steps that HeikoG tell but also after doing this it didn't help me. But at last I figured it out that in info.plist, they have defined "Required device capabilities" in key section, so just delete it and install the application.


There is also another place where you would have to add armv6. Its under the heading Architectures under category Architectures under Build Settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消