Closed matteonovelli-zz closed 8 years ago
You have not provided enough information for us to help you, Xcode version? PromiseKit version? How did you install PromiseKit? Etc.
I'm using Xcode 7.3 and PromiseKit v 1.7 installed via cocoapods 1.0 Errors occur only when I try to compile on release.
- ERROR | xcodebuild: ../Release-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit.h:44:9: error: 'NSNotificationCenter+PromiseKit.h' file not found with <angled> include; use "quotes" instead
- ERROR | xcodebuild: ../Release-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit.h:50:9: error: 'NSURLConnection+PromiseKit.h' file not found with <angled> include; use "quotes" instead
- ERROR | xcodebuild: ../Release-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit.h:59:9: error: 'UIActionSheet+PromiseKit.h' file not found with <angled> include; use "quotes" instead
- ERROR | xcodebuild: ../Release-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit.h:62:9: error: 'UIAlertView+PromiseKit.h' file not found with <angled> include; use "quotes" instead
- ERROR | xcodebuild: ../Release-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit.h:65:9: error: 'UIView+PromiseKit.h' file not found with <angled> include; use "quotes" instead
- ERROR | xcodebuild: ../Release-iphonesimulator/PromiseKit/PromiseKit.framework/Headers/PromiseKit.h:68:9: error: 'UIViewController+PromiseKit.h' file not found with <angled> include; use "quotes" instead
Here is my podfile:
target 'OMApi' do
pod 'AFNetworking', '2.6.0'
pod 'AFNetworkActivityLogger', '2.0.4'
pod 'PromiseKit', '~> 1.0'
pod 'JSONModel', '~> 1.0'
end
Thanks!
You're building at the command line with xcodebuild
? Does the same happen in Xcode with the Archive option?
I'm running pod spec lint
I believe this may be a change in how CocoaPods specifies its import path since 1.0.
Closing manually since GitHub will not auto close commits not merged into master.
In case anyone is still interested, I fixed the issue by adding this lines in the bottom of my Podfile:
post_install do |installer|
`find Pods -regex 'Pods/PromiseKit/objc/PromiseKit.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)\\(.*\\)\\(>\\)/\\"\\2\\"/'`
end
I've got this errors when I try to compile on release:
If I replace imports by "quotes" imports everything works fine but I don't know if it is a good solution. Can someone help me please?