Skip to content

symbol(s) not found for architecture arm64 #7

@pawin

Description

@pawin

I got this error after adding OpenCV to my project.

clang: error: linker command failed with exit code 1 (use -v to see invocation)

My code

    @State var image = UIImage(named: "2021")!
    
    var body: some View {
        VStack {
            Image(uiImage: image)
                .scaledToFill()
                .onTapGesture {
                    let x = OpenCV.Mat(uiImage: image)
                    print("tapped!")
                }
        }
        .padding()
    }
}

I also tried let x = Mat(uiImage: image) getting the same error.

Xcode 16.2
iPhone 16 Pro (iOS 18.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions