Updating RestKit to master - objective-c

I updated to master and I'm not able to load new classes like
RKObjectMapping. I went through the install instructions again and reviewed
the example projects but still can't figure it out. Why wouldn't XCode know
about RKObjectMapping when I include ?

I had this problem as well.
From this thread on the RestKit group:
Close the project
Open Window->Organizer
Under Projects tab, delete DerivedData for your project
Quit Xcode and Relaunch
Open the project
Clean and rebuild
Everything should work.

Related

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 build stuck at DataModelCompile `momc`

I have a project which builds fine a month ago. Now I tried to open it again but I am stuck with building the project in Xcode. Upon checking it from the Report Navigator tab, it shows that there was an error on DataModelCompile about a missing inverse property.
I was able to get through this by suppressing the momc warnings in Build Settings. But when I build the project again, I am still stuck at DataModelCompile. This time it doesn't say anything helpful aside from outputting the exact momc command.
I have tried the following so far but nothing works:
Clean project and rebuild
Delete DeriveData folder and rebuild
Clean, delete DereveData, close Xcode and rebuild
Remove xcdatamodel, build project, close Xcode, delete DeriveData put back xcdatamodel and rebuild
Please tell me I'm not the only once experiencing this. It is really frustrating that a project that used to work is broken now without anything changed.
Any help is appreciated!
Note:
I am using the latest version of Xcode (7.1.1)
The project is using CoreData with 3 versions of xcdatamodel
I also tried checking out an earlier version of the project but I still encounter the same problem

Xcode 6.3.2 unable to build or run projects

After upgrading to Xcode 6.3.2 I'm unable to build/run, analyse, profile project. Even project clean functionality looks broken. Does any body experienced similar problem and know how to fix it?
The problem appears to go away when you go download and install the new command line tools for 6.3.2.
After struggling with this problem for couple of hours I have finally found solution. In my case Xcode Derived Data location was set to custom folder and it was the origin of the problem. After changing Xcode Derived Data location to default one everything back to normal.

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

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 :)