When I am running a flutter app I need to add this argument. Otherwise, the app is not working.
--no-sound-null-safety
Example:
flutter build apk --no-sound-null-safety
or
flutter run --no-sound-null-safety
It's easy to add on android studio. (Edit configurations..). But, I didn't know how to add this kind of argument on Xcode?
add EXTRA_FRONT_END_OPTIONS in User-Defined in Build Settings. value is --no-sound-null-safety
just keep running code in vs or android studio then open in xcode it will not throw null safety issue for any deprecated package
Related
Unable to get Xcode project information:
2022-12-01 13:57:05.376 xcodebuild[71564:226197] Writing error result bundle to
/var/folders/6g/w7cqd0s54c33_20mrl4v2q640000gn/T/ResultBundle_2022-01-12_13-57-0005.xcresult
xcodebuild: error: Unable to read project 'Runner.xcodeproj'.
Reason: Project /Users/noel/Treegar/treegar-app/ios/Runner.xcodeproj cannot be opened because it is missing its
project.pbxproj file.
i keep getting this error when ever i run flutter run or flutter build ios.
i dont know what to do... it works fine on android but not on ios.
ive updated xcode and flutter same problem
flutter doctor -v
UPdate cocoapod to latest version
update flutter
update xcode
This error message indicates that the Runner.xcodeproj file is missing or cannot be opened.
This file is part of the Xcode project for your Flutter app and is necessary for building and running the app on iOS.
To fix this issue, try the following steps:
Make sure that you have the latest version of Xcode installed on
your computer. You can check for updates and download the latest
version of Xcode from the Mac App Store.
Make sure that you have the latest version of the Flutter SDK
installed on your computer. You can update Flutter by running the
flutter upgrade command in a terminal window.
Make sure that you have the latest version of CocoaPods installed on
your computer. You can update CocoaPods by running the
sudo gem
install -n /usr/local/bin cocoapods
command in a terminal window.
Make sure that you have a valid Xcode project file for your Flutter
app. If the Runner.xcodeproj file is missing, you can try running
the flutter create . command in the root directory of your Flutter
app to recreate the Xcode project files.
If the above steps do not help, you can try deleting the ios directory in your Flutter app and running the flutter create . command again to recreate the Xcode project files from scratch.
After trying these steps, try running the flutter run or flutter build ios command again to see if the issue has been resolved. If you continue to encounter errors, please provide more information about the specific steps you are taking and the full error message you are seeing.
try flutter clear and pubget.
or
try pod install
or
if it is not harmfull for your code try to delete ios folder and recreate it
in your project. may be this can work .
I am using mac and i have installed vs code ide for developement, now i am not able to create new project and no suggetions are given in the ide and also it does not found any error and also i have installed both the plugins i.e flutter and dart but still it is not working for me.
Run flutter doctor and post the screenshot here.
Run it in terminal "flutter doctor"
Have you downloaded flutter sdk from https://flutter.dev/docs/get-started/install/macos Despite plugins you also need this.
I'm trying to build my Flutter app for iOS using xCode and got error:
.../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'sqflite' not found
When I'm trying to build application with flutter with command
flutter build ios
I don't have any problem. Application build successfully.
I tried to delete Pod directory in ios folder and then install pods from scratch
flutter pub get
pod install
How to fix this problem with xCode?
XCode gives this type of Error like Module 'something' not found, when sometimes the problem is somewhere else.
So, what I did is after running flutter build ios command, I didn't try to run it in XCode. Because it was giving these errors.
So, I archived the app and tried to publish in App Store Connect. Then I found the real issue/bug on my code.
App store doesn't support transparent logo or app icon. This was the bug in my case.
So you can try to archive and publish to app store connect. It may show you the real reason.
Change your target Destination to > Any iOS Device
This work for me
"I found the solution,
In the existing project, once you guys add sqflite dependencies
Profile file in IOS folder will not generate code
we need to remove Podfile in ios
rm ios/Podfile
and run the project again, it works for me."
Credit:thanks to viroth-geek
I'm trying to build any Flutter app on iOS on a new Macbook pro 16"
My project used to work well, then after some flutter upgrade, i can't build any project with Xcode
Problem:
/bin/sh:
/Users/{MyUserName}/Documents/dev/utils/flutter/packages/flutter_tools/bin/xcode_backend.sh:
Operation not permitted Command PhaseScriptExecution failed with a
nonzero exit code
What i tried:
Upgrading Xcode & Command line tools
chmod -R 755 my project, and the flutter lib
Follow the Flutter tutorial to use flutter with the latest version of xcode
Switching flutter channel (tried stable 1.17 & master 1.19)
Delete Xcode (& dependencies) delete Flutter & reinstall both
Now, when i try to create a new flutter project
I always face the issue.
The builds are working when i use flutter run from CLI (on my device)
But if i try to use the project with xcode & try to build or run, i face the issue above.
I cant really find similar issues on the web.
PS: My project are working on my old macbook pro 13" same version of xcode and Flutter
Found the answer:
The problem was that Xcode App didn't have enough rights to read / write files & folders.
To solve it:
Go to System preferences > Security & Privacy
Last tab: Privacy
Full disk access: Add Xcode App
If you dont want Xcode to have full disk access you can add it in "Files and folders" instead, and give Xcode rights to your projects folder
I created a brand new React-Native app using WebStorm. When I click on Run -> iOS to fire in iOS simulator, I don't see iOS simulator loading. I don't see any errors also. Here is the screenshot after I run the project.
Now I could run react-native run-ios to get iOS simulator to work (btw which works), but I would like WebStorm to fire simulator so that I can use in-built debugger in WebStorm.
What webStorm and react-native versions do you use? looks similar to WEB-29569, fixed in 2017.3
It's possible that WebStorm uses not latest version of react native that caused some troubles with Xcode version.
First you need to upgrade your Xcode to currently latest version.
Second you would better use stable version of Node JS.
I recommend you not to create app with WebStorm. For today the best way to create new app is create-react-native-app command line tool. It will create app using expo kit. As app will be initialized - run npm start (or better yarn start if you have it, because yarn is optimized version of npm). As it loaded it will show you QR code in terminal witch is you should read with your device and it will install Expo App and open your app inside it. Also you can press i to run iOS simulator.
Here is short documentation for creating app with create-react-native-app. Follow this steps and everything will be all right.
https://facebook.github.io/react-native/docs/getting-started.html