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

macOS Swift linphone-sdk Dependency not working #202

Open
LeonErath opened this issue Mar 20, 2022 · 1 comment
Open

macOS Swift linphone-sdk Dependency not working #202

LeonErath opened this issue Mar 20, 2022 · 1 comment
Labels

Comments

@LeonErath
Copy link

LeonErath commented Mar 20, 2022

Context

I wanted to integrate linphone-sdk in my macOS Swift app. It seems that there is a working Swift Version for iOS. A macOS version is also indicated in several places in the Developer Guide.:

The application integration has been made easy thanks to Cocoapods (iOS/macOS) and Maven (Android).

However, I was not able to successfully install and use it for macOS. Hence the question: Does the linphone-sdk support macOS Swift? Is there a guide or tutorial similar to the iOS ones?

General information

  • OS: macOS 12.3 (M1)
    • XCode: Version 13.2.1 (13C100)
    • cocoapods: 1.11.3
  • SDK: linphone-sdk 5.0.71

Expected behaviour

I wanted to integrate the linephone-sdk in my desktop macOS Swift Project.

To Reproduce

  1. XCode -> Create new Project -> macOS -> App (Interface: SwiftUI, Language: Swift)
  2. Create a Podfile in the Root Project: pod init
  3. Open the Podfile and paste the following:
platform :osx, '12.1'
source "https://gitlab.linphone.org/BC/public/podspec-macos.git"
source "https://github.com/CocoaPods/Specs.git"

def basic_pods
	if ENV['PODFILE_PATH'].nil?
		pod 'linphone-sdk', '~> 5.0.71'
	else
		pod 'linphone-sdk', :path => ENV['PODFILE_PATH']  # local sdk
	end
end

target 'YOUR_APP_NAME' do
  use_frameworks!

  basic_pods
end
  1. Install: pod install. Output should be something like:
Analyzing dependencies
Downloading dependencies
Installing linphone-sdk 5.0.71
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
  1. Open the workspace file your_app.xcworkspace
  2. Open a Swift File and try to import linphone-sdk via import linphonesw

XCode should now fail to compile the app with the following Error: Compile Error: No such module linphonesw

Additional context

The Tutorial for iOS worked fine but when changing the target to macOS and changing the source to "https://gitlab.linphone.org/BC/public/podspec-macos.git" my macOS project fails to compile.

SDK logs URL

No response

@LeonErath LeonErath added the bug label Mar 20, 2022
@LeonErath
Copy link
Author

Screenshot 2022-03-20 at 14 08 03

@LeonErath LeonErath changed the title [Bug]: macOS Swift linphone-sdk Dependency not working macOS Swift linphone-sdk Dependency not working Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant