Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in xcode project using .a files with swift erorr 'map' file not found

Tags:

xcode

ios

swift

.a

I'm trying to add an SDK to my Xcode project. The SDK contains .a files and (headers) .h files. The headers are imported to my Bridging-Header file (successfully).

In the headers there is an #include <map>

When I run the project I get an

Erorr 'map' file not found

When I cmd+click on it Xcode take me to The LLVM Compiler Infrastructure.

What is going wrong here?

I'm using Xcode Version 7.2 (7C68) with Swift 2.0.

like image 546
mos Miler Avatar asked Jan 28 '16 15:01

mos Miler


1 Answers

Perhaps you're including C++ files? If so you should add a .mm extension to your implementation instead of .m.

Since you're using Swift you probably need to wrap the component in a Objective-C++ wrapper before you can use it in your project.

like image 150
Lucas van Dongen Avatar answered Oct 28 '22 05:10

Lucas van Dongen