Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-12-2011, 05:36 PM   #1 (permalink)
Mobile Apps Developer
 
JoeRCruso's Avatar
 
Join Date: Oct 2010
Posts: 24
JoeRCruso is on a distinguished road
Unhappy How do I build apps for iOS 4.0 with the new Xcode?

Hello all. I was wondering if it was possible to build an app with iOS 4.0 support. When I try to build my project on a 2nd generation device running iOS 4.2.1, Xcode builds the project and says "Finished running Project MiDo on Lisa's iPod" (that's my mom's iPod). The app never shows up on the device. Is there a way to make it run?

Thanks.
__________________
Zach Shea
Mobile Applications Developer at S&J Apps
zshea@sjapps.com
JoeRCruso is offline   Reply With Quote
Old 12-12-2011, 06:28 PM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

Xcode supports iOS 4. I don't know what your problem is though.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 12-12-2011, 07:20 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,005
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by JoeRCruso View Post
Hello all. I was wondering if it was possible to build an app with iOS 4.0 support. When I try to build my project on a 2nd generation device running iOS 4.2.1, Xcode builds the project and says "Finished running Project MiDo on Lisa's iPod" (that's my mom's iPod). The app never shows up on the device. Is there a way to make it run?

Thanks.

You set the base SDK to the current OS (5.0.1). Then you set the deployment target to the lowest OS version you support.

You can also set the base SDK to be the same as the deployment target. In that case, though, you can't use any features from a later OS version.

If your base SDK version is higher than your deployment target version, and your code uses any features from OS versions newer than your deployment target version, you have to check at runtime to make sure those features are available, and then "fail gracefully" or have an alternate way of doing things for older OS versions. This last step can be the hardest, because how you do it depends on the specifics of your app.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 12-12-2011, 09:23 PM   #4 (permalink)
Mobile Apps Developer
 
JoeRCruso's Avatar
 
Join Date: Oct 2010
Posts: 24
JoeRCruso is on a distinguished road
Default

I have set the deployment target to 4.0 and the base sdk to current, but that doesn't seem to have an effect. I think I remember something about changing architectures or something, but I'm not sure. Any ideas?
__________________
Zach Shea
Mobile Applications Developer at S&J Apps
zshea@sjapps.com
JoeRCruso is offline   Reply With Quote
Old 12-12-2011, 10:22 PM   #5 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,005
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by JoeRCruso View Post
I have set the deployment target to 4.0 and the base sdk to current, but that doesn't seem to have an effect. I think I remember something about changing architectures or something, but I'm not sure. Any ideas?


There are all kinds of things you have to get right. What kind of device is it? You probably want to build for arm6 and arm7 if it's an older device like a 3Gs. For iPhone 4, iPad and later, you can build for arm7 only.

You also need to make sure you have a valid provisioning profile installed on the phone. These days that's usually as simple as hooking the device to your Mac, opening Xcode, going to the devices tab, selecting the device, and clicking "use for development". Xcode takes care of all the nonsense of collecting the device's UDID, sending it up to Apple's server, adding the device to your development provisioning profile, and downloading the updated provisioning profile.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Reply

Bookmarks

Tags
build, ios 4, project, support, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 402
14 members and 388 guests
7twenty7, AppsBlogger, Creativ, David-T, Duncan C, HemiMG, heshiming, LunarMoon, Murphy, pbart, sacha1996, Sami Gh, teebee74, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:49 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0