Xcode 6.4, component not actually downloaded - xcode6

I was downloading for example the 8.3 component ...
the bandwidth broke off, so it was not downloaded. (The files are not there when you look.)
However, Xcode indicates a tick.
Is there a way to force it to download it again, or, clear that tick?

Actually try this:
In Xcode 6, you can find and delete the simulators from the path /Library/Developer/CoreSimulator/Profiles/Runtimes. Restart Xcode in order to take effect. Link

Related

Said yes to auto-upgrade changes from XCode 7 app to XCode 8, now app won't build

I took a running app that was built under XCode7 and since I'm going to make some updates to it, did a build with XCode 8. After the first build (it was successful), I got a series of "suggestions" that XCode 8 wanted to automatically make for the app. Since I've never had problems doing that, I clicked OK and did another build under XCode 8. Now my app won't link properly! (It's happening on two separate apps, both using Crashlytics and Ensembles)
How can I backout the changes that were automatically made to the app by XCode 8?
If you are using source control with your project, you can go back to the last committed state of your .xcodeproj file. Maybe this is not too far away from the state right before you switched to Xcode 8.

xCode 5 tabbed application not building on iPhone with iOS 6

I created a tabbed application with xCode 5.01, recently downloaded from Apple, and put nothing else in it. It runs fine on the simulator, but when I try to run it on my iPhone 4S, which has OS6 on it, the build fails with these errors:
UIKit/UIKit.h is not found.
The Prefix.pch file is not found.
I looked everywhere and changed the deployment target to 6.0, but it doesn't solve the issue. What's going on?
EDIT: also, following an advice, I deleted the UIKit framework, but when I tried to re-add it (as per the advice) it turns out it's not there.
EDIT 2: Reinstalling xCode solved the issue. Go figure.
Reinstall XCode 5, it is still quite buggy, also when renaming folders, this can cause corrupt data structure inside the project file.

Xcode library reverted to 5.1 from 6

I have been developing an app using Xcode, which included the Facebook SDK. The Facebook SDK requires the AdSupport.framework and the Social.framework, both of which were previously installed, but seem to have disappeared. My question is how do it update the library to 6.0, instead of five? I understand that you have to go into the build phases and add the frameworks in the Line Binary With Libraries section, but when I go to add the framework, the folder is 5.1, not six. I have looked through the Apple doc's and haven't found anything.
Here is an image of what I'm getting:
It should look like this:
There should be no way the SDKs provided with Xcode can regress. However you could see them vanish if you launch an older version of Xcode.
Based on experience, if you had Xcode installed before it was a single app bundle and have subsequently installed the app bundle version then there's a reasonable probability the old version is still present and therefore good odds that a Spotlight launch will open the wrong one.

Xcode build but not run on device

I was in the process of adding a third party library (GPUImage), I actually managed to get it all in and installed on the device. Woohoo!
Then...well you know the story. It doesn't work anymore.
Now when ever I try to build to my device it will "Build successfully" then immediately go to "Finished running".
My setup:
iPhone 4
iOS 5.1.1
OS X Lion
Xcode 4.3.2
I have:
Tried:
Adding in armv6
-all_load
Restarting xcode
Restarting device
Removing device from the organizer then adding it back.
Restarting computer.
Cleaning project and rebuilding
Removing the "Requirements" (?) from the pList (although this app is for iOS 5.0 or higher).
None of these seem to work. If anyone has had this problem PLEEEASE help! I am about to lose my sanity.
In the mean time I will try archiving and doing and OTA install and see if that works.
Thank you very much for your time,
Cory
P.S - I have already seen all the other post on here so please don't paste links to them :)
Problem of Project, Scheme and Target names. This all must be a same. Try rename to same name
"AppName" and "Appname" is not true. Must be "AppName" and "AppName", or "Appname" and "Appname".
I have the same problem - I have the latest XCode iOS SDK 5.1 - but my iPhone is updated with the latest iOS version 5.1.1
Not sure how to solve this as Apple havent released the new SDK. Pretty shit to be honest, as I can't test on my device.
Not sure what fixed my problem but with the new Xcode version the problem stopped. Thank you everyone for your help.

Can a jailbreak survive installation of a new IPSW?

I have a phenomenon here on an iPad 1. It was running 4.3.2 and a jailbreak was applied to it.
Later it has been updated to 4.3.5 which it is still running.
I wrote a little test app to see if I can detect a jailbroken device. The tests I use are:
Use [NSFileManager fileExists] to check if /private/var/lib/apt exists
Use [NSFileManager fileExists] to check if /Applications/Cydia.app exists
The idea is: on a device that is not jailbroken, access will fail in both cases as the app cannot reach out of its sandbox. If either test returns YES, I assume a jailbreak. I tested this on a couple of unbroken devices and neither can be accessed. I also tested on a jailbroken iPhone 3GS and both can be accessed.
The I tried the iPad 1 with 4.3.5 and there is no Cydia installed, so the 2nd check obviously failed but the first one passed! fileExists returns YES for "/private/var/lib/apt"! How is that possible? Can anybody explain?
I can't completely explain this but I've come across similar results.
I used to have a jailbroken iPod on iOS 3 and updated it to iOS 4, after jailbreaking again my settings in Cydia were still present.
When installing a new firmware iTunes still shows ~500Mb of other data, so I'm assuming not everything gets overwritten / deleted during the update.
Actually, let me explain why and how this works:
The iPhone/any iOS device has 2 separate partitions:
/dev/disk0s1 mounted at / (around 1GB), the root partition:
It contains the OS (/System, /Applications, /usr, /sbin, /dev, /Library) and is by default mounted read-only.
/dev/disk0s2 mounted at /private/var (rest of the space), the user partition:
It contains all user data (in /private/var/mobile/) like:
Applications, Preferences
Nowadays, all jailbreak tools move all Applications, etc. from the root partition into /private/var/stash to save space on the Root partition. These are then symlinked back from their original location.
When running an iOS update, the user partition is left mostly untouched, only the root filesystem is restored. Only if you run a full restore, everything is deleted. iOS will then recreate the /private/var filesystem on the fly.
But please refrain from using this kind of code, since not all of the people who have jailbroken their iOS devices are pirating apps, and you putting such code into your app will only tempt script kiddies to crack it again.