I am running flutter app and getting this error - ios

Running "flutter pub get" in my_app... 362ms
Launching lib/main.dart on iPhone 11 in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 1,375ms
Xcode build done. 6.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
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: Building targets in parallel
note: Planning build
note: Constructing build description

Try this
Delete the flutter folder at the FLUTTER PATH, and recopy the same path in the flutter folder.

Related

fatal error: module 'audioplayers_darwin' not found

My Flutter app is working fine for Android devices and simulators and when I try "flutter run" with iOS simulator... I get the following error...
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running pod install... 1,891ms
Running Xcode build...
└─Compiling, linking and signing... 6.4s
Xcode build done. 40.2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/9k/fjjtmhcd3l7gjlmf46bwrhqh0000gn/T/flutter_tools.ooU1om/flutter_ios_build_temp_dirGCaWjd/temporary_xcresult_bu
ndle
/Users/rishigesan/Documents/GitHub/atreus/vway_taxi/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module
'audioplayers_darwin' not found
#import audioplayers_darwin;
I can't figure out what to be done to resolve this issue...

ld: framework not found Flutter for a target widget extension

This is happening with my HomewidgetExtension target (as I checked in Xcode) which I implemented using home_widget plugin.
I tried pod deintegrate/install/update, deleting and restoring flutter, flutter upgrade etc but it was not helpful.
Flutter version:2.10.3
Xcode version: 13.3
macOS Monterey
Please help me.
flutter run results:
`Launching lib/main.dart on iPhone SE (3rd generation) in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 42.5s
Failed to build iOS app
Error output from Xcode build:
↳
2022-03-28 20:49:33.569 xcodebuild[5209:41927] 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-03-28 20:49:33.569 xcodebuild[5209:41927] 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
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/v5/kpr5p68x3pq_y1zffc3fycq00000gn/T/flutter_tools.DnSqEu/flutter_ios_build_temp_dirDdzw4s/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
Error (Xcode): Framework not found Flutter
Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).`

Error running nativescript on ios but xcode runs successfully

Tried to run the nativescript app using "tns run ios" and get the following error.
Saving metadata generation's stderr stream to: /...../platforms/ios/build/Debug-iphonesimulator/metadata-generation-stderr-x86_64.txt
~/work/qoo/qoo/platforms/ios
ld: in /Users/..../platforms/ios/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRAnalyticsConnector_8094107d82c527bf23f93e98c9db96d1.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/...../platforms/ios/Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
However if i run the generated .xcworkspace project on iphone 11 pro max... the app starts up just fine.

My app is not building debug console says Could not build the application for the simulator

This is the output when trying to build the basic application when creating a new file. Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'Flutter' imported from /Users/davywavy/Desktop/Flutter Projects/premium/ios/Runner/GeneratedPluginRegistrant.h:8:
In file included from :1:
In file included from /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
In file included from /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
completionHandler:(nonnull void (^)())completionHandler;
^
void
1 warning generated.
1 warning generated.
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)
I have tried fixing my path flutter upgrade, flutter doctor -v everything looks right.
Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
note: Using new build systemnote: Planning buildnote: Using build description from disk
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)
new output

Xcodebuild failed exit code 65 - ios

Receiving the following error when doing a
tns run -v ios
(mac is running High Sierra and xcode is current, certificates are in place, etc). any assistance would be greatly appreciated. Here the error:
`Building project...
Xcode build...
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
ld: framework not found FileProvider for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
error: the following command failed with exit code 1 but produced no further output
Ld build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/x86_64/HelloWorld normal x86_64
** BUILD FAILED **
Unable to apply changes on device: B71912B9-B650-4EBF-AB43-3383136CB95F. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/XXX/temp/NATIVE/HelloWorld/hooks/after-watch/nativescript-dev-webpack.js`
run tns build ios --clean --log trace first ,if the log trace is related to some plugin, use whose latest version in the package.json file , run npm install, than run tns build ios --clean --log trace again.
if it not work, run tns prepare ios --release and open {app-name}/platforms/ios/{app-name}.xcworkspace file with xcode , try run it, xcode will tell you where is the problem.

Resources