cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
553 stars 681 forks source link

'health/health-Swift.h' file not found #1088

Open ahmedashraf344 opened 1 day ago

ahmedashraf344 commented 1 day ago

Plugin Name

screen_state

Plugin Version

11.1.0

Device

iphone 12 pro

Operating System

ios 18

Describe the bug

can't run on ios always show this issue of 'health/health-Swift.h' file not found

Steps to Reproduce

just run on ios

Expected Behavior

the app is run with no issues

Actual Behavior

ScanDependencies /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/HealthPlugin.o /Users/muhammedhassam/.pub-cache/hosted/pub.dev/health-11.1.0/ios/Classes/HealthPlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'health' from project 'Pods') cd /Users/muhammedhassam/Documents/GitHub/gosi_super_app/ios/Pods

Using response file: /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp

builtin-ScanDependencies -o /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/HealthPlugin.o.scan -- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -ivfsstatcache /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.1-22B74-3d93aac3a03ebac1dd8474c5def773dc.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/muhammedhassam/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability @/Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/e6072d4f65d7061329687fe24e3d63a7-common-args.resp -include /Users/muhammedhassam/Documents/GitHub/gosi_super_app/ios/Pods/Target\ Support\ Files/health/health-prefix.pch -MMD -MT dependencies -MF /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/HealthPlugin.d --serialize-diagnostics /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/HealthPlugin.dia -c /Users/muhammedhassam/.pub-cache/hosted/pub.dev/health-11.1.0/ios/Classes/HealthPlugin.m -o /Users/muhammedhassam/Library/Developer/Xcode/DerivedData/Runner-auvevbsqbtbcwsaxowvnaqtdcrkz/Build/Intermediates.noindex/Pods.build/Debug-Uat-iphonesimulator/health.build/Objects-normal/arm64/HealthPlugin.o

/Users/muhammedhassam/.pub-cache/hosted/pub.dev/health-11.1.0/ios/Classes/HealthPlugin.m:2:9: error: 'Runner-Swift.h' file not found (in target 'health' from project 'Pods')

Flutter Logs

No response

Screenshots

Screenshot 2024-11-26 at 2 50 42 PM

Flutter Doctor Output

/Users/muhammedhassam/development/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 3.19.6, on macOS 15.1 24B83 darwin-arm64, locale en-SA)
    • Flutter version 3.19.6 on channel stable at /Users/muhammedhassam/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (7 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/muhammedhassam/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • 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 21.0.3+-79915917-b509.11)

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

Additional Information

No response

ahmedashraf344 commented 1 day ago

@xjodoin @ened @oakmad @ any support

iarata commented 1 hour ago

Is this for screen_state or health package? Also are you trying to use the package in a Xcode project or is this a flutter iOS?