BelledonneCommunications / linphone-iphone

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)

Home Page:http://linphone.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to compile the iOS Build

disolaterX opened this issue · comments

Podfile:

source "https://gitlab.linphone.org/BC/public/podspec.git"
pod 'linphone-sdk' , '~>5.3.4'

But I am getting

❌ (ios/Pods/RCT-Folly/folly/portability/Time.h:22:10)

20 | #include <time.h>
21 |

22 | #include <folly/portability/Config.h>
| ^ 'folly/portability/Config.h' file not found
23 |
24 | // OSX is a pain. The XCode 8 SDK always declares clock_gettime
25 | // even if the target OS version doesn't support it, so you get

❌ (ios/Pods/linphone-sdk/linphone-sdk/apple-darwin/share/linphonesw/LinphoneWrapper.swift:21:8)

19 | */
20 | import Foundation

21 | import linphone
| ^ could not build Objective-C module 'linphone'
22 | #if canImport(SwiftUI)
23 | import SwiftUI
24 | #endif

@disolaterX I am getting the same issue. Did you end up finding a solution? 😭
Do you mind sharing the solution if you have one?

@disolaterX I am getting the same issue. Did you end up finding a solution? 😭

Do you mind sharing the solution if you have one?

no luck till now

commented

The same issue.

commented

As a workaround:

    1. ios/Pods/RCT-Folly/folly/portability/Time.h

Change

#include <folly/portability/Config.h>

into

#import "Config.h"
    1. Pods/RCT-Folly/folly/portability/Config.h

Comment out or remove the following line

#ifndef FOLLY_NO_CONFIG
//#include <folly/folly-config.h> // **Comment out** or **remove** this line.
#endif

Then clean Xcode and build again. It should work well.

image

What you did for this ?

commented

image

What you did for this ?

Firstly, make sure that you have already added PushKit framework to Link Binary with Libraries in Build Phases. Then, you have to import CallKit framework before importing linphone and import your project swift bridging header file. It looks like in AppDelegate.m

#import <CallKit/CallKit.h>
#import "YOUR-PROJECT-NAME-Swift.h"
#import <PushKit/PushKit.h> 
#import <linphone/linphonecore.h>

As a workaround:

    1. ios/Pods/RCT-Folly/folly/portability/Time.h

Change

#include <folly/portability/Config.h>

into

#import "Config.h"
    1. Pods/RCT-Folly/folly/portability/Config.h

Comment out or remove the following line

#ifndef FOLLY_NO_CONFIG
//#include <folly/folly-config.h> // **Comment out** or **remove** this line.
#endif

Then clean Xcode and build again. It should work well.

You are the man! Thanks!