I recently got a new dev machine and downloaded the latest xcode 4.5. It came with IOS 6 only so I went and got sdk 5.0 and 5.1 from older xcodes.
The device im testing on in running ios 5.1 and I'd like to keep it that way for the moment.
In my project settings I have base sdk set to ios 5.1.
The trouble is that when I try to debug on my ios 5.1 device xcode complains that I need to connect an iOS device with a recent enough version of iOS to run my application.
How can I solve this problem?
You can surely run your app on a iOS 5.1 device when using Xcode 4.5 - I am doing that at the very present moment.
Have you checked in Xcode organizer if your device is configured for development? Go to the Organizer (one of the top-left icons), select your device from the lefthand list and click on "use for development" (if available).
Hope this helps.
I have xCode 4.5 like you and I have an iPod Touch 3G 5.1.1 which works perfectly with iOS 6 SDK.
The SDK Number doesn't tell you that it only works for that firmware.
In your Project settings under targets you can define the sdk, not the sdk you build with(this is 6.0) but youcan tell what the minOS is
Try restarting with your 5.1 device plugged in.
My iPod 5.1.1 is provisioned and has been used for development. If I choose the scheme "iOS Device" Xcode 4.5.2 refuses to run, telling me "Xcode cannot run using selected device". However it does work when I set the scheme to "robert's iPod" (or whatever). This choice doesn't show up right away when I plug the device in, and sometimes I seem to need to quit and restart Xcode and/or iTunes (or reboot) in order to see it.
Related
I have set deployment target to iOS 8.0 in both project and target settings (Xcode 9.2, Swift 4). Everything builds fine and with my testing iPhone 4S device (iOS 9.3.5) I can run app and works fine.
My problem is that same build in App Store allows only to download app for iOS 10 or newer. I get this message when trying to download from App Store:
"App name" is not compatible with this iPhone.
When I tried to look for way to fix this I found this in iTunes Connect (it's in Pricing and Availability section):
Why there is no older version? How can I fix this? I probably dont need to support iOS 8 but I want to support iOS 9.
Thanks for all help
2 things worth doing:
In Build Settings->Architecture, ensure that Build Active Architecture Only is set to NO, particularly for the Release section.
When archiving the project for distribution, ensure that the device at the top left corner of XCode is set to "Generic iOS Device" and not a device connected to your MacBook via USB. This is because despite setting Build Active Architecture to NO, XCode seems to not honour the setting.
Source: https://forums.developer.apple.com/thread/67488
I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.
I dont know the reason.
I have checked this on My Mac.
[EDIT]
Steps
Build the project on Xcode 7 while Xcode 6 is opened on the same
project.
Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
When i have checked iOS9 with Xcode6, Bugs are very less.
So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though.
Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x.
After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
(What you cannot do, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
Happy coding.
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
Not the easiest or correct way. But if you really have to test once or twice in the device.
In Xcode,
Product -> Archive
Build for Ad-Hoc Distribution
Connect the device
Open Itunes, Select the device,
Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
Press install
App will be installed to the ios9 device.
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.
I think the problem first occurred after I updated Xcode to version 5.0.2:
Whichever scheme I set in Xcode - whether it's iOS 5.0, 5.1 or 7.0 - when I build and run the project the simulator always launches my app in an iOS 7.0.3 environment (that's what the simulator's windows title states). So there is no way to test my app for downwards compatibility.
What's the problem here?
Is there some other trick that I need to perform in order to simulate my app in an iOS 5.1 environment?
After searching for solutions for hours I finally found the reason why I cannot select other iOS versions in the Simulator:
It's Mavericks!
In this post in the Apple Developer Forums (Developer account needed to access the forum!) an Apple employee states:
The iOS 5 simulators do not work on OS X 10.9 (Mavericks).
and he says the reason for that is:
The iOS simulator does not duplicate some of the low-level parts of iOS. For example, it uses the host OS X's kernel instead of trying to virtualize the iOS kernel. The iOS simulator requires that these subsystems look sufficiently similar between the simulated iOS and the host OS X. When a new host OS X changes too much it can break old simulators. At that point somebody makes an engineering and cost decision to either update the old simulator or drop support for it.
So if you have installed Mavericks (and do not downgrade if that's even possible) you have no option to run the Simulator with iOS versions < 6.
(If you want to test your app in the Simulator with iOS 6 and 6.1 SDK proceed as the other replies and comments on this page suggest: Go to XCode > Preferences > Downloads and download the corresponding simulator version in the section "Components".)
Check if YourTarget->Build Settings->Deployment->iOS Deployment Target is set to iOS7.0. If so, you need to decrease this value.
You must download to Xcode the iOS 5 SDK for the simulator.
Go:
XCode -> Preferences -> Downloads -> Components
And there you have the option of download the previous simulator.
After that, restart Xcode and before running is just select the version of iOS you want the simulator use:
I am starting the development of an iOS Application. One of the main goals for my application is to support as many devices as possible, so after some research I found that I would need my app to be supported on iOS 4.3 and above. I have OSX Mountain Lion and XCode 4.5 which comes with iOS 6.0 SDK and Simulator Pre-Installed.
I have downloaded iOS 5 Simulator from XCode preferences but there is no option to download the iOS 4 Simulator. Are there any workarounds to get the iOS 4 Simulator running on my Mountain Lion?
Open the scheme menu(Next to the run and stop buttons), and under the list of simulators/devices, there will be an option, "More Simulators...". You can download all the way down to 4.3 there. However, testing on a simulator is no substitute for testing on a device, and it would be best to get an iPhone or iPod touch with 4.3 installed on it to test.
You can try this:
Download a previous version of XCode prior to 4.5.x
Mount and open the disk image [.dmg]
Select "Go to folder..." command from Finder menu bar and digit the
path "/Volumes/Xcode and iOS SDK/Packages/"
Double-click iPhoneSimulatorSDKx_x.pkg [where "x_x" is the version of the iOS Simulator]
Click into the destination disk and click on the button "Select folder..."
Select your "Developer" folder
Start [or restart] XCode
In this way you'll replace the iOS simulator in XCode 4.5.x with a previous one. I don't know if this will work tho, because on OSX 10.8 Mountain Lion only iOS Simulator 5.0+ is available. If you really need to test your app[s] with iOS 4.3 [and prior] the best thing you can do is to downgrade OSX to 10.7 and install XCode 4.5.x [or 4.4.x]. By the way I think that testing your apps with iOS simulator 5.0+ is just fine.
After today's announcement that iOS 6 Beta is available to developers today, I am wondering if I jump on the iOS 6 ASAP will I still be able to build my apps in progress on my device(iPhone) from Xcode 4.3.2? or will there be a required update for Xcode as well?
Update: Currently I have iOS 6 on my iPhone and Xcode 4.5 installed. After that the organizer in Xcode (4.3.2 and 4.5) said 'could not support development' in the Provisioning. Then fixed that, and now I have 4.3.2 saying that it is running my app on my iPhone, but its not showing up on my phone. And 4.5 gets to the 'TakingInstallLock' point in the process, and just keeps trying, but getting nowhere. Anyone else having this issue? Anyone know of a solution?
You can push apps to your phone from Xcode 4.3.x if your phone is running the iOS 6 Beta.
You cannot, however, utilize any of the iOS 6+ frameworks such as the new Social framework from within Xcode 4.3.x
I can't comment yet so this is to confirm that installing Xcode 4.5 DP acutally installs the iOS 6 SDK for Xcode 4.3.2 as well. This is rather obvious as SDK files are installed in a general place (namely the Library folder) of OSX.
The steps to use your updated iOS 6 device for development with Xcode 4.3.2 thus are:
Download Xcode 4.5 DP from the dev area of apple.com.
Install Xcode 4.5
Start up Xcode 4.3.2
Open up the devices section, choose your device for development, wait for the process of fetching information to finish and you are good to go.
Regards!
Any apps that you write using beta software will be rejected. To translate, if you use iOS 6 SDK beta or the new Xcode beta that gets released today, your app will be rejected even if you make a build for just iOS 5.
I installed iOS6 and Xcode 4.3.2 didn't recognize my device. After installing Xcode 4.5 beta and letting it install a few things, 4.3.2 now recognizes my device and I can carry on building and testing on my iOS6 device.
I would say no!
I updated last night and now I can't run my app on my phone.