How to test IOS 6 on XCode 7 El Capitan? - ios

I am not an IOS developer. I have a Cordova app with two small errors on IOS6. The app has been compiled in Xcode 7.2 on El Capitan usign the following configuration:
The app compiles and works ok on an IPhone 3GS device running IOS 6.1.6; however, our customer has found some errors on an IPhone 4 running IOS 6.0.
I don't have any device like that. I tried to install an old version of the simulator that crashed my XCode so I had to reinstall it.
Then I decided to try on a Mountain Lion virtual machine running XCode 4.5. I copied the project and tried to execute it to find this error:
Failed to load project at '/Users/holamundo2/Desktop/IOS_original/isosmed/platforms/ios/holamundo2.xcodeproj', incompatible project version. I don't know how to make the project "compatible".
Finally, I even tried wildly to copy from the simulator in El capitan to the simulator in the Virtual machine. Obviously, it didn't work either.
So I have two questions:
1. How can I change an Xcode project created from XCode 7 to one I can run from my virtual machine?
2. Is there any other way to copy/paste one simulator image to another in order to run the application?

Related

can't add simulator to xcode 7.3.1

I installed xcode 7.3.1 and started a new project with single page template, but when i try to run it it says that "build only device cant run the application and i should add new device or simulator".
when i go to "window->devices" there is only one device and it mymac system, when i hit + button and add simulator i have ios version 9.3 and after selecting the device type and giving it a name and hitting the create button, nothing happens.
/Library/Developer folder dose not exist.
Mac OS X El Capitan 10.11.2
Just to be sure, i uninstalled xcode 7 using cleanmymac3 and restarted system and installed xcode 6.4, it installed successfully and had multiple simulators already defined and a test project successfully run in the simulator. Then i installed xcode 7 witch told me that a older version already exist and if i want to keep them both or replace the older and i choose to replace.Then started a new project with xcode 7 and it was still the same no simulator and i am still not able to add any.
any solution? I am a xcode and MAC noobi ...
Try to Update your OSX to latest version i.e. 10.11.5 because XCode 7.3.1 requires updates OSX / macos
hop it will help you
Ok, it seems iOS 9.3 simulators are not compatible with AMD cpus :D (go figures) or that my MAC's AMD kernel was not good or ..., anyway the same file installs the components correctly with Intel cpu. poor AMD ...

Unable to boot iOS simulator

I am using MAC OSX YOSEMITE 10.10.3 with Xcode 6.3.2 configuration.
When i am going to run app on iOS simulator, it shows me unable to boot iOS simulator.But with device it works fine.
Can any one help me here, I had tried so many thing as googled. But not getting any solution.
Reinstalled Xcode 2 times also.

iPhone running iOS 8.3 shows up as ineligible in Xcode 6.2

Current setup:
iPhone 6+ updated to iOS 8.2
iMac running Mavericks (10.9) with Xcode 6.2
Deployment target set to 8.2
When I connect the iPhone, it shows up as ineligible.
Also, it shows this warning:
I've tried:
to reboot both iPhone & iMac -> Not solved
to manually select iPhone from: Product > Destination > Ineligible Devices
Many other answers in this question, but all for problems using Xcode 6.3, not 6.2.
I know I can solve this:
upgrading to Yosemite & installing Xcode 6.3
using an iPhone running 8.2
But is there any possibility that mounting the Xcode 6.3 DMG and copying some libs / symlinking something it will work?
Just copy the folder DeviceSupport/8.3 from Xcode 6.3 to Xcode 6.2.
Details:
Download Xcode 6.2 and 6.3, install as /Applications/Xcode_6.2.app and /Applications/Xcode_6.3.app (or similar names)
In both installations, there's a folder Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
In Xcode 6.2, this folder contains packages for iOS 8.2 and many lower versions, but not for 8.3.
In Xcode 6.3, this folder also contains a package for iOS 8.3. In my case, the folder is called 8.3 (12F69)
Copy the iOS 8.3 package from Xcode 6.3 to Xcode 6.2 (this command is one line, of course):
cp -r '/Applications/Xcode_6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3 (12F69)' '/Applications/Xcode_6.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'
Or even better, create a link:
ln -s '/Applications/Xcode_6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3 (12F69)' '/Applications/Xcode_6.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'
Now restart Xcode 6.2 and connect your device through USB. Xcode should allow you to test apps on it.
Diego Freniche's solution (copying the whole iPhoneOS.platform folder) was a great help, but when I ran my app from Xcode 6.2, it looked slightly different than it did when I deployed an ipa file on the phone (buttons in wrong positions, status bar display wrong). I guess Xcode got confused and built the app as if it was targeted at a different iOS version.
With this solution (only copy one folder in DeviceSupport), it looks like the app works exactly as it is supposed to. I'll let you know if I encounter problems, but I haven't seen any so far.
A little progress, but this is a WIP.
Looks like in Yosemite Xcode 6.2 works correctly with 8.3 devices. Need to test on Mavericks
Testing with Xcode 6.2 in Yosemite (need to test also in Mavericks, any feedback would be appreciated)
Go to your Xcode 6.2 folder and rename
/Applications/Xcode-6.2 copia.app/Contents/Developer/Platforms/iPhoneOS.platform
into
/Applications/Xcode-6.2 copia.app/Contents/Developer/Platforms/iPhoneOS.platform.old
Mount your Xcode 6.3 DMG, install it
Copy from Xcode 6.3 this folder:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
inside your Xcode 6.2 folder.
you'll probably find an error telling you rootuser does not own the simulator / OS Platform folder. To solve that just open Terminal, then:
$ cd /Applications/Xcode6.2.app/Contents/Developer/Platforms
$ sudo chown -R root iPhoneSimulator.platform/
$ sudo chown -R root iPhoneOS.platform/
now you can run your app inside your iOS 8.3 device from Xcode 6.2 but you have no simulators in the target tdestination menu
UPDATE: I'm getting weird errors while ibtool tries to compile the storyboards:
/Users/dfreniche/Desktop/Test/Test/Base.lproj/Main.storyboard: The operation couldn’t be completed. (com.apple.InterfaceBuilder error 2001.)
So finally give up and update to Yosemite. If there's any new info on this, please share.
Had the same problem with connecting iOS8.3 devices to Xcode 6.2 on Mavericks. Ok on a machine at work running Xcode 6.4 on Yosemite. Software update on the Mavericks machine doesn't offer any higher version. Looking at the specs of Xcode 6.4 (and presumably 6.3 of the original question) says it requires OS X 10.10 (i.e. Yosemite). So, whether or not you can hack around it, the behaviour you/we are seeing on Mavericks is what Apple intends.
I have the same issue and I don't want to just use the lastest version of XCode for the need of maintaining my old projects. I end up with installing two versions XCode(6.2 and 6.3) to solve this problem. Here is what I did.
Download XCode6.2 install package from apple site
Upgrade the existed XCode6.2 to x6.3
Open my project on XCode6.3 (this time the device can be recognized by XCode, and I think XCode6.3 might have done some updates to your project.)
Close my project, re-install XCode6.2, there will be a prompt saying I have a newer version and if I want to keep both. Click Yes. Then I have two versions of XCode.
After all those steps done, I can finally open my project and use my device in XCode6.2. Hopefully it can help someone.
XCODE 6.3 is out.. It solved my problem.. If you have Yosemite, you can download the 6.4 beta version

