I am trying to enable the logging inside CocoaAsyncSocket by doing the following inside GCDAsyncSocket.m:
#ifndef GCDAsyncSocketLoggingEnabled
#define GCDAsyncSocketLoggingEnabled 1
#endif
However, when I build the project I receive the following error:
What I am missing here?
Note: I am importing both CocoaAsyncSocket and CocoaLumberjack inside my Swift project using Cocoapods as following:
def shared
pod 'CocoaAsyncSocket'
pod 'CocoaLumberjack/Swift'
end
target 'Project' do
shared
target 'MyFrameworkTests' do
inherit! :search_paths
shared
end
end
target 'MyFramework' do
shared
end
target 'MyFrameworkTests' do
shared
end

I searched for a lot of issues, including this, and didn't seem to find a clear answer.
My experience tells me that the header file is not found, meaning the file does not exist.
There are two ways:
1. Manually integrate
CocoaLumberjack,CocoaAsyncSocketYou can download source code directly, where the
Sourcefolder contains the information you want.2.
Cocoapods SpecsThe first method I tested, it worked. The second method I am not familiar with, there is no test.
It should be noted that all libraries integrated by
Cocopodsare compiled separately and have no dependencies.