Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS-Use CocoaPods import framework,but can't use it

my Xcode version is 7.3 and Mac Version is 10.11.4

I use pod setup and pod install get a new .xcworkspace file,and I open this file too.

but I still can't use #import " " or #import < > import some header files in Pods(I can see this header files in pod project) Xcode tell me not found this files.

thanks!

like image 798
Koiost Avatar asked Apr 14 '16 14:04

Koiost


People also ask

What is use frameworks in CocoaPods?

use_frameworks! tells cocoa pods to use dynamic libraries, and was very prevalent at one point due in particular to swift not supporting static libraries, meaning there was no choice - however you often don't need use_frameworks! anymore. As of Xcode 9 beta 4, and CocoaPods 1.5.


1 Answers

Clean the project. Try building your project without the import statement to start. Then try building again with the import statement.

like image 150
Shen Avatar answered Nov 03 '22 00:11

Shen