Open kaushik1710 opened 4 years ago
Getting the same PermissionGroup error and cannot build. Any help appreciated. Thanks
@kaushik1710 I specified an older version: permission_handler: ^3.2.2 since it's the same time the repo was last updated. Still got errors. Then I closed/restarted my IDE and the errors went away.
Tried all day but still have not been able to get this to build. @singhbhavneet can you verify what version of Dart/Flutter/XCode/Cocoapods/Swift you are using to get this to work? Any tips to get this to build? Thanks!
@jtkeyva @kaushik1710 This probably happened because you didn't specify the versions in the pubspec.yaml file.
Permission handler had a lot of hotfixes lately, and removed the class PermissionGroup in the latest version ^5.x.x.
Either downgrade-
(pubspec.yaml)
permission_handler: '^4.4.0+hotfix.4'
Or replace PermissionGroup with Permission
Map<Permission, PermissionStatus> statuses = await [
Permission.camera,
Permission.storage,
].request();
print((await statuses[Permission.camera]).status);
Read the documentation for the latest version of permission_handler
Thank you @Ishtmeet-Singh Your suggestion got rid of the permissions error but now I'm getting more errors such as:
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 precompiled application for the device.
Error launching application on iPhone.
Any help greatly appreciated!
Thank you @Ishtmeet-Singh Your suggestion got rid of the permissions error but now I'm getting more errors such as:
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 precompiled application for the device.Error launching application on iPhone.
Any help greatly appreciated!
Try flutter clean
.
Make sure your pubspec.yaml file contains the speech_recognition
package -
Add this line
speech_recognition: ^0.3.0+1
Run flutter pub get
and you'll be good to go.
Thank you very much @Ishtmeet-Singh I just keep getting new issues every time I fix one. Now it's onesignal. Any ideas how to fix this? I'm going crazy over here! Any help greatly appreciated
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2FUsers%2Fjt%2FDownloads%2Fchat_app-master+3%2Fios%2FPods%2FLocal+Podspecs%2Fonesignal.podspec.json&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Found no similar issues. To create a new issue, please visit: https://github.com/cocoapods/cocoapods/issues/new Error output from CocoaPods: ↳ [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target
Runner
toTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include theTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
in your build configuration (Flutter/Release.xcconfig
). Exception: Error running pod install
Thank you very much @Ishtmeet-Singh I just keep getting new issues every time I fix one. Now it's onesignal. Any ideas how to fix this? I'm going crazy over here! Any help greatly appreciated
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2FUsers%2Fjt%2FDownloads%2Fchat_app-master+3%2Fios%2FPods%2FLocal+Podspecs%2Fonesignal.podspec.json&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Found no similar issues. To create a new issue, please visit: https://github.com/cocoapods/cocoapods/issues/new
Error output from CocoaPods: ↳ [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target
Runner
toTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include theTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
in your build configuration (Flutter/Release.xcconfig
). Exception: Error running pod install
Can you please copy paste your pubspec.yaml file? It feels like you haven't added most of the dependencies required for the app to run. Make sure you re-check the Pubspec file for this project here
I used the pubspec.yaml from the repo then today I changed speech recognition and permission handler as per your advice. Here's my pubspec file
name: chat_app description: A flutter application for chatting
version: 1.0.0+1
environment: sdk: ">=2.1.0 <3.0.0"
dependencies: flutter: sdk: flutter
cupertino_icons: ^0.1.2 firebase_auth: flutter_facebook_login: ^1.1.1 http: json_annotation: ^2.0.0 camera: ^0.5.2+1 path_provider:
permission_handler: '^4.4.0+hotfix.4' photo_view: cloud_firestore: ^0.12.5+1 firebase_storage: firebase_database: ^3.0.2 image_picker: ^0.6.0+9 cached_network_image: fluttertoast: intl: shared_preferences:
speech_recognition: ^0.3.0+1 image: onesignal: ^1.1.0 flutter_native_image: git: https://github.com/btastic/flutter_native_image.git url_launcher: dev_dependencies: flutter_test: sdk: flutter build_runner: ^1.0.0 json_serializable: ^2.0.0 emoji_picker: ^0.0.2
flutter:
uses-material-design: true
assets:
images/sticker4.png
fonts:
#
@jtkeyva This looks fine, can you copy paste the error log from the terminal too? Or screenshots will help
Thanks. Here's the debug console errors now:
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2FUsers%2Fjt%2FDownloads%2Fchat_app-master+4%2Fios%2FPods%2FLocal+Podspecs%2Fonesignal.podspec.json&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Found no similar issues. To create a new issue, please visit: https://github.com/cocoapods/cocoapods/issues/new Error output from CocoaPods: ↳ [!]
<PBXGroup UUID=
97C146E51CF9000F007C117D>
attempted to initialize an object with an unknown UUID.CF3B75C9A7D2FA2A4C99F110
for attribute:children
. This can be the result of a merge and the unknown UUID is being discarded. [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the targetRunner
toTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include theTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
in your build configuration (Flutter/Release.xcconfig
). Exception: Error running pod install Exited (sigterm)
I tried running .xcworkspace and got this too:
And here's the latest output from today's updated repo. Still shows the onesignal issue:
[!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2FUsers%2Fjt%2FDownloads%2Fchat_app-master+4%2Fios%2FPods%2FLocal+Podspecs%2Fonesignal.podspec.json&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Found no similar issues. To create a new issue, please visit: https://github.com/cocoapods/cocoapods/issues/new Error output from CocoaPods: ↳ [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target
Runner
toTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include theTarget Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
in your build configuration (Flutter/Release.xcconfig
). Exception: Error running pod install Exited (sigterm)
Hey Can anyone help me with building of this project I am new to Flutter
I cannot find the pods folder