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...Solved #10

Closed
Sovenger opened this issue Jan 14, 2019 · 2 comments
Closed

Use of undeclared...Solved #10

Sovenger opened this issue Jan 14, 2019 · 2 comments

Comments

@Sovenger
Copy link

Sovenger commented Jan 14, 2019

This is more a comment for anyone who ran into the "Use of undeclared..." issue that was previously closed (#9 ). I was still getting that message even after the bridging header was set properly. Also, right click and "jump to definition" always returned a "?" for any methods inside the WebRTC framework.

I solved it by renaming the project in Xcode from "WebRTC" to "WebRTC-add-your-own-value".

I suspect that references inside the WebRTC framework could not be linked properly because the project name and the framework name are the same, creating ambiguity. Anyways, this is just a guess since now everything works correctly and I am able to jump to definitions inside the framework.

@stasel once you figure out the exact reason why this was happening, I would suggest a feature request to rename this project to something other than WebRTC.

@stasel
Copy link
Owner

stasel commented Jan 20, 2019

Hi @Sovenger, Thank you for pointing this out.
I had problems reproducing this issue as it was working well on my machine, even with a clean clone. However, I managed to reproduce this today and indeed the issue was resolved once I have changed the project name. It wasn't a good idea to call the project WebRTC too just like the framework.

I have rename the WebRTC to WebRTC Demo and you can see already the updates in the master branch.

Thanks again to pointing this out

@stasel stasel closed this as completed Jan 20, 2019
@Sovenger
Copy link
Author

@stasel you're welcome. Glad to help.

This issue was closed.
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