Closed posdevelopers closed 4 years ago
1.Would you share your package.json? 2.Do you have cocoapods installed without sudo (not as root)?
{
"name": "QuickzLaundry",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/card-io": "^4.20.0",
"@ionic-native/core": "~4.20.0",
"@ionic-native/date-picker": "^4.20.0",
"@ionic-native/fcm": "^4.20.0",
"@ionic-native/firebase-messaging": "^4.20.0",
"@ionic-native/geolocation": "^4.20.0",
"@ionic-native/local-notifications": "^4.20.0",
"@ionic-native/network": "^4.20.0",
"@ionic-native/splash-screen": "~4.20.0",
"@ionic-native/status-bar": "~4.20.0",
"@ionic/storage": "2.2.0",
"axios": "^0.19.0",
"cordova": "^8.1.0",
"cordova-android": "8.1.0",
"cordova-ios": "5.1.1",
"cordova-plugin-androidx": "^1.0.2",
"cordova-plugin-androidx-adapter": "^1.1.1",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-datepicker": "^0.9.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-geolocation": "^4.0.2",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-local-notification": "^0.9.0-beta.2",
"cordova-plugin-network-information": "^2.0.2",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"date-fns": "^2.8.1",
"ionic-angular": "3.9.5",
"ionicons": "3.0.0",
"ng2-search-filter": "^0.5.1",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.2",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"node-sass": "^4.14.1",
"typescript": "~2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-datepicker": {},
"cordova-plugin-geolocation": {},
"cordova-plugin-local-notification": {},
"cordova-plugin-network-information": {},
"cordova-plugin-androidx": {},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-ionic-webview": {}
},
"platforms": [
"android",
"ios"
]
}
}
yes cocoa is installed and when i run pod install on ios folder then it is installing firebase
That's so strange. Cordova should be able to install using cocoapods by itself on plugin install. I'll add an issue here to investigate this issue and maybe force it by script.
After that you were able to build the app, right?
Yes , i go to pod install and all dependcies are installed , now when i try to build using sudo ionic cordova build ios , then it is giving sandbox is not sync with podlock file
diff: /Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.0.99. (in target 'nanopb' from project 'Pods') BUILD FAILED
The following build commands failed: PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /var/root/Library/Developer/Xcode/DerivedData/Quick_Z_Laundry-gfzmljacvkqqjjbcgohzrydhchgv/Build/Intermediates.noindex/Quick\ Z\ Laundry.build/Debug-iphonesimulator/Quick\ Z\ Laundry.build/Script-EC5B9E52FBA74C42B5B00AD8.sh (1 failure)
Here is my cordova plugin list i am using : cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx" cordova-plugin-androidx-adapter 1.1.1 "cordova-plugin-androidx-adapter" cordova-plugin-badge 0.8.8 "Badge" cordova-plugin-datepicker 0.9.3 "DatePicker" cordova-plugin-device 2.0.2 "Device" cordova-plugin-fcm-with-dependecy-updated 6.4.3 "Cordova FCM Push Plugin" cordova-plugin-geolocation 4.0.2 "Geolocation" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview" cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist"
This is a very old app, which is still targetting iOS 4.3. This iOS version is not supported by cordova. And cordova-plugin-fcm-with-dependecy-updated
only suports iOS 9+.
I suggest to open the project workspace in XCode and configure to target, at least, iOS 9. Which will probably cause many plugins to fail unless upgraded.
i am targeting ios 11 from xcode
Now i am facing error in Appdelegate+fcm file
@import UserNotifications; @import Firebase; "Module firebase not found" , i am opening workspace as seen on the other links
i am targeting ios 11 from xcode
In the app, yes. But the "nanopb" dependency of a dependency you have is not. Although, this should be causing this particular issue.
Now i am facing error in Appdelegate+fcm file
import "AppDelegate+FCMPlugin.h"
import "FCMPlugin.h"
import "FCMPluginIOS9Support.h"
import "FCMNotificationCenterDelegate.h"
import <objc/runtime.h>
import <Foundation/Foundation.h>
@import UserNotifications; @import Firebase; "Module firebase not found" , i am opening workspace as seen on the other links
Ok, so you are opening the "QuickzLaundry.xcworkspace", right?
yes i am opening xcworkspace
Would you share your Podfile
file?
# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '11.0'
target 'Quick Z Laundry' do
project 'Quick Z Laundry.xcodeproj'
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
end
Got it. You have another plugin that thinks that it is the only one that can use cocoapods :/
Some plugins don't know how to work together. Having a plugin patching others to allow mutual execution is a weird necessity at this point. 😔
Please help i just downgraded to 2.4.0 version and build succeeded but downgraded version have uiwebview so apple is rejecting it.
v2.4.0 will also have issues with Firebase Messaging, fail to run on newer iOS versions, have far less features and so on.
v2.4.0 only builds because it doesn't use cocoapods. Which is now being mishandled by another plugin. Downgrading is not the solution.
In your Podfile, modify it to:
# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '11.0'
target 'Quick Z Laundry' do
project 'Quick Z Laundry.xcodeproj'
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging' # This is required for Push
end
And pod install
again there.
let me try this
One thing more i would like to update you that this podfile is generated empty when i first try to build the app and then i edit it and add these lines
Also one more thing latest cocoapod is not installing on my mac , so i have installed some old version
pod --version result is 1.8.4
i added above line and got the error
cocoapods-clean : 0.0.1
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.5.0
cocoapods-try : 1.1.0
# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '11.0'
target 'Quick Z Laundry' do
project 'Quick Z Laundry.xcodeproj'
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
end
JSON::ParserError - A JSON text must at least contain two octets!
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification/json.rb:61:in `from_json'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification.rb:715:in `from_string'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification.rb:689:in `from_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/source.rb:186:in `specification'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification/set.rb:58:in `block in specification_name'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification/set.rb:56:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification/set.rb:56:in `specification_name'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/cdn_source.rb:212:in `search'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/source/aggregate.rb:83:in `select'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/source/aggregate.rb:83:in `search'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:416:in `create_set_from_sources'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:385:in `find_cached_set'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:360:in `specifications_for_dependency'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:165:in `search_for'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:274:in `block in sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:267:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:267:in `sort_by'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:267:in `sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:53:in `block in sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:70:in `with_no_such_dependency_error_handling'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/delegates/specification_provider.rb:52:in `sort_dependencies'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:746:in `require_nested_dependencies_for'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:729:in `activate_new_spec'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:686:in `attempt_to_activate'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:986:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:984:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:410:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:234:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:233:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=A+JSON+text+must+at+least+contain+two+octets%21&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...
pod install-- JSON::ParserError - A JSON text must at least contain two octets! https://github.com/CocoaPods/CocoaPods/issues/6692 [closed] [13 comments] 6 weeks ago
Searching for inspections failed: Failed to open TCP connection to api.github.com:443 (Connection refused - connect(2) for "api.github.com" port 443) https://github.com/CocoaPods/CocoaPods/issues/9609 [closed] [5 comments] 20 Mar 2020
pod search not work JSON ParserError https://github.com/CocoaPods/CocoaPods/issues/5172 [closed] [10 comments] 30 Aug 2018
I am still getting the error after adding pod firebase/messaging
i will delete and rebuild the project ,these are downloaded Installing Firebase (6.27.0) Installing FirebaseCore (6.8.0) Installing FirebaseCoreDiagnostics (1.4.0) Installing FirebaseInstallations (1.4.0) Installing FirebaseInstanceID (4.4.0) Installing FirebaseMessaging (4.5.0) Installing GoogleDataTransport (6.2.1) Installing GoogleDataTransportCCTSupport (3.2.0) Installing GoogleUtilities (6.6.0) Installing PromisesObjC (1.2.9) Installing Protobuf (3.12.0) Installing nanopb (1.30905.0)
here is my podlock file PODS:
DEPENDENCIES:
SPEC REPOS: https://cdn.cocoapods.org/:
SPEC CHECKSUMS: Firebase: fc4cbf6f1592636431821ef9a3c557e4dfd9f268 FirebaseCore: feda061cb1ee6d8ad4824f4a4a8ffbcfe284f595 FirebaseCoreDiagnostics: 4505e4d4009b1d93f605088ee7d7764d5f0d1c84 FirebaseInstallations: 293f567159b6d66d1c990f13bb868066096c94ec FirebaseInstanceID: 3b119bfe90e904851218159c9a4ecb847cc51d18 FirebaseMessaging: ad9e1a80ea64905e01a0ce1b3eb76a2944544151 GoogleDataTransport: 9a8a16f79feffc7f42096743de2a7c4815e84020 GoogleDataTransportCCTSupport: 489c1265d2c85b68187a83a911913d190012158d GoogleUtilities: 39530bc0ad980530298e9c4af8549e991fd033b1 nanopb: c43f40fadfe79e8b8db116583945847910cbabc9 PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75 Protobuf: 2793fcd0622a00b546c60e7cbbcc493e043e9bb9
PODFILE CHECKSUM: ced5e722d265e9d3328143105542747933ea87d1
COCOAPODS: 1.8.4
I uninstall and again install cocoapod so error is gone but when i try to build from xcworkspace then i got error firebase module not found
I am also getting the same issue on my ios app using ionic 3 and the latest cordova-ios platform 6.0.0 . Is there any solution to this? I have been struggling with this issue. Please help me.
'Firebase.h' file not found
Module 'Firebase' not found
Same error stuck on this since 5 days
I dont know how to reinstall cocopods ....is it safe to reinstall the coco pods on the project? What are the cli commands to do so?....
I google it it's something like gem install cocoapod
It's recommended to have newer versions of each, and for a higher level of control, rvm is very handy.
You should be able to use it by running something like this:
\curl -sSL https://get.rvm.io | bash -s stable
rvm install ruby
gem install cocoapods
The steps in between are informed when you finish install them, and are dependent of the development environment.
Dear Please tell me how to resolve MODULE FIREBASE NOT FOUND error
@posdevelopers, this is an issue related to your environment. You weren't able to install dependencies through Cocoapods. I'm working to help you. But you might need a more hands on support, which would be out of the scope of this community support.
I can, in the near future, provide hands on support by a remote desktop application/zoom using support hours claimed on patreon. Would you support that? And how much would you pledge to have issues like this fixed and prioritized?
yes i can provide you anydesk remote session , and yes it's very urgent for me as i am stuck on this issue since two weeks
can i integrate it without using cocoapods , https://firebase.google.com/download/ios , in this link it is stated that we can integrate the firebase sdk without using cocapods ?
It's really not recommended to to through this route, as it'll impact on the size of your repository, or you'll have to share big chunk of files with your colleagues.
Did you try to follow the steps I mentioned here: https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/108#issuecomment-651359785
Yes i have followed above steps and it's installed updated version of cocoapod
Now i am getting Module 'Firebase' not found
It is giving error in FCMPlugin.m file , error in this line , @import Firebase, I am opening xcworkspace and all firebase sdk's are there in pod project
Plugins/cordova-plugin-fcm-with-dependecy-updated/FCMPlugin.m:8:9: fatal error: module 'Firebase' not found @import Firebase
i think my project is not importing the pod dependencies like firebase and other modules , although libPods.a is there in LINK BINARY WITH LIBRARIES
today error is changed from module firebase to #import "Firebase.h" firebase.h not found , i just reinstall the fcm plugin
There shouldn't be any hard link. Would you try to:
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
rm -rf node_modules/cordova-plugin-fcm-with-dependecy-updated/
rm -rf plugins/cordova-plugin-fcm-with-dependecy-updated/
rm -rf platforms/ios/[APPLICATION NAME]/Plugins/cordova-plugin-fcm-with-dependecy-updated/
ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated
It doesn't make much sense, but maybe you are still fighting some old files.
Hi , it's 24 hours and i am stuck on the below issue with this plugin on ios , can anyone help me please please . i am using ionic 3 working fine on android , but on ios it is not building and give the below error , tried every thing , xcode 11.
fatal error: module 'Firebase' not found @import Firebase;