11.3 C
New York
Thursday, November 21, 2024

ios – Error: Couldn’t construct Goal-C module ‘webcrypto’ in SwiftWebcryptoPlugin


Error: Couldn’t construct Goal-C module ‘webcrypto’ in SwiftWebcryptoPlugin and

‘Flutter/Flutter.h’ file not present in WebcryptoPlugin

I am utilizing newest Flutter 3.24.5 • channel steady • https://github.com/flutter/flutter.git
Framework • revision dec2ee5c1f (7 days in the past) • 2024-11-13 11:13:06 -0800
Engine • revision a18df97ca5
Instruments • Dart 3.5.4 • DevTools 2.37.3

# Uncomment this line to outline a world platform on your mission
platform :ios, '16.0'

# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

mission 'Runner', {
  'Debug' => :debug,
  'Profile' => :launch,
  'Launch' => :launch,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be a part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  except File.exist?(generated_xcode_build_settings_path)
    elevate "#{generated_xcode_build_settings_path} should exist. In the event you're working pod set up manually, be sure that flutter pub get is executed first"
  finish

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT=(.*)/)
    return matches[1].strip if matches
  finish
  elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish

require File.expand_path(File.be a part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  goal 'RunnerTests' do
    inherit! :search_paths
  finish
finish

post_install do |installer|
  installer.pods_project.targets.every do |goal|
    if goal.identify == 'BoringSSL-GRPC'
      goal.source_build_phase.information.every do |file|
        if file.settings && file.settings['COMPILER_FLAGS']
          flags = file.settings['COMPILER_FLAGS'].cut up
          flags.reject!  flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' 
          file.settings['COMPILER_FLAGS'] = flags.be a part of(' ')
           flutter_additional_ios_build_settings(goal)
              goal.build_configurations.every do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
                config.build_settings['ENABLE_BITCODE'] = 'NO'
                finish
              finish
            finish
          finish
        finish
      finish

package deal i am utilizing is

solana_wallet_adapter: ^0.1.5

Tried with pod delete and once more set up, delete derived knowledge, package deal take away and add once more in yaml

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles