ios - error using cocoapods "use_frameworks!" SWIFT -


i had clean swift project, using cocoapods : parse, afnetworking , residemenu. need use stzpopupview pod, updated cocoapods last version:

gem install cocoapods 

then relaunched project:

pod install 

because of error :

[!] pods written in swift can integrated frameworks; feature still in beta. add `use_frameworks!` podfile or target opt using it. 

i updated podfile adding "use_frameworks!"

my podfile now:

# uncomment line define global platform project # platform :ios, '8.0' use_frameworks!  source 'https://github.com/cocoapods/specs.git'  target 'isam' pod 'residemenu', '~> 4.0.7' pod 'afnetworking', '~> 2.5' pod 'parse', '~> 1.6' pod 'stzpopupview', '~> 1.0' end  target 'isamtests'  end 

since, have 2 errors when build :

  • "residemenu.h" file not found
  • failed import bridging header "..../isam/swift-bridging-header.h"

i didn't changed else in project.

my swift-bridging-header.h doesn't change :

#ifndef isam_swift_bridging_header_h #define isam_swift_bridging_header_h  #import <parse/parse.h> #import <residemenu.h>  #endif 

in build settings, have :

builds settings

i think it's because of "use_frameworks!" in podfile, don't know how use of pods build app correctly.

edit :

the exact errors :

/path_of_my_project/swift-bridging-header.h:12:9: error: 'residemenu.h' file not found #import <residemenu.h>         ^ <unknown>:0: error: failed import bridging header '/path_of_my_project/swift-bridging-header.h' 

i'm on same problem. try this: http://www.innerexception.com/2015/05/cocoapods-useframeworks-means-bridging.html

when using use_frameworks! in cocoapods of pods used frameworks, not swift pods. don't need bridging header this. import pods swift files need. in example have write: import residemenu


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -