jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lexical or Preprocessor Issue (Xcode): 'better_player/better_player-Swift.h' file not found

KingIlhaam opened this issue · comments

When i build for android i have no problems but when i build for ios i get the following error.

"Lexical or Preprocessor Issue (Xcode): 'better_player/better_player-Swift.h' file not found"

This results in a build fail. I am using Better Player 0.0.83.

This is the Flutter Doctor Output

`[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F770820d darwin-arm64, locale en-GB)
• Flutter version 3.10.5 on channel stable at /Users/ilhaamenterprises/Development/flutter-2.8.1
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 796c8ef792 (3 months ago), 2023-06-13 15:51:02 -0700
• Engine revision 45f6e00911
• Dart version 3.0.5
• DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/ilhaamenterprises/Library/Android/sdk
• Platform android-33, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.80.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.71.20230801

[✓] Connected device (1 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F770820d darwin-arm64

[✓] Network resources
• All expected network resources are available.`

  • Better Player 0.0.83.

I have attempted to clean the project, delete the podfile.lock, deintegrate pods, reintegrate pods everything but i still get the same error. I have tried every solution online but to no avail.

Delete existing ios folder from root of flutter project. If you have some custom changes made to the iOS app - rename it or copy somewhere outside the project.

Re-create the iOS app

flutter create -i swift .

This Regenerates the IOS Folder but using Swift

Note: deleting the iOS will also delete all the information associated with it. if you have been working on an app for long, For Safety better make sure you take a Backup of your IOS Folder