Just spent a couple of days trying to figure this out to no avail. Mine is a similar one in that i am using an own generated Module. Which i build using xcodebuild
xcodebuild archive -workspace ${workspace} -scheme ${scheme} \
-sdk macosx13.0 \
-arch arm64e \
-arch arm64 \
-arch x86_64 \
-archivePath ${output_path} \
ONLY_ACTIVE_ARCH=NO \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
Then
xcodebuild -create-xcframework \
-framework ${framework_path} \
-output "${shared_path}/${scheme}.xcframework"
This works fine on intel macs (Even after building with xcode 14 beta). But now fails on M1 macs with JIT session error: Symbols not found: [ _$s...... I don't think It has to do with the arch setup as the same build previously work with xcode 13 for both M1 and Intel.,
The recently released XCode 14 beta 4 does not seem to fix this. Hopefully we get a solution by RC as this is clearly a bug in the toolchain
Post
Replies
Boosts
Views
Activity
Turns out this issue appears to be triggered by public classes in my module that are not declared as final.
so the following triggers the JIT session error: Symbols not found: [ error for swift on M1 macs (arm64) but not intel (x86_64)
public class Lambda { ..}
changing this to
final public class Lambda{..}
fixes this at least for now.