I have a project that contains a git submodule from another project, and, after adding the project as a dependency, and building successfully, I cannot figure out how to get the .h files from it into my project.
The subproject is not a framework, its simply another xcode project with its own .app file. The git submodule is in a folder contained in my projects top level folder so ~/Documents/MyProject/Mysubproject/
Thank you.
I solved the problem. I had to turn the subproject into a Static Cocoa Touch Library.
Related
I am getting following error in gradle build.
Error:null value in entry: incrementalFolder=null
How can I fix this?
I agree with Maravilho Singa's answer. It appears to be a bug in gradle.
I found another solution here:
removing the .gradle directory in the root project directory will fix the problem.
Just delete the .gradle directory and rebuild app.
Undo Try to bring back .gradle directory. There by your error will be removed.
I think it has something to do with iCloud. I've found that each time that happens with my projects it's because the .gradle file had been uploaded into iCloud and was no longer available in my computer. So either delete the .gradble file and have it regenerated, or recover it from iCloud by clicking it.
Empty all "build" folders in your project
Copy all your project files and folders
Create a new folder and past it there
Open android Studio and import project
Wait Android Studio to download all dependecies.
That's all. It will work perfectly
delete the .gradle file from the root directory and then clean the project, by this your .gradle file be recreated and your error will be resolved.
This is gradle bug. Go to your project folder, delete your gradle and build folder. Sync the project with gradle files. This will resolve the problem.
I am working on my project and suddenly lights goes off, When i started Android studio and run the project, At the moment Android studio syncing the Gradle, And the same problem occurs.
Solution=>
Please Tack Backup of your project before proceeding these tasks.
Delete All folder and files present in Build folder and Gradle folder.
Uploading Images That will help you.
Error:null value in entry: libOutputDir=null
put any new projects .gradle file into your app but before that you must backup your app. i solved this error using this method.
I hope its works for other.
I resolved my error by removing the .gradle as well as .idea directory from the root project directory.
I had the same issue. importing files into a new project fixed it for me.
I stuck in the problem like this. What I done is Delete the .Gradle Folder From the Project File.
Then Built and Clean the Project. Certainly my problem is only resolved by this.
Delete .Gradle Folder -> Clean->Built
Delete the .gradle Folder from root project that showed in the top of the root project.
Is there anyway to keep CLion's project files (i.e. .idea directory) in a separate directory than the project? This feature already exists in IntelliJ IDE but I can't find something similar to CLion...
I'm looking for a structure like this one:
~/my_project/CMakelists.txt
~/my_project/other_source_files
~/project_files/my_project/.idea
When I try to Archive my Xcode project, it can no longer find the .h files from the subproject in the same workspace. It works fine otherwise.
Any ideas on how to fix it?
It turns out I had created a new build configuration on the main project and that same build configuration didn't exist in the subproject, so when it went to archive it couldn't find the .h files that had been copied over.
I added the same build configuration to the subproject and it archived just fine.
I have been trying to build a code that has dependencies with other header files that are not in the project directory. I added the paths to these header files in both HEADER_PATH and USER_PATH. However, I still see error while building. It says that the file is not found. I verified that the file exist in the path added to the header search path in project settings.
How do I make sure that all my header files referenced in the project is included and the paths are being picked by Xcode during compilation?
I tried copying all the files to the project with no luck. This is the first time iam using Xcode, so its kind of frustrating. Iam a linux guy and comfortable with make files. Is there a Make file for xcode which i can modify to include the header file directories.
You might want to check the order of your source files in your target's build phases to ensure that your dependencies are compiled before your source files that reference them.
Select your project in the Project Navigator.
Select your target.
Click on the Build Phases tab.
Click on Compile Sources to expand the section.
Drag the dependencies to the top of the list.
Are you sure you spelled the header file name correctly ? Is the case correct ? Did you use user quotes "" rather than system quotes <> ?
Assuming you've checked all the obvious things such as the above then one other thing to try is to quit Xcode, delete the "build" folder in your project directory, and try again - sometimes the build folder gets in a pickle internally.
I have a project that is stored in a Subversion repository.
In this repository, in a different folder, I have a set of libraries that I use in many of my projects. These libraries are stored as binary files, ie. the dll's, pdb's, and xml's.
Here's an example layout:
<repo-url>
\Libraries
\SQLite
\SystemHooks
\Moq
In the application project, I add a "libs" directory, then add a svn:externals reference property to that directory to pull in the libraries I need.
For instance, for this project I am working on now, which prompted this question, I need the SystemHooks library, so in my app project folder structure, it now looks like this:
SketchingMode <-- solution folder, other projects here as well
SketchingMode <-- app project folder
libs
SystemHooks
The nice thing about this is that I can more easily update the libraries, and just use the -rXYZ specifier for the externals definition to avoid pulling in newer versions than I'm ready to accept, and still have only one copy of each file/version in my repository.
The bad thing, in this particular case, is that one of the dll's in the SystemHooks directory (2 if I want the pdb as well) needs to be copied to the output directory, not referenced by the project.
References work as normal, but once I tag one of the files in this directory as "Content" and "Copy always" or "Copy if newer", then the libs and SystemHooks directory structure is also copied to the output directory.
As such, after a build, my on-disk directory structure looks like this:
SketchingMode <-- solution folder, other projects here as well
SketchingMode <-- app project folder
libs
SystemHooks
bin
Debug <-- main build output here
libs
SystemHooks <-- 1-2 files in here
Is the only way to avoid this to use the post-build steps and just add the necessary copy statements? Or can I somehow tweak the project file to avoid copying the full structure like that?
Just to make it clear, in the bin\Debug directory, I don't want another layer of libs\SystemHooks in there, and all the files presently being copied to the bin\Debug\libs\SystemHooks folder needs to be copied to the bin\Debug folder instead.
How about checking out the libs directory to the level of the solution rather than the project? That is what we do since library assemblies tend to be used by multiple projects; placing direct inside one project's directory would not make for a highly shareable resource.
SketchingMode solution
SketchingMode proj
bin
Debug
Release
Libs
SystemHooks