-0.6 C
Monday, January 15, 2024

ios – Enum class shouldn’t be listed in image desk of binary file? through SPM

Once I making an attempt to import third social gathering library shifting from cocoapods to SPM, Image not discovered Error happens.
I test the binary file and located the enum class in third social gathering library(SQLite.swift) shouldn’t be listed in symbol-list.
Within the case of cocoapods it not occurs.

Xcode: 15.0
Library construction:
The Framework-A import SQLite and use the API of it.
App imports each of Framework-A and SQLite as dynamic libraries through SPM.(I add .dynamic in Bundle.swift of SQLite)
Third social gathering Library(version-0.13.3):

The hyperlink of library appears no downside(in any other case it would give [library no loaded error]) however the some image is lacking.
In my case, the case in enum class:Connection/location/inMemory shouldn’t be listed in image desk.
Does anybody know the explanation? Is that this the bug of SPM?

The Bundle.swift of SQLite is right here:

// swift-tools-version:5.3
import PackageDescription

let package deal = Bundle(
    identify: "SQLite.swift",
    platforms: [
    merchandise: [
            name: "SQLite",
            type: .dynamic,
            targets: ["SQLite"]
    targets: [
            name: "SQLite",
            dependencies: ["SQLiteObjc"],
            exclude: [
            identify: "SQLiteObjc",
            dependencies: [],
            exclude: [
            identify: "SQLiteTests",
            dependencies: [
            path: "Assessments/SQLiteTests",
            exclude: [
            sources: [

#if os(Linux)
package deal.dependencies = [.package(url: "https://github.com/stephencelis/CSQLite.git", from: "0.0.3")]
package deal.targets = [
        name: "SQLite",
        dependencies: [.product(name: "CSQLite", package: "CSQLite")],
        exclude: ["Extensions/FTS4.swift", "Extensions/FTS5.swift"]
    .testTarget(identify: "SQLiteTests", dependencies: ["SQLite"], path: "Assessments/SQLiteTests", exclude: [

The runtime error is right here:
dyld[2003]: Image not discovered: _$s6SQLite10ConnectionC8LocationO8inMemoryyA2EmFWC
Referenced from: <4B8F1B6D-C959-38BE-84E4-B93DF2BF0DDC> /non-public/var/containers/Bundle/Utility/E6C1C0C2-AC80-4562-AA80-05373206ED9E/MPTDKSampleApp.app/Frameworks/Framework-A.framework/Framework-A
Anticipated in: /non-public/var/containers/Bundle/Utility/E6C1C0C2-AC80-4562-AA80-05373206ED9E/MPTDKSampleApp.app/Frameworks/SQLite.framework/SQLite

The enum class in SQLite is right here:
enter picture description right here

Latest news
Related news


Please enter your comment!
Please enter your name here