PLATFORM AND VERSION
Development environment: Xcode 16.4 (16F6), macOS 15.5 (24F74) Run-time configuration: iOS 18.3.1
DESCRIPTION OF PROBLEM
I cannot build my app due to a module not found error when I'm importing Sample-Swift.h
header to an ObjectiveC file.
I need to use Swift code to ObjectiveC file with Swift code using an external XCFramework.
It seems to be related to a mix with ObjectiveC and Swift code when Swift code uses class inheritance from FZWorkoutKit class.
With a full Swift project, no issue.
STEPS TO REPRODUCE
Project https://fizzup.s3.amazonaws.com/files/public/Sample-WK.zip
Open the provided project and try to build it. The issue occurs.
-
In
MyObject.m
file, if you comment the first import (Sample-Swift.h
), no issue occurs but I cannot use my Swift code (MyFile
class). -
Uncomment the line commented in step 1.
-
Go to
MyFile.swift
and change class inheritance fromGoModeController
(from FZWorkoutKit framework) toUIView
(from UIKit). No issue occurs.