after recets upgrade
build fails withi this errors:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/PromiseKit-umbrella.h"
^
/Users/francesco/Library/Developer/Xcode/DerivedData/astaLive-akmhaneumiopcdfoxvylaebquksf/Build/Products/Debug-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit-umbrella.h:3:9: note: in file included from /Users/francesco/Library/Developer/Xcode/DerivedData/astaLive-akmhaneumiopcdfoxvylaebquksf/Build/Products/Debug-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit-umbrella.h:3:
#import "AAA-CocoaPods-Hack.h"
^
/Users/francesco/Library/Developer/Xcode/DerivedData/astaLive-akmhaneumiopcdfoxvylaebquksf/Build/Products/Debug-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/AAA-CocoaPods-Hack.h:14:9: error: 'PromiseKit/PromiseKit.h' file not found
#import <PromiseKit/PromiseKit.h>
^
<unknown>:0: error: could not build Objective-C module 'PromiseKit'
Delete Pods, remove CocoaPods cache, pod install again.
Hi @mxcl , i had exact the same problem with @boardmain but that doesn't work either
I'm using PromiseKit 4.0 (resolved to 4.0.1), Xcode 8.0, CocoaPods 1.1.0.rc.2 and OS X 10.11.8
The error message in AAA-CocoaPods-Hack.h simply shows `'PromiseKit/PromiseKit.h' file not found
tried to delete all.. same problem
this is my podfile
after pod install
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
def shared_pods
end
target 'astaLive' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for astaLive
pod 'PromiseKit', '~> 4.0'
pod 'Alamofire', '~> 4.0'
pod 'AlamofireImage', '~> 3.0'
pod 'AlamofireObjectMapper', :git => 'https://github.com/tristanhimmelman/AlamofireObjectMapper', :branch => 'swift-3'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
# pod 'Realm', git: 'https://github.com/realm/realm-cocoa.git', branch: 'master', submodules: true
pod 'RealmSwift'
pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => 'master'
pod 'OpenTok'
pod 'SteviaLayout'
pod 'OpenTok'
# pod 'RAMAnimatedTabBarController'
pod 'ReachabilitySwift', '~> 3'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
# config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = "YES"
end
end
end
Same error:
.../Build/Products/Debug-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/AAA-CocoaPods-Hack.h:14:9: error: 'PromiseKit/PromiseKit.h' file not found
<unknown>:0: error: could not build Objective-C module 'PromiseKit'
I'm using PromiseKit (4.0.1), Xcode 8.0, CocoaPods 1.1.0.rc.2 and OS X 10.11.6.
Works for me. I'm using PromiseKit in four different projects. All fine.
I suggest blowing away cocoapods. Updating. Clearing its cache. Etc.
Go through our closed issues too. There were similar reports fixed by doing similar things to what I said.
Or if you provide a sample project I can try and fix.
Sample project needed. Thanks.
@boardmain
I was having the same problems. I tried rm -rf Pods/ with no success. Eventually I upgraded to Cocoapods 1.0.1 and removed all my Xcode cached files as per the link below. I then removed Pods/ again, pod installed, rebuilt, and finally got a success. Give it a try and see if you have any luck?
http://stackoverflow.com/questions/5714372/how-to-empty-caches-and-clean-all-targets-xcode-4
Closing, assuming CocoaPods issue.
Thanks @PerishableDave cleaning out ~/Library/Developer/Xcode/DerivedData manually per link worked!
Having the same problem .../Pods/PromiseKit/Sources/AAA-CocoaPods-Hack.h:14:9: 'PromiseKit/PromiseKit.h' file not found with Xcode 8.3, PromiseKit 4.1.7 and CocoaPods 1.2.0. Deleting Pods, ~/Library/Caches/CocoaPods/, ~/Library/Developer/Xcode/DerivedData and even .../org.llvm.clang/ModuleCache didn't helped. Any other ideas?
In our experience, do it again and again until it works.
Thank you Max! What did helped (temporary and very ugly) is replacing #import <PromiseKit/PromiseKit.h> with #import "PromiseKit.h" in the pod sources everywhere (plus the same substitute for AnyPromise.h). Any thoughts on this?
Hmm, this is due to our hack. I have figured out how to remove this hack in the PMK5 experimental branch, so I need to back port this.
Damn, my workaround doesn't work while archiving 馃槙
I have removed AAA-CocoaPods-Hack.h in 4.2.0 (currently being pushed). Closing, reopen if not fixed.
For the record, for me the problem was still relevant even with PromiseKit 4.2.2 and after a lot of pain and despair I managed to solve it in two steps:
Error .../PromiseKit-Swift.h:141:9: 'PromiseKit/PromiseKit.h' file not found with following .../MyHeader.h:9:9: Could not build module 'PromiseKit' was solved by moving customization of FRAMEWORK_SEARCH_PATH from project level to individual targets.
Error .../PromiseKit.framework/Headers/PromiseKit-Swift.h:148:1: Duplicate interface definition for class 'AnyPromise' which appeared after step 1 was solved by changing #import "PromiseKit.h" to @import PromiseKit; in my own code.
Yes, never import frameworks with quotes, always use one of the two valid framework import syntaxes.
Just want to record that I had this issue where xcode was complaining about some PromiseKit umbrella header and that I was heled by @rupalchawla's comment . rm -rf your app DerivedData folder.
I'm guessing it's a xcode module cache issue that isn't cleaned with an xcode clean action.
Most helpful comment
Delete
Pods, remove CocoaPods cache,pod installagain.