I'm getting a build error using the flutter speech_recognition package. Try to build for iOS right now. Haven't tested Android.
I followed the installation guide. The package seem to load after modifying the .yaml file. I'm using the Visual Studio IDE on a MacBook Pro.
Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done. 9.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET speech_recognition OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/abcdefg/Development/flutter/.pub-cache/hosted/pub.dartlang.org/speech_recognition-0.3.0+1/ios/Classes/SpeechRecognitionPlugin.m:2:9: fatal error: 'speech_recognition/speech_recognition-Swift.h' file not found
#import <speech_recognition/speech_recognition-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
From my dev directory. I can find speech_recognition directories, but the .h file is not anywhere to be found.
abcdefg-MacBook-Pro:Development abcdefg$ !find
find . -name speech_recognition
./learning_fluter/ios/Pods/Target Support Files/speech_recognition
./learning_fluter/ios/Pods/Headers/Public/speech_recognition
./learning_fluter/ios/Pods/Headers/Private/speech_recognition
./learning_fluter/ios/.symlinks/plugins/speech_recognition
./learning_fluter/build/ios/Debug-iphonesimulator/speech_recognition
abcdefg-MacBook-Pro:Development abcdefg$ find . -name speech_recognition-Swift.h
abcdefg-MacBook-Pro:Development abcdefg$
Any help would be appreciated!!
Make sure that the project has been created with the -i command as shown below: futter create -i swift [your_project_name].
after doing this verify that you are using in the properties of the runner SWIFT_VERSION = 4.2. since previous versions could cause this error.
And finally add below in podfile:
target 'Runner' do
use_frameworks!
Related
When I start build the flutter 2.10.x project in macOS 12.4, shows error like this:
"af": 5 untranslated message(s).
To see a detailed report, use the untranslated-messages-file
option in the l10n.yaml file:
untranslated-messages-file: desiredFileName.txt
<other option>: <other selection>
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib/main_pro.dart on iPod touch (7th generation) in debug mode...
Running Xcode build...
Xcode build done. 7.1s
Failed to build iOS app
Error output from Xcode build:
↳
2022-06-29 22:18:45.452 xcodebuild[24800:2158061] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-29 22:18:45.452 xcodebuild[24800:2158061] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-29 22:18:45.573 xcodebuild[24800:2158072] apply_selection_policy_once: avoid use of removable GPUs (via com.apple.dt.xcodebuild:GPUSelectionPolicy->avoidRemovable)
** BUILD FAILED **
Xcode's output:
↳
/Users/xiaoqiangjiang/source/reddwarf/frontend/cruise-open/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'device_info' not found
#import device_info;
~~~~~~~^~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Could not build the application for the simulator.
Error launching application on iPod touch (7th generation).
anyone facing the similiar problem? what should I do to fixed this problem?
How can solve this issues? Error (Xcode): Framework not found Flutter
I tried to more methods,
tried to delete ios then pod install...
tried to flutter clean...
tried to create new project etc.
but still cannot solve.
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
/Users/pin-chientseng/Desktop/yomate/ios/Runner/Info.plist: Property List error: Found non-key inside <dict> at line 56 / JSON error:
JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0.
Xcode build done. 221.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.hhxYin/flutter_ios_build_temp_dirsANWae/temporary_xcresult_bundle
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
warning: Stale file '/Users/pin-chientseng/Desktop/yomate/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist' is
located outside of the allowed root paths.
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/InputFileList-5F0225AF943341352A9BA345-Pods-Runner-resources-Debug-input-files-37e3c74e
61b246db180ac6f1b6f5519a-resolved.xcfilelist'
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/InputFileList-678E497CE5823DAA4909D0F3-Pods-Runner-frameworks-Debug-input-files-6f17fb4
132a6c963427e5fd8c0f46475-resolved.xcfilelist'
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/OutputFileList-5F0225AF943341352A9BA345-Pods-Runner-resources-Debug-output-files-2b94b0
84fd7edee03f689887bc427bd3-resolved.xcfilelist'
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/OutputFileList-678E497CE5823DAA4909D0F3-Pods-Runner-frameworks-Debug-output-files-3dbe4
531b144e8e556eea6741f7e46e6-resolved.xcfilelist'
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/Script-5F0225AF943341352A9BA345.sh'
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/Script-678E497CE5823DAA4909D0F3.sh'
note: Removed stale file
'/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
.build/Debug-iphonesimulator/Runner.build/Script-69D48C77EE5D169DAA62588C.sh'
/Users/pin-chientseng/Desktop/yomate/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target
'FMDB' from project 'Pods')
/Users/pin-chientseng/Desktop/yomate/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target
'leveldb-library' from project 'Pods')
Result bundle written to path:
/var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.hhxYin/flutter_ios_build_temp_dirsANWae/temporary_xcresult_bundle
Error (Xcode): Framework not found Flutter
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.
if I used this methods,
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if Gem::Version.new('8.0') > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0'
end
end
end
end
i will got this error...
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
Running pod install... 38.2s
Running Xcode build...
Xcode build done. 28.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.gk0YEl/flutter_ios_build_temp_dirWL743Q/temporary_xcresult_bundle
/Users/pin-chientseng/Development/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_avfoundation-2.3.4/ios/Classes/messages
.g.m:7:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.gk0YEl/flutter_ios_build_temp_dirWL743Q/temporary_xcresult_bundle
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/pin-chientseng/Development/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_avfoundation-2.3.4/ios/Classes/messages.g.m
:6:8
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.
I have tried many solutions for this error. The only possible solution is to delete the flutter folder in the FLUTTER PATH, and re-copy the flutter folder.
This solved my error.
In my case, I got this error after deleting the flutter instances while trying to clean up some storage on my 258go macbook to update Xcode :(, in doing so I probably deleted the flutter.framework.
The solutions given here have not changed anything for me.
So I tried to clean up everything in the pod, including the cache. The pod install command failed because it missed the ios tools, which can be downloaded with flutter precache --ios.
So the complete process to solve this problem for me was :
cd ios
pod cache clean --all
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
flutter precache --ios
pod install
I hope that this solution will help someone and prevent them from losing a whole day's work as it did for me.
1- flutter channel beta
2- flutter upgrade
3- flutter run
4- flutter channel stable
5- flutter upgrade
6- flutter run
i was use google_maps_flutter-0.5.27+1 and after
i updated my macos to macos catalina 10.15.5 and xcode to xcode 11.5
and now i use flutter 1.17.2
i updated all my packages and update google_maps_flutter to 0.5.28+1
and when i run my app in real ios ipad i get this error
Launching lib/main.dart on iPad in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 83YNLV6KMA
Running pod install... 36.8s
Xcode build done. 50.6s
Failed to build iOS app
Error output from Xcode build:
↳
2020-06-02 11:25:57.501 xcodebuild[33948:249015] DTDeviceKit: deviceType from 4a5c1dc1e2024c618604a3b9f8f9d55e73592c5c was NULL
2020-06-02 11:25:57.576 xcodebuild[33948:249009] DTDeviceKit: deviceType from 4a5c1dc1e2024c618604a3b9f8f9d55e73592c5c was NULL
** BUILD FAILED **
Xcode's output:
↳
Command CompileSwift failed with a nonzero exit code
/users/dell/desktop/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.28+1/ios/Classes/FLTGoogleMapsPlugin.m:17:14: error: no visible #interface for 'NSObject<FlutterPluginRegistrar>' declares the selector 'registerViewFactory:withId:gestureRecognizersBlockingPolicy:'
[registrar registerViewFactory:googleMapFactory
~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on iPad.
Exited (sigterm)
how to fix this error?
Copied from other site answered by #robmr88 and it worked for me.
Remove old FLutter.framework
rm -rf ios/Flutter/Flutter.framework and then flutter clean.
it works after i create new flutter project and moved all files to new project
I try to create an flutter app. i start create Android project in ubuntu it works very fine. But then i mvoe the project into MacOS (Update system 10.15.4 and Xcode 11.4.1) then i get error compile into a real IOS device.
Here is my output:
frederikfrnadsen#demos-MBP barcode $ flutter run
Launching lib/main.dart on iPhone in debug mode...
Found saved certificate choice "iPhone Developer: Frederik Frandsen (W5W828HUYY)". To clear, use "flutter config".
Signing iOS app for device deployment using developer identity: "iPhone Developer: Frederik Frandsen (W5W828HUYY)"
Running pod install... 1,7s
Running Xcode build...
Xcode build done. 17,6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/frederikfrnadsen/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_barcode_scanner-0.1.7/ios/Classes/FlutterBarcodeScannerPlugin.m:2:9: fatal error:
'flutter_barcode_scanner/flutter_barcode_scanner-Swift.h' file not found
#import <flutter_barcode_scanner/flutter_barcode_scanner-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on iPhone.
Thanks for your time !
Try: (rm -rf ios/Flutter/App.framework)
it works for me !
Hi guys i'd tried to use pod install in windows but seems not import dependences from flutter i have that error.. from codemagic
i solve this part... i'ts an pod install i follow guide to install pod in windows...now i have another issue.
enter code here
== Building for iOS ==
== /usr/local/bin/flutter build ios --debug --no-codesign ==
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.corte.takeaway for device (ios)...
Running pod install...
1.7s
Running Xcode build...
Xcode build done. 29.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'firebase_auth' not found
#import firebase_auth;
~~~~~~~^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
Encountered error while building for device.
Build failed :|
Failed to build for iOS
Well, its seems like you forget to add googleservice.plist file in your project. Error occors