Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of undeclared identifier 'LogHelper' #42

Closed
wpcfan opened this issue Nov 12, 2018 · 7 comments
Closed

use of undeclared identifier 'LogHelper' #42

wpcfan opened this issue Nov 12, 2018 · 7 comments

Comments

@wpcfan
Copy link

wpcfan commented Nov 12, 2018

I use the latest master branch code, but the compiler complains

[17:40:39]: ▸ ❌  /Users/wangpeng/workspace/ios/smarthome-ios/SmartHome/Pods/CocoaDebug/Sources/Core/CocoaDebugLog.m:29:14: use of undeclared identifier 'LogHelper'
[17:40:39]: ▸ [LogHelper.shared objcHandleLogWithFile:[NSString stringWithUTF8String:file] function:function line:line message:[[NSString alloc] initWithFormat:format arguments:args] color:color];

my pod file

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'Example' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  # inherit! :search_paths
  pod 'CocoaDebug', :configurations => ['Debug', 'Local'], :git => 'https://github.com/CocoaDebug/CocoaDebug', :submodules => true
end

defined constants are just the same as example in the README

#ifdef DEBUG
    #define NSLog(fmt, ...) [CocoaDebug objcLog:[[NSString stringWithUTF8String:__FILE__] lastPathComponent] :NSStringFromSelector(_cmd) :__LINE__ :(fmt, ##__VA_ARGS__) :[UIColor whiteColor]]
#else
    #define NSLog(fmt, ...) nil
#endif
@CocoaDebug
Copy link
Owner

Try delete DerivedData folder?

@CocoaDebug CocoaDebug added the help wanted Extra attention is needed label Nov 12, 2018
@wpcfan
Copy link
Author

wpcfan commented Nov 12, 2018

tried deleting deriveddata and clean build dir too, no luck. still got the build error

image

@wpcfan
Copy link
Author

wpcfan commented Nov 12, 2018

seems related to this question on
stackoverflow

this repo cannot be used via git source with cocoapods, as it does not provide a cocoapods-friendly headers folder structure.

@CocoaDebug
Copy link
Owner

Try: clean CocoaDebug cocoapods cache, then pod install or pod update, maybe help

@wpcfan
Copy link
Author

wpcfan commented Nov 27, 2018

Thanks for tips, Tried that, but not working. I will try to figure it out later when I have time

@CocoaDebug
Copy link
Owner

CocoaDebug commented Dec 15, 2018

Please update CocoaDebug to last version. Thanks!

@haoht
Copy link

haoht commented Dec 18, 2018

Good

@CocoaDebug CocoaDebug removed the help wanted Extra attention is needed label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants