You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The update_dependencies.sh in rive_common fetches the HEAD of main from https://github.com/rive-app/rive-runtime for each time we do a clean build, something that often happens in pipelines. The github dependencies should be locked to taged versions or a hash to avoid breaking changes in dependencies.
Steps To Reproduce
Steps to reproduce the behavior:
Run flutter pub cache clean
Create flutter project
Add rive
Add reference to rive
build app with flutter build ipa
See error ⚠️
Device & Versions (please complete the following information)
Here is a simple fix to mitigate the issue until it is fixed, run this script after flutter pub get
import 'dart:io';
import 'dart:isolate';
void main() async {
var uri = Uri.parse('package:rive_common/rive_common.dart');
var packageRoot = await Isolate.resolvePackageUri(uri);
if (packageRoot != null) {
var dir = File(packageRoot.toFilePath()).parent.parent;
var file = File('${dir.path}/update_dependencies.sh');
// Modify the dependency to use a specific commit
var contents = await file.readAsString();
final replaceText = 'git clone https://github.com/rive-app/rive-cpp';
var modifiedContents = contents.replaceAll(
RegExp('$replaceText(.*)'),
'$replaceText && git -C ./rive-cpp checkout 93054af1389039f8c51f77aea17ae4757c838a33',
);
await file.writeAsString(modifiedContents);
}
}
Description
Our build pipeline started failing today with the error
Error (Xcode): Undefined symbol: rive::Vec2D::transformMat2D(rive::Vec2D const&, rive::Mat2D const&)
.Looking into this it seems to be due to changes in https://github.com/rive-app/rive-runtime.
The
update_dependencies.sh
in rive_common fetches the HEAD of main from https://github.com/rive-app/rive-runtime for each time we do a clean build, something that often happens in pipelines. The github dependencies should be locked to taged versions or a hash to avoid breaking changes in dependencies.Steps To Reproduce
Steps to reproduce the behavior:
flutter pub cache clean
flutter build ipa
Device & Versions (please complete the following information)
Device: Android and iOS
Flutter Version:
The text was updated successfully, but these errors were encountered: