Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant load pods that are made with swift

I am trying to import Bond and import ConvenienceKit. I have included in my podfile

pod 'Bond', '~> 3.7'
pod 'ConvenienceKit'
use_frameworks!
end

It is properly installed and open the file as workspace. However I cannot import it. If I see the my file's framework I see that pod_appname.framework is red. Thank you.

like image 928
Satsuki Avatar asked Dec 03 '25 11:12

Satsuki


1 Answers

Currently, Xcode doesn't provide AutoComplete functionality for "import" statement in swift.

So, you just need to make sure that you are importing the file with its specified name in framework.

Do the following things and you can import any swift file from "Pods"

1) Clean your project

2) Make sure that all your "Pods" > "Build Settings" > "Build Active Architecture Only" is set to "NO".

3) Don't run, just build your project.

4) Now, import any file from "Pods" to any swift file

E.g.: import Bond

5) Again, build project and it will work as expected. Finally, you can access it properties

6) Similarly, you can import different files

import Bond+UIImageView

Hope this helps!

like image 106
Sohil R. Memon Avatar answered Dec 05 '25 02:12

Sohil R. Memon