ios - Headers not found when referencing CocoaPods project from Swift -


i include ios-webp pod swift project.

the pod spec reads

source 'https://github.com/cocoapods/specs.git'

platform :ios, '8.0'

use_frameworks!

pod 'ios-webp', '0.4'

in swift, use import ios_webp use library.

however, compilation fails relative header paths inside library not resolving correctly:

<module-includes>:1:9: note: in file included <module-includes>:1: #import "/users/.../products/debug-iphoneos/pods/ios_webp.framework/headers/pods-ios-webp-umbrella.h"         ^ /users/.../build/products/debug-iphoneos/pods/ios_webp.framework/headers/pods-ios-webp-umbrella.h:3:9: note: in file included /users/.../build/products/debug-iphoneos/pods/ios_webp.framework/headers/pods-ios-webp-umbrella.h:3: #import "uiimage+webp.h"         ^ /users/.../build/products/debug-iphoneos/pods/ios_webp.framework/headers/uiimage+webp.h:10:9: error: 'webp/decode.h' file not found #import <webp/decode.h>         ^ /users/...viewcontroller.swift:3:8: error: not build objective-c module 'ios_webp' import ios_webp        ^ 

building library standalone via scheme switcher works fine, it's integration swift project fails.

cleaning deriveddata did not help, , .xcconfig references library both in other_cflags , other_ldflags.

update

it works if remove use_frameworks! , include library via objc bridging header. there way disable use_frameworks! single pod?

update 2

with pod file, compiles.

source 'https://github.com/cocoapods/specs.git'  platform :ios, '8.0'  xcodeproj 'xxx'   target "frameworks", :exclusive => true     link_with "xxx"      use_frameworks!      pod .... end  target "staticlibraries", :exclusive => true     link_with "xxx"      pod 'ios-webp', '0.4' end 

problem when launch app, doesn't seem find frameworks:

dyld: library not loaded: @rpath/xxx.framework/xxx referenced from: /private/var/mobile/containers/bundle/application/... reason: image not found (lldb)


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -