Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No such module, swift, xcode 6.2

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.

like image 847
Себульба Касторский Avatar asked May 15 '26 06:05

Себульба Касторский


2 Answers

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"
like image 165
Christian Avatar answered May 19 '26 06:05

Christian


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

like image 20
Jishnu Balanchandran Avatar answered May 19 '26 05:05

Jishnu Balanchandran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!