Xcode Internal Error upon building - iphone

I'm having a very annoying problem with my xcode that I desperately need help with.
Every time I build (or clean) an app, Xcode errors with:
Internal Error: File:
/SourceCache/DevToolsBase/DevToolsBase-1763/pbxcore/Infrastructure/XCWorkQueueOperation.m Line: 895 Object: <XCWorkQueueOperation:0x204e8f820>
Method: runOperation
Assertion failed: commandInvocations[slotIdx] == nil
And it presents me with the option to Quit Xcode or continue.
There seems to be absolutely nothing on Google about this error! And I am completely stuck. I have reinstalled Xcode and all. Rebooting does no good.
Does ANYONE have any idea how to fix this error?
Xcoder version: 3.2.5 on 64-bit OSX 10.6.4
Cheers,
Brett

Try this: "Rebuild Code Sense Index" button in the "General" tab for the inspector for the project. (from http://forum.soft32.com/mac/XCode-project-problem-ftopict47829.html)
Also see the following:
https://lists.apple.com/archives/xcode-users/2008/Feb/msg00550.html

You can allways upgrade to the GM of XCode 4, if everything else fails.

I reinstalled xcode and it went away

If the problem persists after a full reinstall of xcode, your user settings are probably corrupt.
Delete them from a terminal prompt:
rm -rf ~/Library/Application Support/Developer/Shared/Xcode/

Related

Xcode 5 - Required plug-in not present in DVTPlugInCompatibilityUUIDs?

After upgrading Xcode to v5.0.1, I started receiving following warning in terminal when trying to run git commands inside project folder:
[MT] PluginLoading: Required plug-in compatibility UUID
37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path
'~/Library/Application
Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present
in DVTPlugInCompatibilityUUIDs
I am not getting any warning inside Xcode and the project is compiling just fine but there must be a reason. Any ideas why is this happening and how to fix it?
I modified a shell commands I found here to fix this for all my plugins.
To fix this issue:
XCODEUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do defaults write "$f/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add $XCODEUUID; done
Try to do : xcode-select --install. It resolved my problem
In my case of Xcode 7, remove all Xcode plugins fixed my issue.
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*
I believe the issue is that you have an Xcode plugin installed that has a missing (or has an incorrect) DVTPlugInCompatibilityUUIDs key-value pair in its plist file. See what this plugin did to solve it: https://github.com/gfontenot/XVim/commit/35bbf24bc074e330a9bea852c190d8fdcbfff1ea
Maybe check if your plugin (looks like it's for Unity) has an updated version.
I had deleted unity from my machine. After installing unity the builds worked for me. I was trying to build an app using robovm.
Maybe it is a bit late, but I had just to restart Xcode after an Xcode update and press the install components button when it showed up. Then my git problems were gone.

Xcode 4.5 building error: Malformed Object

I'm trying to build a project with Xcode 4.5.1, created with Xcode 4.4, but I'm getting following error:
codesign_allocate: for architecture armv7 object:
/Users/myUsername/Library/Developer/Xcode/DerivedData/MyAPP-araevdowzmmoupfieakjpjmpsmhq/Build/Products/Debug-iphoneos/MyAPP.app/MyAPP
malformed object (unknown load command 36)
/Users/myUsername/Library/Developer/Xcode/DerivedData
Can somebody help me please?
Thank you!
Update:
I still have this problem but only when compiling for iOS Device, not for the simulators. I'm not able to create an archive.
PLESE HELP ME!
SOLVED
The problem was due to a "Run Script" in Build Phases I was forgotten....and that pointed to the old path /Developer
Delete your derived data, perform a clean build, and try again.
To delete your derived data, go to Organizer->Projects, and select `Delete...'
To do a clean build, select Project in Xcode, and select "Clean"
Update: Validating your project settings may help here also. Go to your Project file in Xcode and select it.
Update 2: Something seems to be interfering with codesign, causing it to use an incorrect loading command. Maybe your old version of Xcode (4.4) left some artifacts behind, which is causing an old version of codesign to be run. I'd suggest uninstalling any instances of Xcode you have, make sure they're all gone, then re-install the latest version.
Update 3: I'm at a loss, I've no idea what's going on. My last suggestion is to create a new Xcode project, and migrate your stuff over; something may have interfered with your build settings, which might be a case of looking for a needle in a haystack. Make sure you have the latest Xcode and OS X.

Error launching remote program: No such file or directory

Anyone have an idea about this
Error launching remote program: No such file or directory (/Users/muself/Library/Developer/Xcode/DerivedData/myproject-hlelojuljidnnagbdqzliazpdgmn/Build/Products/Debug-iphoneos/myproject.app/myproject).
The project was working fine with the previous Xcode versions. I have just updated the Xcode to Version 4.3.2 (4E2002), & the error start coming.
I have search on the web, and tried a lot of the options like
Quit Xcode, clear the Derived Data folder, restart the Xcode.
Rename the project,
Reset the device,etc
I also tried this on another machine but did not work, the same problem occurs.
But one thing i have some other projects as well and they are working fine.
Thanks for at least reading this.
First try restarting Xcode. If it doesn't work, then try hard reset of your device. This happens to me when I change the bundle identifier of my app.
This solution,I found of the above problem its working fine for me.:)
have you tried to "validate settings" (button on the bottom of project settings)? Do you use some static libs in your app? – Vov4yk
Check your deployment target. I am running Xcode 4.5, and it gave me that cryptic message, while the reason was that my iPad is running version 5.1.1, and my app was set with deployment target of 6.0.
I also get same problem. This below solution works for me.
Thats really annoying. This error happens in a number of different situations. Sometime restarting the Xcode, fixes the problem. If not, follow these steps:
Disconnect your device.
Delete the app from your device.
Quit xcode (Don't just simply close the window, quit it)
Delete derived data folder (~/Library/Developer/Xcode/DerivedData/APPNAME -gbrvhlvwmpiobxdujegtghggrffp - or something like that)
Now start Xcode, connect device and run the project. It should work fine.
Source: http://dhilipsiva.com/2012/07/24/xcode-could-not-launch-app-no-such-file-or-directory-error.html
Hard reset of the device fixed it for me. i.e. power off and back on.
Quitting Xcode, disconnecting, reconnecting the device etc didn't.
The error occurred just after I had created a new project with the a duplicate Bundle Identifier to another. Both apps coexist OK on the device/ in Xcode, but this does seem to cause the above issue.
I saw this when I let the build configuration set up as ad-hoc. After I put it back to Debug it worked fine.

Error : failed to launch, when running on ipad

After much frustration I've finally got an application to run on an iPad without errors. However it doesn't run. It gives the following error. My application does run on the simulator but doesn't run on an iPad and gives the below error. I'm really not sure why. I went to the described folder the structure of the folder is as follows.
Products
.DS_Store
Debug-iphoneos
.DS_Store
sampleproject.app
sampleproject.app.dSYM
Debug-iphonesimulator
.DS_Store
sampleproject.app
sampleproject.app.dSYM
error: failed to launch '/Users/x/Library/Developer/Xcode/DerivedData/sampleproject/Build/Products/Debug-iphoneos/sampleproject.app/myProject' -- No such file or directory (/Users/x/Library/Developer/Xcode/DerivedData/sampleproject/Build/Products/Debug-iphoneos/sampleproject.app/myProject)
Just had the same error on Xcode 4.3.2, with target iPad3 5.1, but was able to build and run on my device after these steps:
Deleted my DerivedData directory (emptied trash too)
Quit XCode
Disconnected iPad USB
Rebooted Mac
Rebooted iPad (power down and back up)
Reconnected iPad USB.
Restarted Xcode with project
Confirmed build for debug on device selected.
Clicked Run
I've no idea whether all these steps are mandatory. This is a crummy answer, since it neither explains the problem, nor offers a sure fix. I expect better of Apple; I've looked for a better answer, but found nothing.
Rebooting to solve problems is no solution! OTOH, it let me proceed on with my work, so...a small blessing.
Deleting the DerivedData directory and restarting Xcode worked for me. Simple restart of xcode did not.
Following Tarryn's suggestion to delete DerriveData leads to another problem "No Code Sign found", which brings my attention to the Code Sign section in my Build Setting. The Code Sign for Debug is set to "Don't Allow". Changing it back to my iOS developer profile solves the issue.
If anyone gets this problem and follow the path Tarryn suggested, there is one more step you can try to work this out.
Very frustrating, but in the end a simple exit XCode and restart XCode seemed to clear the issue.
Firstly quite the Xcode and restart, it'll run finely..
restarting the Mac fixes for me.
under /DerivedData: rm -r sampleproject
-> disconnect ipad -> reboot ipad -> reconnect ipad
-> quit & relaunch XCode
it worked for me, hope it helps!!!
Restart Xcode and it works again.
Another cause of this problem
Selecting the wrong mobileprovisioning profile. For example you can have a Distribution profile selected in Debug mode, Xcode will then not allow the app to start in debug mode.
To fix this
Select your project file in Xcode
Choose "Build Settings"
Search for "code signing"
Confirm that a Development profile is selected for "Develop" builds
It sounds like the target is not necessarily set up correctly. What is the name of the Target? I see "Virgin Atlantic" there, but the project root is "sample project"?
It happened to me using Xcode 7.1.1 with OSX Yosemite.
Followed all steps of #tarryn (the accepted answer) but did not restart my mac. Restarting the mac eventually solved the problem for me.
Disconnecting the iPad and reconnecting it just worked for me.

xcode won't compile iOS apps, crashes when .xib or .storyboard files are opened

I'm running the very latest version of xcode (4.2.1). And I'm signed up to the ios developer program.
When I create a new iOS Application for iPhone or iPad, using storyboards or not it doesn't seem to matter, xcode crashes on me when I try to open the .xib or .storyboard files.
Here is the error provided when I click on the storyboard file before it crashes.
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IB Plugin/Utilities/IBObjectMarshalling.m:179
Details: Interface Builder encountered an error communicating with the iOS Simulator. "Interface Builder Cocoa Touch Tool" (54332) failed to launch and exited with status (null), signal 10. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
Function: NSDistantObject<IBCocoaTouchToolProtocol> *IBAttachToCocoaTouchTool(IBCocoaTouchTargetRuntime *)
Thread: <NSThread: 0x40010a260>{name = (null), num = 1}
Something to do with the iOS simulator? Exactly the same message appears when I try open an .xib file.
When I try to run or test a project I get an error when it tries to compile the storyboard or xib files. eg
CompileXIB EmptyViewTest/en.lproj/com_markstewart_comViewController.xib
cd /Users/mark/Sites/_iOS/EmptyViewTest/EmptyViewTest
setenv IBC_MINIMUM_COMPATIBILITY_VERSION 5.0
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Developer/usr/bin/..
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/mark/Library/Developer/Xcode/DerivedData/EmptyViewTest-dxxqhrayajehooezj flgyjqysqkp/Build/Products/Debug-iphonesimulator/EmptyViewTest.app/en.lproj/com_ markstewart_comViewController.nib /Users/mark/Sites/_iOS/EmptyViewTest/EmptyViewTest/EmptyViewTest/en.lproj/com_m arkstewart_comViewController.xib --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0 .sdk
Please help! How do I get this to work again?
I've since totally uninstalled and re-installed developer tools. Same problem still occurs. It seems to be something to do with the iphone simulator as when I try to run the simulator app by itself it instantly crashes too. (see attached screenshot). What is going on?! :(
----- UPDATE 2
Still having this problem! I can sometimes build applications, but as soon as I click on either the .xib or .storyboard file (in separate projects) xcode crashes. When they do succeed I get the error above that the simulator has issues locating the SDK.
I've uninstalled and reinstalled xcode about five times now and the same issues keeps occurring.
Here is the crash report from the "Interface Builder Cocoa Touch Tool" error. If it makes sense to anyone? Crash Report
Does anyone have any other ideas? Starting to get pretty desperate.
did you installed TotalFinder?
I had the same problem caused by TotalFinder's Asepsis feature.
Asepsis current Version (1.1) Conflicts with Xcode 4.2 and Glims (see image).
The Website lists this known issue:
Xcode 4.2, iOS 5.0 Simulator
Some developers reported that Asepsis breaks iOS 5.0 Simulator and
causes Xcode 4.2 fail in loading XIB files
to uninstall just run this command from Terminal:
sudo open /System/Library/Extensions/Asepsis.kext/Contents/Resources/Asepsis\ Uninstaller.app
I had this same problem and deleting everything in your "Derived Data" folder fixed my issues. In your case: /Users/mark/Library/Developer/Xcode/DerivedData/EmptyViewTest
Maybe this thread will help:
How can I safely delete in my ~/Library/Developer/Xcode/DerivedData directory?
It's a pretty fundamental problem and so unlikely it's anything you're doing wrong. I'd suggest reinstalling Xcode. If that doesn't work, try uninstalling it first and install it again. (Bit of a pain, sorry. Stock up on coffee first.)
I hate to say it, but it sounds like you may need to do a clean system install followed by a clean XCode install.
Or do you have another machine you can try a clean install of XCode on first?
If you can't just create a new project and run it in the simulator without it crashing you either have an issue with XCode or with your system. Since reinstalling XCode you still have an issue, I am afraid that leaves your system in question.
Try removing (you can try just moving them rather than deleting them) these user directories. Make sure your developer tools are not running when you do this.
~/Library/Application\ Support/iPhone\ Simulator
~/Library/Application\ Support/Developer
~/Library/Developer
These directories are particular to your user.
I have same problem within xcode4.5 and iOS6. When I startup iOS simulator 6, it always report "The simulated application quit" and ask me to switch SDKS. Whatever I choose the right location of SDK5.0 or SDK6.0 for the simulator, the problem is still here. So I can't run even a simplest program with SDK6.0, but the old projects with SDK5.0 are ok.
I don't why, because it works well before today. So I follow #quellish's way, close xcode and simulator, remove these directory in my finder:
~/Library/Application\ Support/iPhone\ Simulator
~/Library/Application\ Support/Developer
~/Library/Developer
Then run Xcode again, everything goes ok again! thanks quellish!
I think some files in these directory was broken, so the strange problem happened. If someone know exactly why it happened, it's appreciate you can tell me.