Skip to content

[Swift][Pod] Add macOS support #512

Open
@EddieLukeAtmey

Description

@EddieLukeAtmey

Hi, I'm having an iOS SwiftUI chat app that is using LibSignalClient. Everything works fine until I have a request to make this app work on MacOS (to build a desktop app, later implement it on windows).

At first, I tried to set multiple-platform on my current target, which caused a few problems since cocoapods doesn't support multiple-platform on a single target yet. Then I separated the target into new ones, specific to iOS and MacOS. My pod file looks like this (simplified)

def shared
	pod 'LibSignalClient', git: 'https://github.com/signalapp/libsignal.git'
	pod 'SignalCoreKit', git: 'https://github.com/signalapp/SignalCoreKit.git'
end

target 'MyApp' do
	# Pods for iOS
	platform :ios, '15.0'
	shared
end

target 'MyApp-mac' do
	# Pods for Mac
	platform :osx, '11.0'
	shared
end

Then I run pod install and got this error:

The platform of the target `MyApp-mac` (macOS 11.0) is not compatible with `LibSignalClient (0.21.1)`, which does not support `macOS`.

Does this mean it's impossible to develop this idea using SignalProtocol? Otherwise, what should I do next?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions