Xcode 6.0 taking forever to archive my project - ios8

Xcode 6.0 taking about 8 hours to archive a fairly large project! Any idea how to make the archiving project faster? The archiving just gets stuck for hours at compiling 42 of 42 source files. Also, sometimes Xcode just crashing after hours of attempting to archive.
I recently upgraded my Mac to a 2.3GHz quad-core Intel Core i7 processor and 16GB RAM, but unfortunately that didn't help. I want to understand if it is a PC configuration issue or an Xcode issue. In other words, if I upgrade to a Mac Pro, would that help?

Try to cancel archive, restart and try again.
If this doesn't work use other old method.
Build you project. Go to left pane-> product ->here you will see .app.
Show in finder .app file under product folder, drag and app in .app in iTunes.
There you will see you app in iTunes, again show in finder and you will see ipa file.

Related

React native - cant see podfile in xcode

I created a react native app using react native cli.
When I use finder to navigate into ios folder I can see podfile.....however when I open the project in xcode I cant see it anywhere.
Any idea why?
UPDATE 4/29 - I tried answer below to "Open the xcworkspace file with Xcode not the xcproj one"....and this did not work. Regardless of which file I use to open, I still dont see podfile (or xcworkspace file for that matter)
Im using Xcode 12.5.....and a macbook air with the new M1 chip (I mention this because the M1 chip has been causing me a host of other problems like not being able to download IOS simulator)
Open the xcworkspace file with Xcode not the xcproj one.
I ended up exchanging my macbook air with M1 chip....for an older one with Intel chip. All the issues I was facing before are no longer.
My advice is to not purchase any laptop with M1 chip until Apple have had time to figure out all the bugs that occur for developers (M1 chip was only launched last Nov and theres still SO many issues for devs).

When I attached my device to the xcode and try to build my project it's generating error

Could not locate device support files.
This iPhone 5s (Model A1457, A1518, A1528, A1530) is running iOS 10.3.1 (14E304), which may not be supported by this version of Xcode.
You need to update Xcode whenever the iOS version you want to work with is higher than the highest version that Xcode's simulator has installed. This can be done one of two ways. The simplest is to use the App Store to download/update Xcode. If the App Store doesn't show any updates, you must manually download the latest Xcode build from https://developer.apple.com/.
You will need to manually download from the Developer portal when the version of Xcode on your computer was downloaded there previously. For example, many beta testers may download the file directly instead of using the Mac App Store, since it is a beta download.
I would recommend trying to keep updates done through the App Store by downloading Xcode from there initially. The benefit to this is that it can automatically update as well as save space on your computer (Xcode is a big file, and you may not have enough space to download a new version if you still have the old version).
As of the comments, I will now write an answer. :-)
Whenever you encounter this error there might be two reasons for that:
The OS version is too old
The iPhone's/iPad's OS is too new for your Xcode version
If it is too old, you may need to download older SDKs and OS versions.
You can do so in Xcode. Go to "Preferences" -> "Components" and download the appropriate Simulator.
If the devices OS is up to date, you have to make sure your Xcode is also up to date.
Either you update Xcode through the AppStore OR (and I prefer this way, as the AppStore is used to hang up in a certain state and cannot be completed any longer until you restart the Mac, at least I had this several times).
Side note: Xcode requires multiple GB of free storage. Make sure you have enough free storage left for an update.
You can download the latest Xcode version from the https://developer.apple.com portal:
Go to Downloads:
And then select the item of interest (in your case Xcode)

Where are iOS simulator files?

