Cordova exits after console log "Preparing Firebase on iOS" when building for iOS. Android builds are completing successfully.
Moving this line outside the IF seems to have fixed the issue. Builds are now completing and functioning as expected.
Is this going to break something further down the line? Is there a reason to now resolve if IOS_STRIP_DEBUG is not set?
I have the same issue with 6.0.7 + iOS
Will downgrade to 6.0.6 and report here
I'm probably having the same issue. When I try to build for iOS, this is my console output (please keep an eye on the line breaks!):
> cordova prepare ios
Generating initial manifest for Ionic Deploy...
Ionic Deploy initial manifest successfully generated.
Preparing Firebase on iOS
ENOENT: no such file or directory, open '/Users/svzi/development/_own/ProjectName/app/platforms/ios/
ProjectName
.xcodeproj/project.pbxproj'
The file exists, but I guess it should be a one liner like:
/Users/svzi/development/_own/ProjectName/app/platforms/ios/ProjectName.xcodeproj/project.pbxproj
For that reason I'm unable to build via CLI...
I'm using version 6.0.7 as well.
I have downgraded to 6.0.6 but I had to update Catalina (b5) & Xcode (11b6).
So with 6.0.6 I can't build from the shell as well.
I can open the workspace and build the app right after I add the iOS platform (without running cordova build ios) and it builds the app properly (after setting dev team) and archive properly.
Workflow:
Using the XCode build is something I don't like and want to avoid. I usually build via CLI to improve the app performance (using AOT, optimizing, uglifying, ...).
@svzi I think your issue is different, Sven -- literally when building iOS, in this case Cordova outputs
Preparing Firebase on iOS
Then quits silently, even when building with the --verbose flag.
As stated above, Android builds fine.
Are you maybe seeing this issue?
Update: Reverting to 6.0.6 does allow the build to proceed (which makes sense since the code @0x6C77 references is not present. Will report back later, I noticed something odd when using 6.0.7 but want to double-check.
Update: It's actually not just on build, the problem begins on 6.0.7 when adding the iOS platform. Cordova outputs (with --verbose tag):
Executing script found in plugin cordova-plugin-firebasex for hook "after_prepare": plugins/cordova-plugin-firebasex/scripts/after_prepare.js
Preparing Firebase on iOS
Then quits.
V.6.0.6 outputs:
Executing script found in plugin cordova-plugin-firebasex for hook "after_prepare": plugins/cordova-plugin-firebasex/scripts/after_prepare.js
Preparing Firebase on iOS
Saving [email protected] into platforms.json
adding ios to cordova.platforms array in package.json
No scripts found for hook "after_platform_add".
I hadn't noticed that previously, but I happened to compare my package.json files, and noticed that iOS was never fully added - an excerpt from my package.json file v6.0.7:
"cordova": {
"plugins": {
"cordova-plugin-firebasex": {}
},
"platforms": [
"android"
]
}
V.6.0.6
"cordova": {
"plugins": {
"cordova-plugin-firebasex": {
"ANDROID_ICON_ACCENT": "#FF00FFFF",
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
"ANDROID_FIREBASE_CORE_VERSION": "17.0.0",
"ANDROID_FIREBASE_MESSAGING_VERSION": "19.0.0",
"ANDROID_FIREBASE_CONFIG_VERSION": "18.0.0",
"ANDROID_FIREBASE_PERF_VERSION": "18.0.0",
"ANDROID_FIREBASE_AUTH_VERSION": "18.0.0",
"ANDROID_CRASHLYTICS_VERSION": "2.10.1",
"ANDROID_CRASHLYTICS_NDK_VERSION": "2.1.0",
"ANDROID_SHORTCUTBADGER_VERSION": "1.1.22"
}
},
"platforms": [
"android",
"ios"
]
}
Not sure if this helps, but cordova platform add android --verbose v6.0.7 shows similar to iOS v6.0.6:
Executing script found in plugin cordova-plugin-firebasex for hook "after_prepare": plugins/cordova-plugin-firebasex/scripts/after_prepare.js
Preparing Firebase on Android
Saving [email protected] into platforms.json
adding android to cordova.platforms array in package.json
No scripts found for hook "after_platform_add".
Adding the missing lines back into the 6.0.7 package.json file then building shows only Preparing Firebase on iOS then quits.
Same here, tried to upgrade to v6.0.7 and the build stop/skip when reaching "Preparing Firebase on iOS"
Downgrading to v6.0.6 as workaround was ok
@consciousimages You were right, I really had another issue. The fix provided in the very first post here, let me build via cli again. So big thanks @0x6C77 !
Have anyone found solution yet? I am facing similar issue.
Same here...with v6.0.7
Seems need to downgrade like v6.0.6
Downgrade to v6.0.6 (ionic cordova plugin add [email protected])
works for me
I have got the same issue i.e. cordova exits after console log "Preparing Firebase on iOS" when building for iOS. Android builds are working successfully.
Here is the output from the cordova output:
cordova-custom-config: Wrote file /../../xxxx-Info.plist
cordova-custom-config: Finished applying platform config
Executing script found in plugin cordova-plugin-firebasex for hook "after_prepare": plugins/cordova-plugin-firebasex/scripts/after_prepare.js
Preparing Firebase on iOS
Plugins versions etc:
Cordova version: 9.0.0 ([email protected]) [email protected]
br.com.brunogrossi.MediaScannerPlugin 0.1.3 "Media Scanner Plugin" com.dawsonloudon.videoplayer 1.0.0 "VideoPlayer" cordova-custom-config 5.1.0 "cordova-custom-config" cordova-open-native-settings 1.5.2 "Native settings" cordova-plugin-android-permissions 1.0.0 "Permissions" cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx" cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter" cordova-plugin-certificates 0.6.4 "Certificate Plugin" cordova-plugin-device 2.0.3-dev "Device" cordova-plugin-dialogs 2.0.2 "Notification" cordova-plugin-file 6.0.2-dev "File" cordova-plugin-file-opener2 2.2.0 "File Opener2" cordova-plugin-file-transfer 1.7.1 "File Transfer" cordova-plugin-firebasex 6.0.7 "Google Firebase Plugin" cordova-plugin-geolocation 4.0.2-dev "Geolocation" cordova-plugin-inappbrowser 1.2.1 "InAppBrowser" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-splashscreen 5.0.3 "Splashscreen" cordova-plugin-statusbar 2.4.3 "StatusBar" cordova-plugin-whitelist 1.3.4 "Whitelist"
I have used cordova-plugin-androidx and cordova-plugin-androidx-adapter along with the cordova-plugin-firebasex
Fixed by #121 which will be released shortly in v6.0.8
@dpa99c wondering when shortly will be? I am desperately waiting for some fixes from the master.
shortly is when I get around to it - I'm busy with other stuff
though donations might motivate me to do it faster 馃槢
until then, you can install it directly from master
that's the nature of free open-source software
That's totally fine! Just wanted to know if I could wait for a npm package update or use the master. Thanks!
I'm getting this issue also with version 9.1.1
Wondering is there any solution?
@JunyaoC not quite sure if it is the exact same problem, but I found that removing and reinstallig the plugin works for me. I also wrote a script to automate this task.
You can find it here: https://manuel-heidrich.dev/blog/a-fix-for-firebasecore-firebasecore-h-file-not-found-when-using-cordova-plugin-firebasex
Hope this helps you as well!
Well I tried reinstalling the plugins too, even tried removing the iOS platform. The get around for me is to build using the cordova and then using the xcode workspace to distribute the app. The building process is pretty slow this way....
Most helpful comment
Fixed by #121 which will be released shortly in v6.0.8