3

Here is a screenshot:

.h module, as you can see, copied in project, but Xcode ignore it. I'd try uninstall XCode and install 6.2 (beta 5), In Terminal, I tried

rm -rf ~/Library/Developer/Xcode/DerivedData ,
defaults delete com.apple.dt.Xcode...

but it didn't help.

3 Answers 3

2

Because you are using objective-c files, you need to add the .h file to your Bridging-Header.h file. This file was generated by Xcode itself but it's currently empty.

So open Bridging-Header.h and add the following line:

#import "QRCode.h"
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! I was thinking about something like that, but did not know how to apply. It worked!
1

Please add a header file and import the file.And the interfacing you need to do using Swift itself.

Comments

0

You may just use the module without importing it because you dragged the swift file in your project rather than the binary.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.