Missing Frameworks/Xcode Upgrade? - xcode

So I'm getting problems when trying to make in iPhone app in Xcode (version 3.1.4)... I'm trying to use the ExternalAccessory Framework but it didn't exist in my System/Library ... /Frameworks directory. Is there any way to get it or a place to download it? I tried to upgrade to Xcode 4 but I was unsure of how to transfer my old projects to there and after much frustration ended up just staying with the only version, perhaps I should try again?

Having run into the same problem with XCode 4.3.3 I bit the bullet and installed XCode 4.5. Fortunately my project wasn't broken by the upgrade (as has been the case in the past) and the ExternalAccessory library is now available.

In the project navigator, select your project
Select your target
Select the 'Build Phases' tab
Open 'Link Binaries With Libraries' expander
Click the '+' button
Select your framework

Related

After installing Xcode 7, Xcode 6.3 shows errors about converting to Swift 2

After installing Xcode 7 to play with Swift 2 in Playgrounds, I've got a weird problem:
when I open an existing Xcode 6.3 project with Xcode 6.3, it throws lots of errors about conversions to Swift 2.
This project was just cloned from the repository and hasn't been opened with Xcode 7 yet.
So my guess is that the Xcode 7 install messed up the Xcode 6.3 installed tools or something like that, but I have no idea how I could start to fix this.
I certainly don't want to open and upgrade this big project in Xcode 7 at the moment, but I do need to open it in Xcode 6.3 and Swift 1.2 to continue work on it.
Thanks to Leo's comment, I was able to clean the caches and derived data, and these errors went away.
But then Xcode refused to build the project's included frameworks (SQLite.swift and SwiftHTTP) even after cleaning everything and rebooting.
I had to uninstall them manually, clear the "build phase" and "target" fields where they appeared, then use CocoaPods to reinstall them.
After that, my app compiled again properly in Xcode 6.3.
Click on product in menubar
Click Clean
Then try reBuild project by click on play botton
it works for me

How to convert an older XCode project

I originally created my XCode project with version 3.2.6 and it's moved through 4.x to 5.0. I only just realised that XCode 3.2.6 was still my default XCode and that new projects are .xcode rather than .xcodeproj.
Is there an easy way to update my project - or will XCode have done this and simply kept the old name?
Open the Xcode project by Right click the .xcode file and click the open with option and choose the latest Xcode application.

Error comes while unity3d project opens in Xcode

My unity project creates error while opens in Xcode.
The error is
clang: error: linker command failed with exit code 1
(use -v to see invocation)
So project not opens in xcode.
Xcode Version : xcode5.0
Unity Version : unity4.0
How can i escape from this issue?
I started getting a similar linking error after I had upgraded to Unity 4.2.2 (I've only ever used XCode 5 with Unity for iOS).
To fix it - I just wiped out my whole XCode project directory and re-did the build from Unity. Everything started working for me again.
So I suggest you just try wiping out your XCode directory and re-creating it from Unity.
If you've got custom code in your XCode project - maybe try generating a new XCode project in a different place just to see if it works.
Unity does not support Xcode 5 (last tested with Unity 4.2.1). I am guessing you also are encountering the following issue when you try to build and run your unity project:
UnityException: Launching iOS project via Xcode4 failed. Check editor log for details.
In order to resolve your issue, you will need to re-install Xcode 4. I recommend downloading XCode 4.6.3 by searching for it at https://developer.apple.com/downloads/. While it is possible to run multiple versions of Xcode side-by-side (i.e. 5 and 4.6.3), my experience is that Unity will always launch Xcode 5, and I wasn't able to able to find a way to change this behaviour even with renaming the 2 Xcode apps (perhaps someone else knows a way?). In my case, I had no other need for Xcode besides building Unity projects, so I just removed version 5.

How to downgrade Xcode to previous version?

I have to use Xcode occasionally, and have now come across a problem where I've upgraded to Xcode 4.6, but another piece of software I'm using doesn't support it, so I need to go back to Xcode 4.5.
I'm not used to the way Macs work in general, so if the answers provided could be written with that in mind, that'd be helpful. :)
I'm assuming you are having at least OSX 10.7, so go ahead into the applications folder (Click on Finder icon > On the Sidebar, you'll find "Applications", click on it ), delete the "Xcode" icon. That will remove Xcode from your system completely. Restart your mac.
Now go to Xcode Releases page or Apple Developer More Downloads and download an older
version of Xcode, as needed and install. You need an Apple ID to login to that portal.
After install, you can also switch between multiple versions:
Xcode > Preferences > Locations > Command Line Tools
When you log in to your developer account, you can find a link at the bottom of the download section for Xcode that says "Looking for an older version of Xcode?". In there you can find download links to older versions of Xcode and other developer tools

How to open a .pbproj on Xcode?

I downloaded a sample code from the MAC OSX developer library and the code is the format of a .pbproj (Project builder) and im unable to open it on xcode.
I have tried the following without any luck:-
1) Rename FancyAbout.pbproj to Old.xcodeproj
2) Open Old.xcodeproj. Xcode will ask you to upgrade it. Save it as
FancyAbout.xcodeproj.
3) When the project opens, choose Project > Upgrade All Targets in
Project to Native... to upgrade to the Xcode build system
4) Build and run.
I run a Mac 10.7.3 with Xcode on 4.3.2
Anyone have any suggestions on how i can get this running in xcode?
Thanks in advance!
To the best of my knowledge older Project Builder, and even older Xcode projects can not be opened or upgraded directly. The only real way you could upgrade would be to find a previous version of Xcode that is able to open and upgrade the older project then save the project using the older Xcode and see if the newest Xcode is then able to open the upgraded project.
Or, simply create a new Xcode project and copy over all the source files from the old project into your new project and go from there. This option is probably considerably easier then trying to find older versions of Xcode to do the upgrade with.

Resources