After 10hours of non-stop recompilation fun, I’ve finally hit a wall with this error:
flutter build ios --release --no-codesign
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.fotolockr.cakewallet for device (ios-release)…
Running Xcode build…
Xcode build done. 26.7s
Failed to build iOS app
Error (Xcode): cw_mweb/lib/mweb_ffi.dart:18:14: Error: Type ‘MWebFlutter’ not found.
Encountered error while building for device.
I’ve no idea how this is supposed to be generated if it hasn’t happened during the rest of the process.
I’m also curious about decred wallet. It has no compatible binary for iOS simulator, it only builds for devices. Am I missing another step, or does nobody use the iOS simulator during development?
Is there any way to simply turn some coins off? I’d love to make this process simpler to run locally and not require every independent build process of coins I won’t look at while developing.
Thanks for sharing your feedback with us, for disabling coins you don’t want to use, you can always go to scripts/ios/app_config.sh and you will find all the coins enabled by a flag (ex. --monero , --decred, etc…) you can remove any coin you don’t want to have in the app.
The project will have some errors for those coins, but they can be safely ignored and you can build the app normally with them.
For Litecoin and mweb, Litecoin is included in the same flag with Bitcoin (--bitcoin) and if you want to keep them and fix the mweb issue, all I have to do is run this script scripts/ios/build_mwebd.sh
Hope this helps and feel free to share with me any further feedback on how we can improve this process
Ahhh awesome! Cheers Omar I’ll try modifying app_config first thing in the morning simply removing the problematic coins and see where it gets me.
As for mwebd, re-running that script on mac doesn’t change anything. I may be looking in the wrong place but my un-educated guess is the bindgen file in cw_mweb points specifically to an android file that doesn’t exist. Which may be because I’m only building ios. Because of this the generated file generated_bindings.g.dart is left empty:
cw_mweb/ffigen_config.yaml
description: Bindings to `go/mweb.h`. output: 'lib/generated_bindings.g.dart' headers: entry-points: - 'android/src/main/jniLibs/arm64-v8a/libmweb.h'
cw_mweb/lib/generated_bindings.g.dart
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
// ignore_for_file: type=lint