After following the steps to install Subliminal via git submodule, I receive an error when trying to compile that says:
Lexical or Preprocessor Issue 'Subliminal/Subliminal.h file not found
This issue occurs in the app delegate file, after I add in #import . If I use Command + Click the header, I am lead to the header file. However, during compile, Xcode gives the above error.
*Edit: It's not libSubliminal, but I still can't figure out what goes wrong
*Import code is #import <Subliminal/Subliminal.h>
After a nice adventure with StackOverflow, I found this solution:
Xcode 4 can't locate public header files from static library dependency
So far it has worked for me (I have managed to compile and run a default test).
Related
I am trying to build a project using Google FireStore.
I was able to compile fine yesterday. I had the auth working.
I added a couple swift files today and I keep getting this build error.
Multiple commands produce '/Users/isai/Library/Developer/Xcode/DerivedData/bwoae-civvqqnndameofcwxddefhbquxiy/Build/Intermediates.noindex/bwoae.build/Debug-iphonesimulator/bwoae.build/Objects-normal/arm64/ViewExtensions.stringsdata':
1) Target 'bwoae' (project 'bwoae') has compile command for Swift source files
2) Target 'bwoae' (project 'bwoae') has compile command for Swift source files
I checked my "Copy Bundle Resources" Section. I do not have a duplicate plist file.
I even tried deleting everything under "Copy Bundle Resources" .
I still have this error.
Can someone please shed some light here and help me get rid of this error ?
Thank You.
I have a workspace with multiple targets.
Each target has its own prefix.pch file.
Prefix-Header is entered in Build Settings and Precompile Prefix Header is set to YES.
The app compiles and runs fine when I run it on my device.
There are no errors when I just build the app.
But when I try to archive it, I get a compile error saying:
No such file or directory: '/Users/me/Library/Developer/Xcode/DerivedData/myApp-dcmvkatguqcxgjfyrqcunbsfuxcd/Build/Intermediates.noindex/ArchiveIntermediates/myAppTarget/PrecompiledHeaders/SharedPrecompiledHeaders/13524936819627194222/myAppTarget-Prefix.pch'
And indeed, when I open this folder on my hd, I can't see the pch-file. There are, however, similar files there:
myAppTarget-Prefix.pch.d
myAppTarget-Prefix.pch.dia
myAppTarget-Prefix.pch.gch
I tried everything I found on SO and elsewhere, but nothing helped.
I have Cocoapods installed and use them in this project, but I don't think that error is related to that (they seem to compile fine).
XCode 12.4
Seems like I figured it out.
The culprit was a totally unrelated build-setting.
In Other C Flags my settings differed in debug and release.
I had $(inherited) in both of them, but in the release setting I additionally had -isystem - which apparently is already included in $(inherited). That caused a multitude of errors that ended with the prefix.pch not being copied...
I am trying to use the CrpytoSwift Library in Xcode, and I have tried many tutorials to add it to my project, however when i import it it throws the 'module not found error'. Is there something Im missing? (I've included the links I followed below.
Cannot install cocoa pods after uninstalling, results in error
http://blog.krzyzanowskim.com/2015/01/28/how-to-install-cryptoswift/
EDIT:
I've also uploaded a screenshot of my xcode project directory tree.Xcode Directory Tree
In order to remove the 'module not found error' the project needs to be cleaned and built again for it to recognize the added packages(pods).
I have downloaded Chess.app from opensource.apple.com. When I run xcodebuild install I get an error:
fatal error: 'CoreFoundation/CFLogUtilities.h' file not found
#import <CoreFoundation/CFLogUtilities.h>
^ 1 error generated.
The same error occurs when Building within XCode.
I have looked in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ and, sure enough, CFLogUtilities.h is not present. I see that it's available to download from Apple's Open Source Website, but I feel like if it's linked in an app bundled with the OS, it should be installed by default, or at least after installing XCode + Command Line Tools.
Do I have to manually download and bundle the header file in order to build the project, or am I missing something?
I don't know what OS version you are using, but to compile this on 10.9 simply change CFLogUtilities.h to CoreFoundation.h.
you also either need to build the CrashReporterClient.a library and add it to the project, or remove it from the "link with libraries" build setting for the target.
a shell script will fail because iconcompiler is missing, but you can comment out that script line with a # and run just fine. I will leave it as an exercise to you to figure out how best to restore the app icon.
I have been successful with this in the past but now I can't seem to find the setting that tells Xcode or Doxygen (or both) to display compile errors if documentation is missing. I have looked at the Apple documentation that tells how to create docsets and that works fine but Xcode does not throw compiling errors on missing comments in the source code. Anyone know how to get this turned on?
Thanks,
Rob
To make Doxygen generate error when documentation is missing, you have theses options:
WARNINGS
WARN_IF_UNDOCUMENTED
WARN_IF_DOC_ERROR
WARN_NO_PARAMDOC
In Xcode, you can launch Doxygen with a Run Script build phase. In the "Build Results", every line that begins with "Warning:" will be highlighted in Xcode.