Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
blockspector opened this issue Apr 2, 2023 · 2 comments

Comments

@blockspector
Copy link

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
Copy link
Author

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
Copy link

sokunsamnang commented Oct 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants