Step One:
Select the item, click App Extension target (here is today Extension)
Step two: In the tabs on the right, select Build Settings, enter "Bridg" in the Filter box
In the pop-up input box, enter your bridge file name (this file is to objective-c write the file to the Swfit use, if there is no file name, you can create a new header file, the name is arbitrary, the general naming rule is the project name-bridging-header.h).
Step Three: Select Item (Project), in the right tabs, select Info, in configurations, you can find the debug and release two items, respectively expand, find your App extension name (here today Extension named Outdrive Extension, you can find its value is None, click on this value, in the pop-up window, select Pods-outdrive.debug, similarly, in release will Outdrive The value of the extension is set to Pods-outdrive.release.
Step four: Command + B To see if there is a compile error.
Step five: In your app extension code, try the compiler will not automatically complete the class name of the third-party library.
Haha, come out.
The Xcode version used is Xcode 6.2 beta-3, and the language used is Swift1.0 GM. The third-party library used is magicalrecord.
Reference documents:
http://stackoverflow.com/questions/25538579/use-cocoapods-with-an-app-extension/25555476#25555476
How to get app extension access to third-party libraries introduced by Cocoapods