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

Prefixes not recognised when lcl is used in sub-project #18

Closed
Undistraction opened this issue Apr 16, 2012 · 5 comments
Closed

Prefixes not recognised when lcl is used in sub-project #18

Undistraction opened this issue Apr 16, 2012 · 5 comments

Comments

@Undistraction
Copy link

I am using RestKit in a project as a sub-project of my main Xcode project. Restkit uses LibComponentLogging, setting up components, logger and extensions and compiling the necessary classes. I have Restkit set up as a dependency in my Main project's build target and can use the macros it generates to log events relevant to the framework.

I would like to use LibComponentLogging for my main project, but I cannot get my own Components to be recognised:

In lcl_config_components.h: _lcl_component(EL_F_COMMANDS, "Echo.flow.commands", "Echo/Flow/Commands")

But I get no code completion for: lcl_log(lcl_cEL_F_COMMANDS, lcl_vInfo, @"Command Executed"); and I get the compilation error: 'Use of undeclared identifier '__lcl_log_symbol_lcl_c'

I fully understand this isn't an issue with the framework, but is there anything you can recommend? I have tried closing Xcode and touching the config files but that hasn't helped. Is it the case that the framework has already processed the config for Restkit and so doesn't process my own config files?

@aharren
Copy link
Owner

aharren commented Apr 16, 2012

Hi Pedr,

can you check if the code completion works for lcl_cRestKitNetwork ?

I assume that your lcl_config_components.h is ignored, and the one from RestKit is used instead.

The only workaround I see here is to add your components to the lcl_config_components.h file in RestKit.

Best regards, Arne

@Undistraction
Copy link
Author

Hi Arne,

Yep. All the Restkit components are available, so that'll work. Thanks for the swift reply.

@aharren
Copy link
Owner

aharren commented Apr 16, 2012

OK, I'll keep this issue open to have a reminder for it.

@aharren
Copy link
Owner

aharren commented Sep 2, 2012

Related issue in RestKit: RestKit/RestKit#914

@aharren
Copy link
Owner

aharren commented Nov 2, 2012

RestKit 0.20 now uses an embedded variant of LibComponentLogging which should solve this problem.

When used with CocoaPods and the LibComponentLogging-pods pod, all RestKit log components will be integrated into the normal lcl_ symbol space. Otherwise, all RestKit components are prefixed with RK.

@aharren aharren closed this as completed Nov 2, 2012
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

2 participants