I am new to Flutter, I added a watch app goal to my Flutter iOS app by selecting an current app possibility.
Then I add pod to my watch app. Every part was working in debug mode on the machine in addition to the simulator.
However after I tried to make a construct, It reproduced no such module discovered for Kingfisher, after I eliminated this then, It generated an error to the following pods set up for the watch app.
Then I take away the watch app Goal and construct it. It succeeded.
thanks prematurely.
Right here is my pod file
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
challenge '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 case you're operating pod set up manually, ensure 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}. Strive 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!
platform :ios, '14.0'
# pod 'Alamofire', '5.6.4'
pod 'Google-Cell-Adverts-SDK'
pod 'GoogleMobileAdsMediationUnity'
pod 'GoogleMobileAdsMediationFyber'
pod 'GoogleMobileAdsMediationInMobi'
pod 'GoogleMobileAdsMediationChartboost'
pod 'GoogleMobileAdsMediationFacebook'
pod 'GoogleMobileAdsMediationAppLovin'
pod 'GoogleMobileAdsMediationIronSource'
pod 'GoogleMobileAdsMediationVungle'
pod 'GoogleMobileAdsMediationAdColony'
pod 'GoogleMobileAdsMediationTestSuite'
pod 'FBAudienceNetwork'
# pod 'CryptoSwift', '0.13.1'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
goal 'RunnerTests' do
inherit! :search_paths
finish
finish
goal 'MyWatchApp' do
use_frameworks!
use_modular_headers!
platform :watchos, '9.0'
pod 'Alamofire', '5.6.4'
pod 'ObjectMapper', '4.2'
pod 'CryptoSwift', '0.13.1'
pod 'Kingfisher'
finish
post_install do |installer|
installer.pods_project.targets.every do |goal|
flutter_additional_ios_build_settings(goal)
# Set iPhoneOS deployment goal
goal.build_configurations.every do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
finish
finish
finish
I attempted eradicating pods and add these framework manually, however no luck.
I attempted altering my watchapp goal supported platform structure to watchOS from default iPhoneOs. It really works however after putting in construct to machine the bridge between app and watch app was damaged and I used to be not capable of set up watch app.
I additionally examine podspec of every pods put in for compatibility (It was okay).
I additionally eliminated house between watch app goal title.
I attempted including $(SRCROOT) in framework search path and make it recursive.
Additionally tried Excluded arm64 for launch mode.