New Flutter project cant build succefully in Mac mini intel chip
Output :
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
lib/main.dart:1
Xcode build done. 17.2s
Failed to build iOS app
Error (Xcode): ../../flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart:9:8: Error: Error when reading '../../.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/vector_math_64.dart': Permission denied
../…/material/bottom_navigation_bar.dart:9
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Exited```
`flutter doctor` seems to be fine
I tried delete SDK and create new one but didnt work, i hope someone can help.
Try running flutter clean then flutter create . in the root directory. This should reset the plugins. Also, check if there is any outdated plugins in your pubspec.yaml file.
Related
Monterey 12.6.1
Xcode :Version 14.1 (14B47b)
I am getting a compilation error even though I follow the instructions in the "README.md" file.
Open Client.xcodeproj in Xcode.
Build the Fennec scheme in Xcode.
I can't pass these steps.
https://github.com/mozilla-mobile/firefox-ios
I want to run firefox application on Mac OS simulator. can you help.
Error Message
I wanted to run firefox application in ios simulator. I got a compile error.
I face error while launching on device on iPhone 12 Pro Max. This is console log
Launching lib/main.dart on iPhone 12 Pro Max in `debug mode`
Running Xcode build...
Xcode build done. 270.9s
Xcode build is missing expected TARGET_BUILD_DIR build setting.
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
I just ran into this and fixed it as follows:
run command flutter upgrade
run command flutter clean
run command flutter pub get if you have missing dependencies
attach phone
run command flutter run
If it still fails, open the Xcode runner project, set your development team and run it directly from there.
After it runs, close Xcode, do a clean build, and run it using your preferred approach.
I changed name of my VS 2019 project running on Mac (from PrismApp1 to something else) and now I can't run on iOS simulator. Tried to run on different simulator phone too. I searched for PrismApp1 in folder and on machine can't find anything... delete bin and obj folders and did a Build All. any ideas?
error HE0046: Failed to install the app 'com.companyname.PrismApp1' on the device 'iOS 13.2 (17B102) - iPhone 11 Pro': Failed to install the requested application
Note: it works if i deploy to my physical iPhone...
I had a similar issue with iPhone 13 emulator and iOS 15, where I couldn't deploy my app on the simulator, but it worked on a real device.
The error I was getting was:
error HE0046: Failed to install the app 'ma.myapp.app' on the device 'iOS 15.0 (19A339) - iPhone 13 mini': “Myapp” Needs To Be Updated
This is how I solved the issue.
I had this weird error after app was successfully compiled and it was simply due to a null variable involved in a plist command executed post build.
Just try to close and reopen VS, it worked for me.
Following these instructions
I tried to run a new project on macOS(desktop) using Android Studio.
I get the following error:
Launching lib/main.dart on macOS in release mode... Finished with
error: Unable to get Xcode project information: xcodebuild: error:
The directory
/Users/current.user/Work/Playground/testout/flutter_app2/macos does
not contain an Xcode project, workspace or package.
I get the same issue if I run in the terminal flutter run --release -d macOS
Running on a simulator/device, works fine.
It doesn't sound like you followed the instructions for running a project other than the FDE example. A newly created Flutter project doesn't have support for running on desktop; you need to add that.
See also flutter.dev/desktop#create for information on the state of create and run for desktop.
My Cordova iOS builds had previously been running fine from the CLI, until I updated to macOS 10.13.4 and Xcode 9.3 (9E145). Now whenever I use
cordova run ios
The simulator will launch, but my app is not installed or run, and this message is displayed:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
After a minute or two, the process stops and the message then reads:
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.myapp.name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.myapp.name" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "com.myapp.name" is unknown to FrontBoard.
Application "com.myapp.name" is unknown to FrontBoard.
Has anyone encountered this message specifically after installing Xcode 9.3? I've uninstalled and reinstalled Cordova, I've tried 'erase settings' within the simulator, and I've removed and added the iOS platform from my project.
The project will successfully build and run if I open the Xcode project file directly within Xcode. So currently it just seems to be a fault from launching the simulator from the Cordova CLI.
Any other tips/tricks?
I’m having a similar issue.
seeing this after I update to XCode 9.3 and build through cli
Error Domain=IDEProfileLocatorErrorDomain Code=1 “No profiles for ‘org.oclc.digby’ were found” UserInfo={NSLocalizedDescription=No profiles for ‘org.oclc.digby’ were found, NSLocalizedRecoverySuggestion=Xcode couldn’t find any iOS Ad Hoc provisioning profiles matching ‘org.oclc.digby’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
When I bring the project up in XCode the signing is correct and not complaining.
Same issue, solved after install iOS 11.2 Simulator in Xcode preferences -> Components, then
ionic cordova run ios -l --target="iPhone-X"