簡體   English   中英

Xcode 構建失敗 - Flutter ios

[英]Xcode Build Fail - Flutter ios

我是 iOS 的新手。 我正在嘗試構建一個使用flutter_twilio package的flutter項目。 我在嘗試運行它時遇到以下錯誤。 我不確定為什么會收到此錯誤。 誰能指導我解決這個問題。 當我嘗試刪除 package 並運行它時。 它工作得很好。 但此時我無法更改 package。

Showing All Messages
Undefined symbol: _OBJC_CLASS_$_TVOAcceptOptions


Showing All Messages
Undefined symbol: _OBJC_CLASS_$_TwilioVoice


Showing All Messages
Undefined symbol: _OBJC_CLASS_$_TVOConnectOptions


Showing All Messages
Undefined symbol: _OBJC_CLASS_$_TVODefaultAudioDevice

我的 Podfile 是

# Uncomment this line to define a global platform for your project
platform :ios, '11.0'

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

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

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

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

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

您是否嘗試在 XCode 構建之前清除所有依賴項並刪除Profile.lock

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM