Open 0xMarK opened 2 years ago
I tested SwiftPM on 2.5.0 in Xcode 13.1, but it works well.
@scenee I've added more details to the current issue. Take a look.
I'm confused by the wording "could not build Objective-C module 'MyFramework'". MyFramework is not Objective-C it has one Obj-C class and that's it.
I'll tell you more: I made a refactoring and I removed the only Objective-C class from my Project. And still I get the same Error.
Maybe there is a problem in pod 'YandexMapsMobile'? Developers haven't yet upgraded it to Swift and haven't made it SPM.
Here is my Podfile
:
platform :ios, '12.0'
use_frameworks!
inhibit_all_warnings!
target 'MyProject' do
pod 'SwiftGen', '~> 6.0'
pod 'pop', :git => 'https://github.com/facebook/pop.git'
pod 'ReCaptcha'
# pod 'FloatingPanel'
pod 'DBDebugToolkit'
pod 'Mindbox'
end
target 'Services' do
pod 'YandexMapsMobile', '4.0.0-full'
end
target 'MyFramework' do
pod 'ReCaptcha'
# pod 'FloatingPanel'
end
Description
I was replacing cocoapods with SPMs and encountered Swift Compiler Errors:
and
Please note that I have the main target and the list of frameworks. In one of those frameworks (MyFramework) I use FloatingPanel. MyFramework has Objetive-C class SVPrivateScrollDelegateProxy and I had to import it in
MyFramework.h
:Expected behavior
FloatingPanel works as earlier.
Actual behavior
I can't build the project because there is a Swift Compiler Error.
Steps to reproduce
Project
->MyFramework
->General
->Frameworks and Libraries
.Code example that reproduces the issue This is how the FloatingPanel is being imported to places of usage:
How do you display panel(s)?
How many panels do you displays?
Environment
Library version 2.5.0
Installation method
iOS version(s) iOS 15.0
Xcode version 13.1