Проблема возникает при создании приложения iOS с использованием новой или пользовательской схемы, что приводит к следующей ошибке:
Копировать
Launching lib/main-Box.dart on iPhone 16 in debug mode...
Xcode build done. 49.6s
Failed to build iOS app
Error (Xcode): Build input files cannot be found:
'/Users/admin/Documents/projetos/pacto/apps/appflutter/ios/box-debug-iphonesimulator/librlottie.o',
'/Users/admin/Documents/projetos/pacto/apps/appflutter/ios/box-debug-iphonesimulator/SDWebImageLottieCoder.o',
'/Users/admin/Documents/projetos/pacto/apps/appflutter/ios/box-debug-iphonesimulator/SDWebImage.o',
'/Users/admin/Documents/projetos/pacto/apps/appflutter/ios/box-debug-iphonesimulator/SDWebImageSwiftUI.o'.
Did you forget to declare these files as outputs of any script phases or custom build rules which produce them?
Could not build the application for the simulator.
Error launching application on iPhone 16.
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).
LIBS
https://github.com/SDWebImage/SDWebImage.git
https://github.com/SDWebImage/SDWebImage.git
https://github.com/SDWebImage/librlottie-Xcode.git
Подробнее здесь: https://stackoverflow.com/questions/793 ... os-support