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.
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 Bond5) 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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With