Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
618 views
in Technique[技术] by (71.8m points)

objective c - XCode: application->iPod Run/Build not uploading app

Xcode says it builds and finished running on my iPod except the app is not on my iPod.

Using Xcode 4.2.1 on Mac OS X 10.7.2

also note that the xcode"log navigator" shows a number of the build/debug instances with status wheels spinning.

On the organizer I get the following repeating:

Sun Jan  1 15:34:53 unknown com.apple.mobile.lockdown[16] <Notice>: Could not receive size of message
Sun Jan  1 15:35:53 unknown lockdownd[16] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from iTunes. Killing connection

I have disconnected, closed programs, rebooted the Mac, and still get the same problems.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

note: This answer assumes you will be able to run your app on an iPod touch. If you are using a resource not available on an iPod touch, like GPS for example, you may be being prevented from running your app by a GPS device requirement(see required device capabilities).

This sounds like a classic example of trying to run on an iPod touch 1st or 2nd gen without jumping through the apple imposed hoops. (Says finished running but never runs, logs are just spinning indicators.)

To build for these older devices, you must jump through these hoops:

How to add support for iOS 4.2, armv6 in Xcode 4.2 and up:

Set your deployment target to 4.2 or earlier: enter image description here Modify Architectures to include armv6 like so: 1)Select Other, enter image description here 2) Click on the "+" button, enter image description here 3) Type in "armv6", enter image description here 4) Click done.

Then remove armv7 from required device capabilities by clicking the "-" button in that row.

enter image description here I personally use this method constantly to run apps on my iPod touch 2nd gen with the newest Xcode.

In fact the project that I used for this example now runs on that iPod.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...