SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

Scheme error build

Open jpaulo789b opened this issue 11 months ago • 1 comments

The problem occurs when building the iOS app using a new or custom scheme, resulting in the following error:

Copy Failed to build iOS app Error (Xcode): Build input files cannot be found: '/Users/admin/Documents/projetos/peinox/build/ios/newflavor-debug-iphonesimulator/librlottie.o', '/Users/admin/Documents/projetos/peinox/build/ios/newflavor-debug-iphonesimulator/SDWebImageLottieCoder.o', '/Users/admin/Documents/projetos/peinox/build/ios/newflavor-debug-iphonesimulator/SDWebImageSwiftUI.o', '/Users/admin/Documents/projetos/peinox/build/ios/newflavor-debug-iphonesimulator/SDWebImage.o'.

The error indicates that the build system cannot find certain object files (.o) required for linking. These files are likely related to the SDWebImage and lottie libraries.

Key Observations: Works with the Main Scheme: The app builds successfully when using the main/default scheme.

Fails with a New/Custom Scheme: The error occurs when using a new or custom scheme (e.g., newflavor).

Missing Object Files: The build system cannot locate the .o files, suggesting a misconfiguration in the new scheme or flavor.

Likely Causes Scheme Configuration: The new scheme may not be properly configured in Xcode, missing key build settings or paths.

Flavor-Specific Issues: If using flavors, the Podfile or build settings may not be correctly set up for the new flavor.

Build Phases: Custom build phases or scripts in the new scheme may not be generating the required .o files.

Missing Dependencies: The new scheme may not be linking the necessary frameworks or librarie

jpaulo789b avatar Jan 23 '25 17:01 jpaulo789b

This repo use standard Package Manager (SPM/CocoaPods/Xcode)

From your description, I think the issue is your project's scheme configuration issue, not something inside SDWebImage/SDWebImageSwiftUI.

You can use your Package Manager (like CocoaPods)'s clean command, or re-create a new scheme or target to investigate

dreampiggy avatar Jan 24 '25 07:01 dreampiggy