Closed disolaterX closed 2 days ago
@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
The same issue.
As a workaround:
Change
#include <folly/portability/Config.h>
into
#import "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.
What you did for this ?
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:
- ios/Pods/RCT-Folly/folly/portability/Time.h
Change
#include <folly/portability/Config.h>
into
#import "Config.h"
- 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!
I have worked out what seems to be the problem for me, but still didn't find a solution since im not that experienced with iOS development.
The problem seems to be that #include "time.h"
doesn't include the system time header, but instead RCT-Folly/probability/Time.h (in my case).
If you can somehow override this or tell it specifically which header file to import, that would solve the issue.
Update: I found a solution for my case, since i use many local pods, in one of them which is installed before linphone-sdk i created a new time.h header file and added this code in it: `#ifndef NATIVE_TIME
This overrides the RCT-Folly Time.h file and linphone-sdk uses this instead. But then i ran into another problem, my AppDelegate fails to compile with errors:
Another Update: FOUND A SOLUTION.
Changing build settings of linphone-sdk pod "Use Header Maps"
to No
solves this problem.
You can add this to your Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'linphone-sdk'
target.build_configurations.each do |config|
config.build_settings["USE_HEADERMAP"] = "No"
end
end
end
end
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
21 |
❌ (ios/Pods/linphone-sdk/linphone-sdk/apple-darwin/share/linphonesw/LinphoneWrapper.swift:21:8)
19 | */ 20 | import Foundation