简体   繁体   中英

Swift: Failed to import bridging header

I get this error when i run my application with objective-c libraries and swift classes. It says that i:

Failed to import bridging header '/Users/../Projectname-Bridging-Header.h'

This file has been created when i imported the swift classes into my project. I've also enabled and set the name for 'defined module' in build settings/packaging with no succes. Inside the bridging-header.h file, the library header files written in objective-c are not found.

xCode图片

I'm running xCode 6.0.1

I've forgot to add the frameworks for the specific targets in my pod file.

target "MyTarget" do
  pod 'MyFramework', '~> 2.1'
end

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM