.h file not found from dependent subproject in Xcode when archiving - xcode

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.

Related

Asset file 'project.assets.json' has no target for 'net6.0/win -x64' on wapproj project

I have a C# Winforms app + C++ DLL + wapproj project for .MSIX file, I wanted to publish my app on x64 mode but when I want to generate packages. I have the error:
Asset file 'project.assets.json' has no target for 'net6.0/win -x64'.
Check that the restore ran and you included 'net6.0' in
TargetFrameworks for your project. You may also need to include
'win-x64' in your project's RuntimeIdentifiers.
It says it was on my package project.
Tried to add <TargetFramework>net6.0</TargetFramework>, delete bin and obj folder. Nothing worked.
Maybe you can check the publish setting like this:
So I resolved my self by checking all .csproj, .vcxproj, .wapproj and adding <TargetFramework>net6.0</TargetFramework> and <RuntimeIdentifier>win-x64</RuntimeIdentifier>.
After deleting all bin and obj folder, recompiling and publishing, it resolved.

Error:null value in entry: incrementalFolder=null

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.

Deleted .pch file by mistake

I have deleted my .pch file by mistake, and now my project cannot be built anymore.
What should I do?
I take it you don't have version control?
You could just use the contents of a pch file from a different project or create a new one. If you search in your build settings for "pch" you'll see what the name of this pch file is expected to be and where it should be in your project

Use all .h files in a subproject of an Xcode project

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.

XCode 3.1.2, header file not found

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.

Resources