Closed yqian-eab closed 1 year ago
it's the version of firebase that is the problem I fixed the problem here, it worked for me.
cordova plugin add github:kenfouo/cordova-plugin-push
Hi @kenfouo , can you explain more about what you changed in the repo? Thanks
@kenfouo I tried bumping the version firebase version to 8.1.1, I got a different but similar error:
fatal error:
'GoogleUtilities/Environment/Public/GoogleUtilities/GULSecureCoding.h' file not found
I've been battling with our cordova app on iOS all week. I've been having similar issues to you, although not entirely the same.
I followed @kenfouo's comment and updated ./cordova/package.json to the following, and it still doesn't work.
"cordova": {
"plugins": {
"@havesource/cordova-plugin-push": {
"ANDROIDX_CORE_VERSION": "1.6.+",
"FCM_VERSION": "23.+",
"IOS_FIREBASE_MESSAGING_VERSION": "~> 8.1.1"
}
},
"platforms": [
"ios"
]
}
I've found the only thing that works for me is updating to 4.0.0-dev.0 of the plugin.
cordova plugin remove @havesource/cordova-plugin-push
cordova plugin add @havesource/cordova-plugin-push@4.0.0-dev.0
This breaks our android build unfortunately, but we're just staying on 3.0.1 for android.
FYI, seems the plugin is totally broken on XCode 14.3 so avoid updating to that for now.
I've tried:
use_frameworks!
in podfile: build with this line, build without this line, adding :linkage => :static
and use_frameworks! :linkage => :dynamic
I think it's a step forward by including pod 'Firebase/Messaging', '8.1.1'
in my podfile, but adding different combinations of
pod 'FirebaseAnalytics'
pod 'GoogleAnalytics'
pod 'GoogleUtilities'
still resulted in errors.Depending on the different combinations, I keep getting one of the two errors:
'GoogleUtilities/Environment/Public/GoogleUtilities/GULSecureCoding.h' file not found
or
'GoogleUtilities/UserDefaults/Public/GoogleUtilities/GULUserDefaults.h' file not found
I'm using cocoapods version 1.11.3
@yqianeab do we have any update on 62741
For me while doing a pod install
`ios % BOSS>>pod install Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5 Analyzing dependencies Downloading dependencies Installing Firebase 8.1.1 (was 6.32.2) Installing FirebaseCore 8.1.0 (was 6.10.2) Installing FirebaseCoreDiagnostics 8.15.0 (was 1.7.0) Installing FirebaseInstallations 8.15.0 (was 1.7.0) Installing FirebaseMessaging 8.1.0 (was 4.6.2) Installing GoogleDataTransport 9.2.5 (was 7.5.1) Installing GoogleUtilities 7.11.5 (was 6.7.2) Installing PromisesObjC 2.3.1 (was 1.2.12) Installing nanopb 2.30908.0 (was 1.30906.0) Removing FirebaseInstanceID Removing Protobuf Generating Pods project Integrating client project Pod installation complete! There is 1 dependency from the Podfile and 9 total pods installed.
[!] The HybridStudio [Debug]
target overrides the LD_RUNPATH_SEARCH_PATHS
build setting defined in `Pods/Target Support Files/Pods-HybridStudio/Pods-HybridStudio.debug.xcconfig'. This can lead to problems with the CocoaPods installation
$(inherited)
flag, or[!] The HybridStudio [Release]
target overrides the LD_RUNPATH_SEARCH_PATHS
build setting defined in `Pods/Target Support Files/Pods-HybridStudio/Pods-HybridStudio.release.xcconfig'. This can lead to problems with the CocoaPods installation
$(inherited)
flag, orwhy it removes the following - Removing FirebaseInstanceID Removing Protobuf
after using @kenfouo forked plugin a build from xcode. cordova plugin add github:kenfouo/cordova-plugin-push then if i run cordova plugin ls it shows @havesource/cordova-plugin-push 4.0.0-dev.0 "Cordova Push Plugin" which plugin should be used am confused.
This issue should have been resolved with the latest released version 4.0.0. Please reinstall the plugin and try again.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Bug Report
Getting errors during xcodebuild
Expected Behaviour
Build succeeds after running
pod install
, thenxcodebuild
Actual Behaviour
Getting the following error:
Already tried:
Reproduce Scenario (including but not limited to)
Steps to Reproduce
package.json
and add as a cordova plugincordova prepare ios
pod install
xcodebuild -workspace
commandPlatform and Version (eg. Android 5.0 or iOS 9.2.1)
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
cordova info
PrintoutSample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem