Couldn't load a xcode project because it is already opened from another project or workspace - objective-c

I have a project that has one target dependency. The target dependency is dependent on a framework called Three20.
The dependency tree looks like this.
myProject
-> myCustomFramework
-> Three20
When I tried to build and run I get the following error message.
Workspace Integrity Couldn't load Three20.xcodeproj because it is
already opened from another projet or workspace.
I have only one project open. Any suggestions on why I am getting this message?

Quitting the xcode completely and opening it up again worked.

Quitting Xcode alone didn't work for me. What I did was:
File->Close Workspace/Project on every open workspace.
Xcode->Quit
Open Xcode again and open troublesome workspace

I have close the Xcode completely but IT didn't work. I have killed the procces and It did finally!!!
:-)

Had the same problem in a case where I got a workspace working, closed it, copied the containing folder to a USB drive, then reopened. I got that message for one of the projects in the workspace. Closed, tried again, removed/re-added project - no luck. Closed, tried to open the project alone and got the message about it being open in another workspace - not true. Quit XCode, restarted by double-clicking my workspace in Finder, and all went well after.

I had same problem. Fixed after updating of cocoa pods with pod update command.

Restart the computer and try again opening the project :)

Related

MonoDevelop crashes when creating a new solution

When I try to create a new solution in MonoDevelop, it crashes.
When running MonoDevelop in terminal I get the message *** Error in "monodevelop": double free or corruption (out): 0x00007f8a10002760 ***
Should I reinstall MonoDevelop? If yes, how do I reinstall it?
Maybe helpful information: Im using Lubuntu 17.10
before you open a project, control the path to your projects under Edit - Settings (Load / Save).
If it points to a non existing folder Monodevelop will crash.
i found the exact situation when it crashes.
It crashes if you try to create a project or solution outside the default solution path (specified in the menu Edit-Preferences-Load/Save), if you specifie other location the IDE closes before create it.

Xcode 8 not opening project on start

I have a problem to open my project in Xcode 8 it's loading and not open. Yesterday It's opened but today not. I already deleted xcurdata folder, cleared DerivedData folder and deleted file com.apple.dt.Xcode in ~>/Library/Caches
Someone give me a light?
It's a problem with my icloud. My project was in Documents and every time that I install some framework with cocoapods, the Xcode stop to work, and load after icloud finish sync. I solved the problem putting the folder of project out of icloud.
This is in regards to an issue where you try to load a project in Xcode 8 after doing a migration to Swift 3 and all it does is stall and show the "Loading..." indicator in the Xcode status window?
Other methods of trying to correct this were:
1) Deleting ~/Library/Saved Application State/come.apple.dt.Xcode.savedState
2) Deleting /xcuserdata/ from Project.xcworkspace and Project.xcodeproj
3) Backing up the current story board, removing it from the project, recreating it, then cutting and pasting the contents from the old story board to the new story board.
I've tried all of the above to no avail. I've also upgraded to 8.1. I had a git folder inside my documents folder, so I am in the process of migrating that out my documents folder. Will try to load the project again after it's finished.
Just curious but did you have the "Optimize Mac Storage" option checked for iCloud sync? I did have it checked, I could see how this could cause a lot of issues with Xcode should your projects be stored in the documents folder. If some assets aren't getting touched for a long time, they are removed from the local drive and only stored in iCloud...
In my case with Xcode 8.2, I experienced slow and lots of hangs .. I am working with many projects .. the solution that so far seems to solves all such issues was to "disable" git repository creation during project creation .. I did recreate all of my projects without "git" repository because first: I am not experienced in using such "git" version control, and second: cause I manage versioning myself.

Codename One: App broken after iOS build

I have been building my App for Android repeatedly without any errors. I know tried to also build it for iOS which would not work, since I now know that I need a Mac.
After that, I tried to build it again for Android and now everything seems broken. IntelliJ tells me everywhere that it "can't resolve Symbols" and "can't resolve methods". I tried opening and closing the IDE and also restarted the computer, tho I am not able to make a successful build again. This just started after the failed iOS build.
Here is a Screenshot for you, those are very simple lines, there is no reason for them not to work. I am really clueless right now what wrong.
Maybe someone of you has an advice for me? I can only repeat, i did not change the code at all, but it just won't compile anymore, neither in the simulator nor with the Android build.
That may be due to a missing or corrupt CodenameOne_SRC.zip and/or CodenameOne.zip and/or JavaSE.jar files.
Solution:
Create a new dummy Codename One project, right click on the dummy project and select Properties then click the Update Project libs button. Once it's done, close the dialog and right click the project again, then navigate to Codename One -> Refresh cn1lib files.
Now close the dummy project and minimize your IDE and go open your Dummy project folder in your file explorer. Now copy the CodeNameOneBuildClient.jar and JavaSE.jar found in the main folder to the relative path of your faulty project, replace them if already exist. Do the same for CLDC11.jar, CodenameOne.jar, CodenameOne_SRC.zip that are found in the lib folder of your dummy project.
Go back to IntelliJ and right click on your faulty project and navigate to Codename One -> Refresh cn1lib files, then clean and build your project.
This should fix any reference or missing class issues.
FYI, you don't need a Mac to build an iOS project in Codename One.

Xcode builds on Debug but not on Release

So, I have this problem when trying to build my project.
Currently If I run the project in Debug mode, it runs fine, the app starts up on the device and I can test stuff.
However the weird part is when i switch over to the Release build and try to build on the device. When I press the Run button Xcode builds as normal and the build succeeded notification even pops up, but then I get this error code.
Lets call my app xxx
Could not launch "xxx.app"
No such file or directory:
/Users/*my Name*/Library/Developer/Xcode/DerivedData/*Bunch of xcode folders*/Products/Release-iphoneos/xxx.app/xxx
I went into finder and searched up xxx.app and couldn't find it. Furthermore there doesn't even exist a Library folder under /Users/my Name/.
So what is xcode trying to do here, and what should I do to fix this?
Edit: I have also tried Cleaning the project and building again, the error code still comes up.
I get this crap all the time.
What I do is clean the project, close it, shut down Xcode, start up Xcode, open project, then build and run.
If that still does not work then find the "DerivedData' folder Organizer->Projects and delete it, then do the above again and try again.
I tried creating a new scheme and setting it to Release mode. That worked for me. However, a reboot after closing xCode seems to work, too.
I went into finder and searched up xxx.app and couldn't find it. Furthermore there doesn't even exist a Library folder under /Users/my Name/.
It does exist, but it's hidden (since OSX Lion) in the Finder (because standard users -- as opposed to developers -- should not mess with it).
Some utilities (on a simple command line) can make it visible again but the simplest thing to do is to use "Go" menu of the Finder and select "Go to folder…" (Command-Shift-G). Then copy/paste the path you want to go to and validate.

MonoTouch / MonoDevelop: "Did not get project info" when opening xib-files

So, I just installed everything needed for MonoTouch on a MacBook running Lion.
I followed the steps/instructions to install (see here) and then created a new solution. When I open my xib-file I get the following error (in MonoDevelop):
Error updating Objective-C type information. Did not get project info
System.Exception: Did not get project info
at MonoDevelop.Macdev.XcodeSyncing.XcodeProjectTracker.UpdateTypes(IProgressMonitor monitor, Boolean force) [0x00029 in /Users/builder/data/lanes/monodevelop-mac-2.8.6.4/ca00645c/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeProjectTracker.cs:351
I have done nothing else than installiong Xcode, then the Framework/Runtime (MRE-2.10.8_3), then MonoDevelop (2.8.6.4) and then MonoTouch.
Anyone seen this before? I can't find a single thing in this specific error on the net.
It seems that I needed to close the solution, restart the program and then some form of "updating xcode"-thing was running. Then it worked with getting the designer up. Of course, I can't see the Assistant Editor and create those outlets, but that's another issue...
I fixed this issue by building the application, and then double clicking the xib file.
I fixed this issue by building the application, closing and reopening the solution, and then double clicking the xib file.