-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
Could not compile on IOS - InAppMessagingDisplayResources.bundle missing #326
Comments
Works when I revert cordova-plugin-firebasex version to 8.0.1. In-app messaging support in recent releases must have broken something. |
Also encountering the same issue. Tried running - run:
name: Ionic - Prepare Cordova iOS & CocoaPods Dependencies
command: |
ionic cordova prepare ios --confirm --no-build
cd platforms/ios/
pod dependencies
ionic cordova plugin rm cordova-plugin-firebasex
ionic cordova plugin add cordova-plugin-firebasex
ionic cordova prepare ios --confirm --no-build
pod repo update
pod install Getting this plugin working is, as you can see above, a major chore. CocoaPods' There has got to be an easier way to get this plugin working... O-o In the full error report:
Running the recommended command, |
The bundle is there, in the platforms/ios/build directory, but it's "flat", instead of sitting in a subdirectory called FirebaseMessaging or something like that. It's like either the referencing script has the wrong path, or the bundle isn't landing in the right spot. |
I've tried to move back to version 8.0.1, but I am still having build problems. The current build error is this, which occurs whether I run
This issue has left us dead in the water and unable to progress with our development. Any chance we could get some insight from the plugin authors? |
Clean and reset the whole project, I suppose? |
Every build in our CI is from a clean slate. We pull the repo, then run the necessary ionic/cordova commands to prepare, install plugins, etc. from scratch. We don't check in our platforms or plugins directories (one of the reasons we've stuck with Cordova, rather than move to Capacitor, as Capacitor usually requires that you fiddle with low-level native code and you end up having to check it all in...bleh. :P) |
Are you using the modern build system for XCode, or legacy build system? Do you still have cordova-plugin-cocoapodsx in your project? It was dropped some time ago and maybe it clashes with something, if it's still left. |
This is a relatively new project, started late last year with Ionic 4 and Cordova 9. It doe snot use cocoapodsx. The project worked fine until last week, then it suddenly broke. We've been developing and deploying builds for several months, until maybe mid-week last week. The only change appears to be FirebaseX. |
I have now tried several previous versions of the plugin. I restored our CI build script to what it used to be, before I started fiddling with it to try and resolve this issue. We originally started with v7.0.1 of this plugin back in November last year. I've tried 7.0.1, 7.0.2, 8.0.0 and 8.0.1. All of these versions result in this same error:
If I run We are completely dead in the water here. |
Upon investigation, it seems this error only occurs when building from the CLI (via the As to why this error should occur, I currently have no idea. In the meantime, the workaround is to build from Xcode rather than the CLI. |
I tried updating the podspecs to reference the latest v6.18.0 release of the Firebase SDK for iOS but the issue still occurs when building from the CLI 😞 |
We don't have the option of building with XCode in our CI (Continuous Integration) build. It has to be command line. So that cannot be the recommended solution. Both old versions, and the current version, are currently broken. I don't know if that is because of a Firebase SDK update that has broken all versions prior to 8.1.1, or something else...but we use Firebase Analytics and Cloud Messaging, and currently our development is halted because of the changes here. Is there some way to get the previous version, 8.0.1, working without running into either of the errors I've posted above? We don't need In-App Messaging, but it doesn't seem as though 8.0.1 builds at the command line any better than 8.1.1... |
Would it be possible to reference a previous version? Any chance we could get an 8.0.2 that references the same version of the SDK that worked prior to 8.1.1? |
v8.0.1 builds fine from the CLI - see this console output from my build. It's the addition of the Inapp Messaging component that has caused the issue with CLI builds on iOS. |
Ok. I had to find and update all version references to the firebasex plugin and set them to 8.0.1, and explicitly reference 8.0.1 when I reinstall the plugin, after uninstalling it (because the first install of the plugin fails due to pods not being installed, but pods can't be installed until the plugin is installed...), before updating the pods, to get everything to work. Once I had all the version numbers configured explicitly to 8.0.1 in all places, the build finally started to work. |
TL;DR: if building using the CLI, pin version 8.0.1 until such time as a patch release can be done to fix this issue with 8.1.x |
It seems this issue is not specific to this plugin or to the particular version of the Inapp Messaging SDK component it references:
which (as this console output demonstrates) fails with the same error:
as with this plugin, building in Xcode is successful |
I have pinned version 8.0.1 but I still have errors - the problem is that xcodebuild -j "$(sysctl -n hw.ncpu)" \
-project "platforms/ios/app.xcodeproj" \
-scheme "app-scheme" \
-configuration Release clean archive \
-archivePath "platforms/ios/app.xcarchive" \
PROVISIONING_PROFILE="$uuid_dbg" \
CODE_SIGN_IDENTITY="$identity_dbg" Any hint on how can I solve this problem? |
@Javinator9889 looks like you are invoking xcodebuild directly? Rather than via the Cordova CLI which generates something like:
Direct invocation of xcodebuild isn't something I can directly support in the context of this plugin as there's too many potential variations. All I can say is that the example project builds fine with v8.0.1 via the Cordova CLI and fine with v8.1.1 via Xcode, so use that as a working reference. |
@dpa99c I will have a look at using Cordova CLI - thanks in advance :) |
@dpa99c I'm getting into Cordova for the first time - I've been working on a project for a time. Would you mind if I ask you to guide me on how to create an xcarchive using Cordova CLI? |
|
@dpa99c It worked 😮 Thank you so much <3 |
`cd [MYPATH]/platforms/ios ** BUILD FAILED ** The following build commands failed: I am using a cordova webpack plugin and I prefer to use CLI. Cheers! *** edit *** I did @orenagiv 's trick and it worked. Looks like backtracking to cordova-plugin-firebasex@9.0.1-cli did it form me. Thanks! |
@jh-gh Did you get it to compile faster? For me, on my Macbook Air 2012 it takes 23 mins with CLI (cordova run ios) to start!! And it always seem to rebuild all. Cheers. |
@Phrensoua No, I have not found any way to make it compile faster on the 9.X stream. I am still staying with 8.0.1 for now as that version still builds in a reasonable amount of time for ios whereas the 9.0.1-cli version takes 4 times as long to build (haven't tried any later 9.X versions). |
Excuse me @jh-gh did you solve the problem just removing the plugin and installing it again in this way?
|
Thank you @orenagiv this worked for me. |
@jh-gh, thank you for your reply. On my side, I have resolved to execute into Xcode for now. It doesn't rebuild all every time at least... Cheers |
@ilclaudio I updated the dependency version in package.json and did a clean build (rm node_modules, npm install, rm platforms/plugins, (ionic) cordova build ios). |
I got build problem with 9.1.1 also but build with 9.1.1-cli was successful. These versions have same build time problem. It tooks maybe 15-20 minutes. So i downgraded 8.0.1 and built in 2-3 minutes. Thank you for test and 8.0.1 tip. |
@orenagiv it worked perfect, compilation time is the only problem currently |
Protip: don't pin it like so: Seems obvious, but I've lost some time today scratching my head, why it still throws the old error. |
Is there a difference between building by using CLI |
@sboudouk yes, currently building a pod that contains subfolders (such as Google Tag Manager or Firebase Inappmessaging) fails using the Cordova CLI (as documented here) whereas it works fine when building in Xcode, hence the need for a |
Is it possible to provide package with the "latest-cli" tag? |
Hi I have a big issue with this plugin on ios when compiling. I didnt want to start a new thread as i dont think its an issue with the plugin but with the pods library. It creates a build error saying disk full on various stages of the build. I am using a remote mac server and their support cant help me apart from creating a new server which i could do but i feel it maybe the same problem. I think its a ram disk full issue as this pod library is massive and makes the compile time take alot longer. I have searched online for something to fix this issue cleaning up the xcode build etc but i am still unable to create this build. Is there someone who can direct me to a solution to why its giving this error and what i can do to fix it? The build works fine and fast without this plugin Here is an example |
Anyone having this issue please add following plugin with same version: cordova-plugin-androidx and cordova-plugin-androidx-adapter are needed for this plugin. |
Hey Having similar issues building with the cordova cli. However I have not been able to resolve them by changing to any -cli version of the plugin. Or by downgrading to 8.0.1 which was previously working for me. My builds always fails with the following message regardless of which version of the plugin I use now. If i remove the plugin completely the build succeeds. Not sure how these pods are still sneaking into my build even when using the -cli plugin or the 8.0.1 plugin. Will post if I find a solution. If anyone has seen this issue please let me know. While building module 'nanopb' imported from /Users/haydencassar/Code/AppTemplate/frontend/platforms/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCCTLibrary/Protogen/nanopb/cct.nanopb.h:22:
|
@hcassar93 I have seen similar problems. I suggest that you try upgrading your cocoapods installation to the pre-release version (see https://stackoverflow.com/questions/63646607/xcode-12-using-firebase-pods-lexical-or-preprocessor-issue-pb-h-file-not-fou/63648164#63648164). That fixed it for me. |
@jh-gh Thanks so much. Really appreciate your help. Fixed it for me too. |
Pinning the plugin version at 8.0.1 works for me too. Building from the CLI and CI. |
I'm trying to follow the thread here, can anyone answer me: Using the CLI branch don't include the Firebase Inapp Messaging and Google Tag Manager SDK components. What does this result in? Any features lost in the final app hen in compare to the not cli version? |
@EinfachHans it means that both features would not be available in your app but you do not have to worry about this if you do not use either of those features. Your app would still work fine. Inappmessaging is used to deliver interactive popups or notifications to your app users while they're on the app and GTM is used to maintain tracking across your apps and websites. |
@dpa99c interestingly, as of v15.0.0 of this plugin, I no longer need to use the -cli branch to get my builds working from the CLI. I had been using the -cli branch and accidentally installed the main branch when upgrading and noticed my builds were still successful. |
Bug Report
Current behavior:
When creating a prod build (Ionic), it crashes with:
I did
pod install
in platforms/ios but it didn't change anything. Also did podrepo update
.Looks like a problem with
Firebase/InAppMessaging
pod?Expected behavior:
It should compile properly.
Steps to reproduce:
ionic cordova build ios --prod
Environment information
9.0.0 (cordova-lib@9.0.1)
mac OS 10.15.3 Catalina
iOS build issue:
v10.18.1
11.3.1
The text was updated successfully, but these errors were encountered: