xCode 5 tabbed application not building on iPhone with iOS 6 - objective-c

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.

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.0.2 : Failed to Launch Cocoa Touch Tool...?

I've been trying to do some programming with Xcode 5, but I've been having some problems. I'm trying to create a new Objective-C Class from File > New File. I can create the class, but a few seconds after it's been created, Xcode crashes and gives me an error. I tried this 3 times, and got the same error. I put the error as well as my console log for it here:
Error: http://www.pastebin.com/PmdZaDag
Console Log: http://www.pastebin.com/5sCmcurW
I don't really know much about programming in Xcode, so I'm not sure what the problem is at all. Thanks!
Xcode 5.0.2
MacBook Pro Retina with OS X 10.10.1
The issue seems like in your Xcode 5.0.2. Tried with higher version or install the same version of Xcode again.
I got this problem too .
Here is my solution:
create a new .storyboard file
right click these two .storyboard file respectively Open As >> Source Code
According to the new .storyboard file , change the version and toolsVersion Tag

Unity, XCode5.0.2 and iOS7 app submission problems

i created an app in unity, made the .apk for android and submitted to google play.
everything worked fine and without issues.
now i want to do the same for iOS and i only have problems! after breaking up my head with certificates and profiles i finally managed to run my app on my ipad and on the iOS simulator and finally tried to submit it to the appstore, just to realize that apple only allows iOS 7 apps and Xcode 5 since february 2014.
okaaay, so i downloaded xcode 5 and the iOS 7 sdk and submitted the app to the appstore. but now i got the next problem and i dont know how to solve it:
http://i1371.photobucket.com/albums/ag296/marauderkr/Bildschirmfoto2014-03-07um11047PM_zpsd9742709.png
i read a tutorial how to add the missing app icons. it said i should add the png files in my folder and add lines to the info.plist with the image names. so i did this:
(adding lines to the plist after adding pngs to the "library" folder)
http://i1371.photobucket.com/albums/ag296/marauderkr/Bildschirmfoto2014-03-07um11155PM_zps2e86dcb6.png
but is till get the same error. i dont know what to do as i am not into xcode (only into c#/unity)
i hope someone can help. maybe its just some stupid thing i am doing wrong?
(sorry for the links but stackoverflow says i cant post pictures before reputation 10+ and this is my first post...)
EDIT: problem solved!
it seems like the problem is solved! i found old xcode 3 versions on my desk and it seems like something interfered with the new ios 7 sdk OR the new xcode 5 stuff. anyway, it works now!
so if anyone else encounters this problem - be sure to absolutely have deinstalled all old xcode versions. it helped to delete the old stuff and the old sdk. i now run xcode 5.1 and the ios7 sdk and the latest unity update 4.3.4 everything works!

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.

iPad Application working in 3.2 but not 4.2

I wrote a program in the 3.2 SDK. I just upgraded to the new 4.2 SDK today. I can run the application fine in the 3.2 simulator. When I switch to the 4.2 simulator, the application crashes right after launching. I get the following error:
"Failed to load NSMainNibFile MainWindow"
I'm not understanding how this runs fine with 3.2 and not 4.2. Any suggestions would be much appreciated.
I had this exact thing happen to me. I
traced it to a bunch of missing Nib
files Target > [App Name] > Copy
Bundle resources. The MainWindow.xib
file was missing in this directory
along with a bunch of other files. I
deleted all the nib files from my
Resources directory (only the
references) and then added the
existing files back and everything
started working again. It definitely
looks like an XCode bug.
from - http://www.iphonedevsdk.com/forum/iphone-sdk-development/4958-failed-load-nsmainnibfile-mainwindow.html