-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 3.0.1 fails to build on XCode 14.3 #228
Comments
Hello I had the same problem. GitHub. https://github.com/kenfouo/cordova-plugin-push What I have done : the plugin embeds Firebase Messaging 6.32.2 except we are already at version 8.1.1 Here is my solution:
NB: For installation, make sure the plugin is in the same folder as the project. Bingo :) it works!!! |
@erisu Any chance in releasing a new version to fix the issue above? |
Hello @kenfouo, what did you replace line 129 with??? I believe your comment is incomplete right? I tried to update with 6.32.2 but it didn't work so I am wondering if it's the right value. |
Replace $IOS_FIREBASE_MESSAGING_VERSION by 8.1.1 |
Thanks but it was already 8.1.1 Let me know if you did change something else, currently I countinue to get errors: platforms/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'PromisesObjC' from project 'Pods') |
I managed to get it to compile by specifying
I also had to bump the Gradle Kotlin Plugin for android
in the |
Hey thanks @Sachanski - after doing this it resolved the problem, but I still have the following error (I cleaned out the deriveddata folder and tried again with no luck): rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCore.framework" "/Users/admin/Library/Developer/Xcode/DerivedData/Fox_Chapel_Racquet_Club-drusoucimkyisuadvuduhvzyrzgh/Build/Intermediates.noindex/ArchiveIntermediates/Fox Chapel Racquet Club/InstallationBuildProductsLocation/Applications/Fox Chapel Racquet Club.app/Frameworks" building file list ... rsync: link_stat "/Users/admin/develop/cordova_builds/Fox Chapel Racquet Club/platforms/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCore.framework" failed: No such file or directory (2) I also notice the following warnings. Should the plugin be referencing a newer version of the firebase plugins? /Users/admin/develop/cordova_builds/Fox Chapel Racquet Club/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'Firebase' from project 'Pods') /Users/admin/develop/cordova_builds/Fox Chapel Racquet Club/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'nanopb' from project 'Pods') |
Hi @gkustas, I was actually having those warning that prevented my code to compile for IOS SDK 11. It's a bit of a pain but you can fix this by changing in from your xcode the problematic pod ios version to 11. Also, once you fix those version warnings you may get some source code error from your pods, I had to unlock the pod files and fix syntax problems. In my case I just added 'void' inside some function declarations, just search for the error content in google , it was easy to find in my case. I could compile for IOS SDK >11 after fixing above issues. |
it's the version of firebase that is the problem cordova plugin add github:kenfouo/cordova-plugin-push |
Note that I am now using the dev.0 fork, which fixes the firebase versioning problem. The new problem is with the pods installer. I found the solution (workaround) to it here: https://developer.apple.com/forums/thread/725230 |
Thanks guys, I will try the push plugin you suggested @kenfouo ASAP! |
@krem06 if your fork is working can you please raise a pull request and get it merged? |
Hi, thank you @kenfouo for sharing an update. I am not deeply familiar with iOS build, but I got 2 bad scenarios here:
Some ideas, will there be an update to this plugin or is there another that worth to migrate? |
@juniortarcisio I have the same problem, did you finally manage to solve this problem? |
Hi, solved sometime ago, try to backup the project, remove the ios platform and add again using CLI (cordova platform rm ios, cordova platform add ios). I believe it was some caching issue after exchanging the plugin versions, but not sure. |
Version 4.0.0 was released. |
Bug Report
Version 3.0.1 uses a version of Firebase Messaging (
6.32.2
) that no longer compiles under XCode 14.3. The version currently onmaster
does (8.1.1
), so just releasing that as a new version would fix the issue.Expected Behaviour
To be able to build an App using the latest published version of this plugin.
Actual Behaviour
It fails to build with "A function declaration without a prototype is deprecated in all versions of C" errors
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
XCode 14.3
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
n/a
cordova info
PrintoutSample Push Data Payload
n/a
The text was updated successfully, but these errors were encountered: