fuseio / fuse-wallet

Cross platform mobile Ethereum wallet based on Flutter
MIT License
204 stars 115 forks source link

Error (Xcode): File not found: (Not running on IOS simulator) Please help! #313

Open blockspector opened 1 year ago

blockspector commented 1 year ago

Having a nightmare with this can't get it to run at all on the IOS simulator.

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.7.7, on macOS 13.0.1 22A400 darwin-arm64, locale en-GB) [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use flutter config --android-sdk to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.1) [✓] VS Code (version 1.77.0) [✓] Connected device (3 available) [✓] HTTP Host Availability

! Doctor found issues in 1 category.

When running on VS code

**Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)**

Could not build the application for the simulator. Error launching application on iPhone 14 Pro Max.

I updated the Podfile to get another error.

When searching the web I found a few issues relating to something similar. I tried updating the Podfile and followed this advice https://developer.apple.com/forums/thread/725300

But after I followed this advice and updated the Podfile I then get another error

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found

I don't know where to go from here.

When opened in Xcode.

Screenshot 2023-04-02 at 22 51 04

When trying to run in VS code

Screenshot 2023-04-02 at 22 51 56

Thanks for your help in advance!

blockspector commented 1 year ago

I now know its something to do with the Podfile.

This code worked on another flutter project where I was having the same issue but hasn't worked on this.

`post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end

installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' end end end end`

Please Advise

sokunsamnang commented 11 months ago

Have you resolve break code changes for flutter 3.0. Mine got issues that break code changes for my latest version of flutter.