Header "/usr/include/sqlite3.h" not found - sqlite.swift

Just installed SQLite.swift from cocoapods in my Xcode project and I get an error when trying to build stating Header "/usr/include/sqlite3.h" not found. Therefore I get an error stating could not build Objective-C module 'SQLite3'.
Am I just doing something wrong or is there an issue here?

Adding a note to echo the above comments that this should be fixed now.
The latest 0.9.2 should also work ok and be slightly more compatible, even for Swift 2.2 (as well as Carthage, CocoaPods or manual install).

Related

How can I solve XCode 12 build error with Parse SDK?

I just downloaded XCode 12.2 and created new empty project.
Then I imported Parse SDK with pod.
The problem is that the project doesn't build.
errors found:
framework not found Parse
ld: framework not found Parse
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I solve it?
I was having a similar issue and tried a dozen different fixes. The one that seemingly worked was to update the Podfile to install Parse directly from GitHub.
I changed pod 'Parse' to pod 'Parse', :git => 'https://github.com/parse-community/Parse-SDK-iOS-OSX.git'
I say "Seemingly" because some of my other fixes may have contributed to its success.
Which version of the Parse SDK are you using? Can you share the contents of your Podfile?
Did you open the xcworkspace file instead of the xcodeproj?
I just installed Parse 1.18.0 using Cocoapods and it is working normally.

Meteor 1.2: Xcode 7.0.1 build issue

I recently updated my Xcode to Xcode 7.0.1. My project used to compile and build for ios without issues on Xcode 6.4. Now, I'm having this error:
Cordova/CDVViewController.h file not found in the line -
#import <Cordova/CDVViewController.h>
Please let me know how to fix this.
P.S. "archiving" doesn't produce errors
I found the answer here: http://forum.ionicframework.com/t/cordova-cdvviewcontroller-h-file-not-found-in-xcode-7-1-beta/32232/5
From the author shazron
Add this line to your Build Settings -> Header Search Paths:
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
Don't replace the existing line that looks similar, that is still needed to be backwards compatible with Xcode 7 and Xcode 6.4.
This probably had something to do with tvOS, I reckon -- Apple had to separate the archive intermediates by platform for universal builds.

framework not found QGLViewer

I am trying to install QGLViewer. When I compile it with QTcreator everything goes well, but when I try to build one of its examples, it gives me this error:
framework not found QGLViewer
I know that it is installed, because when I do
otool -D /Users/sara/Library/Frameworks/QGLViewer.framework/Versions/Current/QGLViewer
the response is QGLViewer
I really want this library to work. What could be the problem?
It was a bug. It was fixed in the last update.
http://www.libqglviewer.com/changeLog.html

LLVM With Haskell, Strange Linker Error

I just installed LLVM (3.0) successfully, and got the Hackage bindings (3.0.0.0). However when I try to use it, I get the following linker error:
Loading package llvm-base-3.0.0.0 ... can't load .so/.DLL for: (dlopen(lib.dylib, 9): image not found)
There is no name after "for: ", which makes this frustrating, because I don't know what it can't find. I know there isn't much information to go on, but does anyone have any idea why this could be happening?
I am running Mac OS X, in case it matters.
It's a bug in the llvm bindings installer. I had it patched locally and just sent a pull request to bos, hopefully it will get merged soon.
To fix your problem without the patch, find the llvm-base package config file. Mine is located here:
~/.ghc/x86_64-darwin-7.4.1/package.conf.d/llvm-base-3.0.0.0-*.conf
Locate this line and delete it:
extra-ghci-libraries: ""
Then run: ghc-pkg recache --user

C++ and Objective C in Xcode project

I have recently updated Xcode to version Version 3.2.2 (Pre-release). It is working fine with old Objective-C projects but I experience some problems with projects which have mix of Objective-C/Objective-C++ code. During the compilation I am getting the following error:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/bits/functexcept.h:41:28: error: bits/c++config.h: No such file or directory
I have checked the path a compiler complains about and found that file functexcept.h is located in the following path:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/armv7-apple-darwin9/bits/
My question is where I should change that path to correct one in Xcode?
Thanks in advance.
Try to make a symlink pointing arm-apple-darwin10 to arm-apple-darwin9:
cd /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/
sudo ln -s arm-apple-darwin9 arm-apple-darwin10
Report a bug to Apple.
After installation of the iPhone SDK with XCode (Version 3.2.1) problem has gone.

Resources