Xcode Target dependencies error after switching SDKs - xcode

I have been working on my project with xcode 5 for the past few days. I've switched over to Xcode 4 because I wanted to make sure everything in my project would be compatible with IOS 6.
After reverting the XIBs, I get the following error when I attempt to run my project.
Every other time I run, my app crashes, but every other time it does not... Weird.
target specifies product type 'com.apple.product-type.bundle.unit-test', but there's no such product type for the 'iphonesimulator' platform
How can I go about solving this issue?
Thank you for your time.

I am using Xcode4.6 run my app show the Error!
but!
I click xode product ---> clean !
solve the error!

Related

Xcode 13.3 and 13.2 build for simulator but not for real device

I recently had my phone updated to iOS 15.4 and so I need to update Xcode to 13.3.
I ran into a problem where my code does build on x86_64 simulator but the same code when archiving or building to "any iOS device" hangs indefenitively no error no nothing.
I tried with Xcode 13.2 and 13.3 the only way I found to be able to build something and archive is building with Xcode 13.1. I do not know if there are compiler update or new option but I am stuck and lost a day looking for an answer.
Did sb had the problem and found a solution ?
EDIT:
I spend the day looking for what can be the cause of the problem.
I do thinks that the compiler algorithm has changed and is less performant at dealing with circular references.
My method :
I started a new project and moved all of my components one by one. Doing clean build folder and recompiling at each feature I added.
At some point my build time jumped from 5 sec to 150sec with the addition of one file that uses some other structs I added.
When removing all functions, members that uses my custom time, keeping only Strings, Ints and Arrays. My build time came back to 5sec. Adding a single reference to a custom type that I know is dependent of other tipes (its a Backoffice Model) sends the build time to the 100+ sec.
Is It possible to get to the 13.2 build algorithm ? With that one it takes me only 30 sec to build the entire project.
Today I tried with Xcode 13.4 RC and the build went successful in a reasonable time (less than 5 min as always)

Xcode 5.1 Error spawning child process: Permission denied

The error:
Error spawning child process: Permission denied
pops up in the console about one in every five or ten times that I try to run my project in the Xcode simulator. When this happens the project does not run.
Rerunning the project (Cmd-R again) usually works.
Can't find any mention of the error on Google, anyone experiencing this?
Edit 2014-07-04, getting this error too.
Running XCode 5.1
Cheers,
Paul
I had the same problem and after some Product -> Clean the message disappeared. So you should try that way!
I've had to do a clean build of the project and restart both the Xcode 5.1 and the iOS Simulator to solve the problem.
I had the same error. I removed a few lines of commented code, and cleaned the build, before compiling it again. Sounds crazy, but it worked.
Are you having any LLDB errors along with the "Error spawning child process" one?
I'd same issue with xcode5.1.1. Resolved by following steps.
Clean build
Change simulator selection to iPhone Retina 4 and Run , then back
to iPhone 3.5 screen, it works.

xcode 4.5.2 upgrade issue

With previous version of xcode works perfectly for my cocos2d and box2d project
but today i upgrad it(to xcode 4.5.2) because my iphone device was having os version issue.
and then all of my upgrade progress finished
i have some trouble with in it
when i run the project in new xcode, it started complain me that i have no Default.png
but i'am already have defalult.png in my project
so why this happening ? and how can i figure it out...
i've already clean and rebuild
and also delete default.png and recopy from original arsenal
but same problem occurred
(as you guess .. i'm not good at explain my opinion in english.. sorry for that.. )
I expect you mean this:
Missing - "Default-568h#2x.png" launch image"
That is the startup image for the iPhone 5 screen. If you click on the warning it will create one for you.

XCode 3 - core compile errors with clean installation and iPhone 4 SDK

This is a copy of another question from AskDifferent, since I'm being adviced to put this question here instead.
This has been asked once elsewhere but nobody could give the guy an answer... and I Google seem to only know that single occurrence of the problem!
So I'm the second guy in history to experience this and my problem is:
I'm running XCode 3.2.3 on Snow Leopard 10.6.4 (I think, it's the minimal required OS version for this XCode version) with iOS SDK 4.0.2
I create a new empty Cordoba (PhoneGap) project
I set up my Base SDK in Project Settings to iPhone Simulator 4.0 per instructions on PhoneGap's website
I don't change any other setting at all
when I hit "Build and Run" button, XCode starts compilation and finished with 3 errors and 10 warnings
Now, I don't mind those warning, but I cannot successfully compile because of those 3 errors now. No idea how to fix this, I'm totally new to PhoneGap or Mac OS for that matter.
The errors I get are:
/Users/[name]/Documents/CordovaLib/Classes/CDVLocation.m:123:32 /Users/[name]/Documents/CordovaLib/Classes/CDVLocation.m:123:32: error: use of undeclared identifier 'kCLAuthorizationStatusAuthorized'
/Users/[name]/Documents/CordovaLib/Classes/CDVCapture.m:783:70 /Users/[name]/Documents/CordovaLib/Classes/CDVCapture.m:783:70: error: use of undeclared identifier 'NSEC_PER_MSEC'
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
I would appreciate any advice from you guys, as I'm completely at a dead-end here.
CLAuthorizationStatus, and thus kCLAuthorizationStatusAuthorized are only available in 4.2 and later.
Check this for more info: https://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html#//apple_ref/c/econst/kCLAuthorizationStatusAuthorized
As to your other error, google pulls up this: How to resolve Phonegap error while Building the app

Xcode 4 - Error Starting Executable

I've been working on a project in Xcode 3.2.5 and today I tried migrating it up to Xcode 4.0. It compiles just fine; I can navigate to and execute the .app without a hitch (as expected). The only thing that is screwy is the fact that Xcode cannot launch the application, and displays the following error when it tries:
"Error starting executable. No executable file specified. Use the "file" or "exec-file" command" (image not available)
I've scoured the Project and Xcode settings and have been googling for half the day, but all I can find are dead ends and people bashing other people about breaking Apple NDA. FYI Xcode 4 has been released, and is no longer under NDA.
Should I just start a new project and copy in my source? Sounds wrong to me, but brute force works when brute force works.
Thanks in advance
At a guess, the schemes it set up for you based on your v3 targets and build settings might not be quite right. From the schemes menu, choose to edit the current scheme, then select the Run action from the list and make sure the appropriate exectuable is selected.
I ran into the same issue this question came up so I spent my time identifying the issue, reproducing the issue, narrowing it down and explaining as best I could how to not make it happen - as well as the general frustration that comes with an issue like this (it hit me on 2 different versions of Xcode in 2 weeks).
If you're going to delete my post then at least take the time to try and answer the question as I had tried to do.
Now, on to the reply that actually tells how this issue may be created and how to avoid that.
I JUST had this happen creating an app for iOS. Why? I renamed my target executable.
Just tested this by checking out a new copy of the source and rebuilding.
The app ran fine on my device.
Went in to Xcode 4.2, renamed the target. Ran the app. "Error starting Executable..."
I changed the filename back. Same error.
Cleaned and ran the app again and it launched.
Renamed the app, cleaned and ran it again. Not so much luck.
Don't rename your app by renaming the target.
This is such a stupid limitation. Apple lets you rename your target app, but by doing so, this prevents your app from launching on the device.
EDIT: I haven't checked in any code, but now I can't check out and build and run any app without this happening. How do you get the device/xCode out of this state once you've gotten it in to it?
Even the app now crashes on launch at int retVal = UIApplicationMain(argc, argv, nil, nil);
This is in Xcode 4.2 on Snow Leopard, but I got into the same state with Xcode 3 on another Machine last week.
Edit 2: Rebooted the device, rebooted my Mac. Built and ran in the simulator first, then on the Gen4 iPod touch. It works.
I had this issue when migrating a project from Xcode 4 to 4.1, and it ended up being due to the Target's "Product Name" being different in the debug and release configurations. A holdover from when I changed the name of the product many versions ago. So check that...
I've downgraded Xcode from 4.2 to 4.1 only to encounter an error at build and run on device: "Error starting executable. Don't know how to run ...". I've cleaned the project (Xcode > Project > Clean) and cleaned the build folder (Xcode > Project > (hold option key) Clean Build Folder). After that I had to build again and it built okay on iPod touch 4g running iOS 5.
Well, it sure sounds like a whole family of bugs behind that error message!
I got the error after loading up an Xcode 3 project under 4.2.x for the first time.
None of the above tips worked for me, however what I eventually did was switching from GDB to LLDB.
That fixed it.
It looked like the new path to the executable wasn't properly recognized by GDB (i.e. once locally at PROJECT/build/Debug/... in Xcode3 but now in the usual temp. folder location with Xcode 4 it was still looking for the executable in the build folder relative to the project sources)
I duplicated the target and rename the copied on to different name, I got this error message. What I did is to clean the project, exit Xcode, restart the Xcode, then it can run on my device.

Resources