I'm trying to using SwiftPM to instead Cocoapods in my project.
but I got an error: No such module 'SFS2XAPIIOS'.
This error only occurs when I archive.
Here is my Package.swift:
I have added Test Package to the project.
When I use the Debug environment, I can run the project from anywhere.
I can run the project from anywhere, including iPhone devices and x86 emulators.
When I trying to archive, I will always get an error: No such module 'SFS2XAPIIOS'
Can someone help me fix it?
but I got an error: No such module 'SFS2XAPIIOS'.
This error only occurs when I archive.
Here is my Package.swift:
Code Block // swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "Test", platforms: [.iOS(.v10)], products: [ .library( name: "Test", targets: ["Test", "SFS2XAPIIOS"]), ], dependencies: [ ], targets: [ .target( name: "Test", dependencies: [ ], path: "Paht" ), .binaryTarget(name: "SFS2XAPIIOS", path: "Paht/SFS2XAPIIOS.xcframework"), .testTarget( name: "TestTests", dependencies: ["Test"]), ] )
I have added Test Package to the project.
When I use the Debug environment, I can run the project from anywhere.
I can run the project from anywhere, including iPhone devices and x86 emulators.
When I trying to archive, I will always get an error: No such module 'SFS2XAPIIOS'
Can someone help me fix it?