XCode Compatibility Issue with different versions

I recently made a project using XCode 4.5.1 on iOS 10.8.
I want to run this project on a different computer using XCode 4.4.1 on iOS 10.7.5.
It is currently giving me the error:
XCode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
Is there a way to open the project on the other computer without having to redo all the delegations and such?
I have tried turning off AutoLayout and running it on the iOS 10.7.5 computer and it is still giving the same error.
Thanks!
Change the deployment target to the ios version you want to run the project on.

Do I have to upgrade to Lion to test on iPad with iOS 5.1?

I recently just updated my work's iOS to 5.1. When I click run in Xcode 4.2, I get this error:
The selected scheme is my iOS device.
I am currently running Snow Leopard here, and after checking the portal I cannot run the latest Xcode unless I upgrade to Lion.
Is there any way I can test my app on this device without upgrading to Lion?
The short answer is Yes, you need to upgrade.
Some people have gone to heroic lengths to get SW to run on unsupported OS releases. Here's an example for getting iBooks Author onto Snow Leopard:
http://osxdaily.com/2012/01/20/install-ibooks-author-on-mac-os-x-10-6-8-snow-leopard/
In theory, it may be possible to run Xcode 4.3.1 on Snow Leopard or even jam iOS 5.1 support into Xcode 4.2. In practice, good luck. I would never personally do it, because development is hard enough. If Xcode or your app crashes or has issues, you have to throw out all your assumptions.
You mentioned that it is your work's iDevice. Consider getting them to upgrade your Mac OS or your hardware for you.
If you have 5.1 on a device, then Xcode needs to have the iOS SDK 5.1 installed in order for Xcode to run the app on that device.
If the device has 5.1 installed, and the latest SDK installed in Xcode is 5.0.1, then you will get this error.
I am running Xcode 4.2 with the highest SDK of 5.0 (9A334) and I can compile fine to my iPhone 4s running iOS 5.1 and my iPad 1 running iOS 5.1. I have just connected a new iPad 3 running 5.1 and Xcode says I need to upgrade to SDK 5.1. I went on a wild goose chase on this a few weeks ago after upgrading my 4s to 5.1 from 5.0.1 and installed Lion (which I detest) in a separate partition. After loads of messing around I ended up going back to Snow Leopard and the 4s running 5.1 magically worked. I do not have SDK 5.1 on the system and Base SDK in Xcode shows Latest iOS (iOS 5.0). Therefore it is NOT necessary to have SDK 5.1 in order to compile for 5.0 and run on a 5.1 device.
UPDATE 6-April-12
An update on this. I have just booted into Lion, opened Xcode, the iPad3 is recognised, re-booted back into Snow Leopard, and now I can compile to the iPad3 using Xcode 4.2 on SL. I did absolutely nothing in Lion except for opening an old project and clicking on the iPad3 in the sidebar of the Devices tab in the Organizer.

Resources