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

Linphone SDK OS X - vcard_grammar #191

Open
falcon758oskon opened this issue Nov 16, 2021 · 0 comments
Open

Linphone SDK OS X - vcard_grammar #191

falcon758oskon opened this issue Nov 16, 2021 · 0 comments

Comments

@falcon758oskon
Copy link

I’m trying to integrate linphone-sdk-Mac from https://download.linphone.org/releases/macosx/sdk/ to my objective c app. Basically what I’m doing is extracting zip file and import framework files to my project and then change all frameworks to “embed and sign” and then compile. Program runs fine until I try to create the core, even using “ linphone_factory_create_core_with_config_3” or “ linphone_factory_create_core_3”, they all crash with the same error, that is “could not load grammar vcard_grammar because the file could not be located”. Already tried to put grammar files in several places of the project, on different versions, including last one, but with no luck. Anyone know anyway to solve this?

Sample code:

LinphoneFactory *factory = linphone_factory_get();

NSString *linphonecfg = [LinphoneManager bundleFile:@"linphonerc"];
NSString *fileStr = [NSString stringWithContentsOfFile:linphonecfg encoding:NSUTF8StringEncoding error:nil];

configDb = linphone_config_new_from_buffer(fileStr.UTF8String);
theLinphoneCore = linphone_factory_create_core_with_config_3(factory, configDb, NULL);

Already tried to compile linphone-desktop but that is failing in random places every time I try to compile it, so could not solve that way.

Thanks

@KyronNextLevel KyronNextLevel pinned this issue Feb 4, 2022
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

1 participant