I'm talking about the GM version. It's not stable enough to get rid of xcode 4. But I'd like to start playing with the new stuff. Is it sufficient to drag it out of the dmg to the desktop and rename it, or is this going to lead to issues once it is dragged into applications?
When you double click to instal it will pop ask you, to overwrite or keep both. Just keep both. Worked for me
Once you extract the app from .dmg the window will be shown with Xcodes' large icon and Application folder. and it will say "Drag XCode Icon to Application Folder to install"(Something like that).
Before doing that, goto application folder just rename the existing Xcode version. And then do the drag and drop.
now you have both versions !
Create New folder in Applications with any name like - "Xcode 5 GM" (whatever new Xcode version, You just need to create folder for that in Applications)
Mount DMG file then Find Xcode file then Drag this file to Application/Xcode 5 GM what you have created earlier.
After file copied go and launch that file to complete installation.
I don't understand all the complication; I install Xcode 4 in /Applications (pretty much have to as it's installed from the MAS) and Xcode 5 in ~/Applications.
The only thing to do then is run xcode-select to ensure the correct command line utilities are used from, err, the command line.
I just installed Xcode 5 and wrote detail instructions Install both Xcode 4 and Xcode 5, especially on how to reuse the old SDKs and Simulators.
Hope it helps
Related
I start by saying that I've installed Mavericks, I was curious to see the new features...
It was better to wait, because (apparently) there are no sensational changes.
Anyway, I'm trying to submit my app to the app store, but after a real hard fight with the code-signing, I have ended up with this message:
"This bundle is invalid. Apple is not currently accepting applications built with this version of the OS."
....From what I read, the only solution seems to uninstall Mavericks and go back to Mountain Lion, but I will be happy if someone else has got a alternative fix.
After some research on Internet I've found a fix for this problem.
1) Open "App Store" and leave it for now.
2) press cmd+shift+g on your desktop and go to /system/library/coreservices/
2) Copy SystemVersion.plist to your desktop, and duplicate the file
3) Open the file with the right name on your desktop, not the copy, and replace the old part with this:
<key>ProductBuildVersion</key>
<string>12E55</string>
<key>ProductCopyright</key>
<string>1983-2013 Apple Inc.</string>
<key>ProductName</key>
<string>Mac OS X</string>
<key>ProductUserVisibleVersion</key>
<string>10.8.4</string>
<key>ProductVersion</key>
<string>10.8.4</string>
4) Now copy this edited file to /system/library/coreservices, and go to "App store" application.
5) Download Xcode 4.6.3, now you can because your OsX is detected as Mountain Lion.
6) Once the download its finish, and Xcode installed, reboot.
7) Open your project in xcode 5 beta, if you have some .xib files, go in the file inspector, document versioning, and change development version to 4.6 instead of 5. Do this for each .xib, then close xcode 5
8) Open Xcode 4.6.3 and reopen your project. Check in the build settings that 10.9 is not present anywhere. Replace it with 10.8 or whatever you need.
9) Make clean, Build for archiving, Archive ... Cross your finger!
10) Your project should be validated now.
11) Once you uploaded your app, rename the SystemVersion.plist (copy) on your desktop, and copy it back to /system/library/coreservices. You don't need to reboot.
It's kinda a hack, but if you don't want to reinstall everything, it's the only way to go.
P.s: after replacing SystemVersion.plist, you will notice strange behaviors in the Os, like safari that isn't working and so on, that's why I suggested to duplicate the plist file, before changing the os version. Anyway if you can still use terminal and "vi" to restore everything, if for some reason you didn't copy the original.
Hope this will help someone. I've lost a day figuring out a solution ;)
Same problem with build 13A3017 on Mavericks
Switched it to 13A603 and it worked.
It's quicker to use this command in terminal and just make a note of the original build number to switch it back afterwards.
sudo nano /System/Library/CoreServices/SystemVersion.plist
but should probably make a copy of the file first just in case
I got this problem while I was using Mavericks 10.9.1 (build 13B40) and Xcode 5.1 dp. I finally solve the problem by:
Use Xcode 5.0.2 instead of Xcode 5.1 dp.
Go to /system/library/coreservices/ and modify the SystemVersion.plist using the copy/paste as #Benz 's answer. Thanks to #Benz
After copying and backing the SystemVersion.plist, modify the content as following:
mod ProductBuildVersion to 13A603, which is the build number of Mavericks 10.9.0 GM.
mod ProductUserVisibleVersion and ProductVersion to 10.9.0
Replace the SystemVersion.plist using the one you've modified.
Restart the Xcode.
Rebuild and achieve the app.
Submit.
Succeed!!!
Restore the SystemVersion.plist using the original file you've backed.
If you don't want to mass with the SystemVersion.plist, here is another way to get through it on 10.10:
After you made the archive, you can modify the .app bundle and .plist in the archive's root to match a valid accepting version. Then use the Xcode to submit it. No need to mass with the code signing or Application Loader.
If you want a simple solution and don't mind to pay for it, I've created a tool to do it with ease: https://vox.vg/xcarchiver/
I have a .gdbinit file. I have been using it for years. It is in my home directory. I still need to do Xcode debugging under gdb, not lldb. But Xcode 4.5.1 does not load the file when it runs an app.
I can load it manually with 'source ~/.gdbinit'. But that's a pain! Any way to configure it to load on launch?
How about adding source ~/.gdbinit to the Pre-actions part of the "Run" scheme in your project (Cmd + < to access the scheme editor)?
I read somewhere and have experienced that Xcode 4.5 and 4.5.1 have many bugs in them and this could be one of them. I cannot really help with this but to say:
1.) remove xcode.app from finder in applications
2.) download Xcode 4.4.1 from the apple website: https://developer.apple.com/downloads/index.action?name=Xcode%204.4.1
3.) put it into the applications folder.
4.) Run Xcode 4.4.1 and run your app!
I have had to do this twice due to these two versions of xcode being buggy.
I am trying to locate Icon Composer, which was supposedly downloaded as part of Xcode, however I can't find it, neither in applications nor with the spotlight.
Any ideas where it might be, or if I have to download it separately? If so, where from? I tried looking for it in the App Store, but nothing found.
Edit: I am using Xcode 4.3.2 if that helps.
Newer Versions
As of Xcode 4.4, Icon Composer is no longer bundled with the IDE. However, you can still download the program from Apple's developer downloads page (developer.apple.com/downloads/)
Search for "Graphics Tools" and download the latest version of the tools, which is currently the version for Xcode 5.1
Older Versions
In Xcode 4.3.1 and up Icon Composer can be located in this directory.
/Applications/Xcode.app/Contents/Applications/
In your applications folder right click on Xcode and click "Show Package Contents."
EDIT: to make this answer as complete as possible.
However, In Xcode versions 4.2 and below, Icon composer can still be located in the following directory.
/Developer/Applications/Utilities
And of course, as Dave DeLong said below, Icon Composer can also be accessed through Xcode by navigating to Xcode Menu >> Open Developer Tool >> Icon Composer.
MDT is correct that the application is now bundled inside of Xcode.app, but there's an easier way to get to it:
Icon Composer cannot be used to create icons compatible with Retina macs and the app should no-longer be used. It is no-longer bundled with recent versions of Xcode.
Instead, you create a directory "foobar.iconset" and fill it with png images at the sizes you need, and then drag that into the image well in Xcode - which will then create a .icns file at build time.
Currently, the png files you should create are (none are required but all are recommended):
icon_16x16.png
icon_16x16#2x.png
icon_32x32.png
icon_32x32#2x.png
icon_128x128.png
icon_128x128#2x.png
icon_256x256.png
icon_256x256#2x.png
icon_512x512.png
icon_512x512#2x.png
You can also create the icns file manually with the iconutil command line tool.
Official documentation and more details are at: http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html
Have you looked into...
/Developer/Applications/Utilities
Mine is there.
Alright, I have a problem on my hands. I'm trying to convert my project to a universal app for the iPhone and the iPad. I'm trying to make iPad-specific versions of my XIB files. As it's not possible to Create iPad version using autoresizing masks in Xcode 4, I assumed I'd just be able to pop my XIB into Xcode 3's version of IB, and let that do the magic. No dice. Here's the error I get when i try to open the XIB file in IB:
To be honest I don't know where to proceed from here. I guess I could just resize my views manually, but that's quite tedious and I don't really have the time to be doing that. Any ideas?
Alright, I figured out a rather convoluted workaround.
First of all, duplicate your original project and then select your project info. Right-click on your target, and select "Duplicate".
Xcode will then pop up this message. Select "Duplicate and Transition to iPad".
Now Xcode converts the XIB files for you, and presents you with an iPad resources folder.
Now open these XIB files in the Finder, and append ~ipad after the file name.
After doing so, copy these XIB files back into your original project, and then turn your project into a universal project by selecting from the dropdown in your target settings.
And you're done. I found that really convoluted, and I'm hoping Apple can fix this huge usability problem soon.
This should not happen. One way to fix this problem would be t completely remove the Xcode 4 Installation and re install it from scratch . And then re install it.
Use the following command to uninstall and re install Xcode 4
sudo [xcode-path]/Library/uninstall-devtools --mode=all
PS: If you are creating projects in Xcode 4 that you also want to open in Xcode 3 make sure you keep Document Versioning section to Interface Builder 3.1
I've read many time that we can install Xcode 4 and keep Xcode 3.
BUT, i've also read that it was not possible with Xcode 4 GM.
Anyone have done this with success?
Update:
Ok, I have installed-it. (different folder)
But it always crash at start. (xcode encounter an internal logic error)
Someone have an idea?
It's fairly easy to do. When running the installer, just change "Install location" to something other than /Developer
You can install them both fine, simply choose separate directories. I have Xcode 3 installed into its vanilla location (/Developer) whereas Xcode 4 is in '/Developer/XCode4'.
To change the install location: On the 'Installation Type' screen within the installer you'll notice that the 'Developer' folder listed next to the top install item is actually a dropdown - click this then choose 'Other..' to select a custom location.
Xcode 4 is still under NDA, but you can always choose to install Xcode 4 in another directory.