So because of the poor internet connect I have in China, I downloaded iOS 9.3 simulator SDK from here via multithreads web connection: devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.dmg
After installation the simulator doesn't show up in my hardware (Xcode menu), so I guess it wasn't compatible with the newest Xcode 8.3.2, yet it does take up additional 3.6 GB storage space of my laptop (of which only has 9 GB left right now). I then left the laptop on and downloaded the SDK from Xcode directly and installed it successfully, the problem is that it didn't remove the 3.6 GB files from previous installation so now I have less than 1 GB left on my laptop. I like to find out where the SDK is and manually remove them to free up storage space on my laptop.
/Library/Developer/CoreSimulator/Profiles/Runtimes
In 2021 onwards, the device emulator files be found at ~/Library/Developer/CoreSimulator/Devices/, but this contains all simulators installed, which is currently 24 devices on my machine.
~/Library/Developer/CoreSimulator/Devices/$DEVICE_ID/data/Library
To find out your simulator device id:
Launch your simulator
xcrun simctl list 'devices' 'booted'
== Devices ==
-- iOS 14.4 --
iPhone 12 Pro (1320D7BA-FB2E-4E1C-834B-09BE5031054B) (Booted)
iPhone 12 Pro Max (91512DCC-DCEA-4ED4-9731-52D895399940) (Booted)
-- tvOS 14.3 --
-- watchOS 7.2 --
cd /Users/username/Library/Developer/CoreSimulator/Devices/91512DCC-DCEA-4ED4-9731-52D895399940/data would contain these files:
Extra: how to get a Application.app to run on simulator
For example, you could take this app and share it with someone else.
cd /Users/username/Library/Developer/CoreSimulator/Devices/emulator_id/data/Containers/Bundle/Application/
ls # This will list all the application directories, where each directory contains a `.app` file which will work on emulators.
You can drag this .app file onto another simulator and it will install.
You can use Disk Inventory X Application to spot large files in your mac. It is very useful to remove and free up some space.
Anyway, answering your question, the simulator files is in /Users/[Your user account name]/Library/Developer/Xcode/iOS
you should be able to find those unused file there
The best way to deal with this problem, is using an app called DaisyDisk, because XCode download new simulators every time iOS update, today you have iOS 10.3.x, even you delete those, XCode will download iOS 10.4.x or iOS 11 again in the future, you'd have to manually delete those files again.
Using DaisyDisk makes discovering these simulators, as well as deleting them fairly easy, I strongly recommend you to try it.
Bravo Apple for making 128G Mac users suffer :)

Xcode 7 crash symbolication with OS X Application on Mac App Store

Im trying to get crash symbolication to work on Xcode 7. My app is already on the Mac App Store and I'm getting crash reports. The problem is that they are not symbolized. When uploading to itunesconnect I did check the option to upload the DSYM files.
If you notice on the screenshot below, the first 2 lines are indeed symbolized, but they belong to one of my frameworks not the main application. The main application is giving me a 0X10093d000 symbol repeatedly.
What could be the problem?
[Update: Still don't have all crashes symbolicated in 7.3, but for each crash condition, we can usually page to an individual crash report which is symbolicated]
Try XCode 7.3
For reasons unknown, we can only reliably symbolicate our latest production release with XCode 7.3, even though we didn't use it to create the release.
7.3 introduced some new errors and warnings, so if you do download it, I recommend you download it from Developer Center and install in a seperate directory which does not overwrite your current XCode 7.x install.

XCode 3.2.6 hangs up

My Xcode 3.2.6 is hanging up constantly.
While I'm coding with no apparent reason it starts consuming more and more CPU, CPU temperature rises up to 80 celsius, the fan get exhausted and I'm forced to "force-quit" it and relaunch it to be able to continue working...
It start happening this week and nobody else on my project is having the same troubles.
My OS is Snow leopard 10.6.8
Any ideas on what could be happening?
I had the same exact issue with my Xcode 3.2.6 project... Would start out using one core and if I let it sit, would use all 8 cores of my i7 MBP. Very frustrating having to restart Xcode every 5 minutes.
My issue actually was resolved when I removed an iPhone from the Organizer that was running iOS 5.0.1. Xcode was trying to get information from the iPhone, and wasn't able to, since the iOS SDK requires Xcode 4.x
I also removed all the user settings from within the project's *.xcodeproj package as well; not sure if that had additional effect. removing those without removing the iPhone had no effect, though.
Have you tried doing a "clean" on the target? Have you tried checking your disk with Disk Utility?

Resources