开发者

xcode cannot find the software image to install this version

I'm new to xCode development and struggling my way throug开发者_运维知识库h the provisioning system trying to run a Hello World app on a real device. I went through al steps and everything seems fine but one thing:

When i click my device (Iphone 3G running IOS 4.2.1) in the xCode organizer the following message is displayed under Software Version: Xcode cannot find the software image to install this version...

Also the provisioning profiles show no status in the organizer (both in the library and on the device). On the provisioning portal they have the status active.

I hope someone can help me, thanks!!

ps. i am working with xcode 4

Update: OK, I've found the solution -> set deployment target to 4.2 in info tab: https://discussions.apple.com/thread/2780316?start=0&tstar


The message "xcode cannot find the software image to install this version" seen in the organiser window... This is just a notification rather than a problematic error.

If you want to eliminate this message anyway, I found I was able to do this by running restore within iTunes. Part of that process involves downloading some stuff, which I presume is the 'software image'.

But, as explained in Technical Q&A QA1569 "This message does not prevent you from using the device for development purposes. The only effect is the inability to reinstall the OS currently on the device using Xcode." ...and that has been my experience. Back in the main Xcode window you're still able to click 'run' and send the app to the device to run.

...and it will run assuming everything else is set-up OK, but there are various other gotchas related to Xcode 4.2 and v4 devices:

  • As mentioned by Overbeeke you should ensure the 'deployment target' of your project is set down to the desired version (the minimum version of the devices you want to support) Additionally I would point out that the 'SDK version' should normally remain set to the latest (it's whatever SDK Xcode on your machine is using)

  • As mentioned by Kenneth Lam, in the new Xcode you need to frig around with "armv6/armv7" settings if you want to support earlier models of iPhone. Follow these instructions to add the right "Architecture" armv6 setting. Additionally I would point out (as per this answer further down) that there is a setting called "Required device capabilities" from which you need to remove 'armv7'. This is in your app's plist file.

I'm saying all this like I'm an expert, but I still can't get it to work on a v3.1.3 device :-)


I think Xcode 4 requires that you are running the latest iOS to use that feature, but you don't need it to install apps on a device. I have run my apps on an iPod Touch 1G (which can't be upgraded to iOS 4.3) with the same iOS as you and it worked.

Have you added your device to the provisioning profile?

What I did is opened the organizer, right click on the device on the left pane and select "Add device to provisioning profile" where you will be asked for your Apple ID (within xcode) and it will add the device to your profile without you leaving xcode, much simpler than using the online portal.


Xcode 4.2 only builds armv7 targets by default. (Iphone 3G running IOS 4.2.1 is armv6) Add armv6 build targets by following these excellent instructions from Nick "Warning: iPhone apps should include an armv6 architecture" even with build config set


just an update, to update the iOS deployment target, click your project in the left pane, the one with the blue 'A' icon. click the build settings tab (not info), instead of showing "basic," show "all." iOS deployment target is in the deployment section.


There could be a number of things, but i would make sure that that your deployment taget in build settings is at or below your target . Check the "deployment section" in the build settings of your project. The default sets the deployment to the highest iOS version, if the ios version is below what is set you will not be able to run the app on that device.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