What platform are you building for?
iOS
What framework are you building with?
Cordova
What is your build ID?
99f44681-76f3-48fb-896d-67fa4d9ae79e
What is your error message?
The following build commands failed:
PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/vagrant/Library/Developer/Xcode/DerivedData/MonsterCargo-hdvsxbjeekuzcteltfzdeewehmbf/Build/Intermediates.noindex/ArchiveIntermediates/MonsterCargo/IntermediateBuildFilesPath/MonsterCargo.build/Debug-iphoneos/MonsterCargo.build/Script-A814ED43309E79827470D270.sh (in target ‘MonsterCargo’ from project ‘MonsterCargo’)
Archiving workspace MonsterCargo with scheme MonsterCargo
(2 failures)
xcodebuild: Command failed with exit code 65
Please describe the issue:
I’ve been trying a lot of posibilities.
Got it working on android, but I keep getting a lot of confusing errors, some of them telling me that the file GoogleService-Info.plist wasn’t found, some others that the file was already on the target. I tried with , with some after_prepare hooks that the AI suggested with no luck. Can you point me on the right track?
I really appreciate it.
Using an old version of cordova-ios (6.2.0) with the latest version of cordova-plugin-firebasex could be the cause of this. Can you attempt to build using engine 7.1.1?
Got another error now: 11cba830-fb33-4ef7-b6b7-834af1be4772
UserError: [!] CocoaPods could not find compatible versions for pod "FirebaseInAppMessaging":
In Podfile:
FirebaseInAppMessaging (= 12.3.0-beta)
Should I use a version of the plugin?
That did it!
<plugin name="cordova-plugin-firebasex" spec="^18.0.6" />
Thanks!
I got it to build, but now the app crashes, any pointers?
<Error>: 11.8.0 - [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI). Read more: https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app
Can you please share your config.xml?
sure!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<widget
xmlns="http://www.w3.org/ns/widgets"
id="net.monstercargo.app"
version="1.0.6"
android-versionCode="5"
ios-CFBundleVersion="4"
>
<!-- App information -->
<name>MonsterCargo</name>
<description>Client App</description>
<author email="webmaster@pixelmedia.com.pa" href="https://www.pixelmedia.com.pa"></author>
<!-- General -->
<access origin="*"/>
<access origin="content:///*" />
<allow-navigation href="*"/>
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />
<allow-intent href="*" />
<icon src="resources/iconTemplate.png" />
<preference name="permissions" value="none"/>
<preference name="orientation" value="portrait"/>
<!-- iOS -->
<engine name="ios" spec="^7.1.1" />
<platform name="ios">
<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />
<preference name="deployment-target" value="14.0"/>
<preference name="target-device" value="universal"/>
<preference name="prerendered-icon" value="false"/>
<preference name="EnableViewportScale" value="false"/>
<preference name="detect-data-types" value="true"/>
<preference name="exit-on-suspend" value="false"/>
<preference name="AllowInlineMediaPlayback" value="true"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="deployment-target" value="14.0" />
<preference name="pods_use_frameworks" value=":linkage => :static" />
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
</platform>
<!-- Android -->
<platform name="android">
<preference name="android-minSdkVersion" value="31"/>
<preference name="android-targetSdkVersion" value="35"/>
<preference name="android-compileSdkVersion" value="35" />
<preference name="android-installLocation" value="auto"/>
<preference name="AndroidXEnabled" value="true"/>
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashTemplate.png"/>
<preference name="AndroidWindowSplashScreenBackground" value="#FFFFFF" />
<icon src="resources/android/drawable-mdpi/icon_mini_white.png" density="mdpi" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</config-file>
<resource-file src="resources/google-services.json" target="google-services.json" />
</platform>
<hook type="after_prepare" src="resources/addExported.js" />
<plugin name="cordova-plugin-splashscreen" />
<preference name="SplashScreen" value="resources/splashTemplate.png"/>
<preference name="SplashScreenDelay" value="0" />
<preference name="AutoHideSplashScreen" value="true" />
<plugin name="cordova-plugin-statusbar" />
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="StatusBarBackgroundColor" value="#ffffff"/>
<preference name="StatusBarStyle" value="default"/>
<plugin name="cordova-plugin-device" />
<plugin name="cordova-plugin-inappbrowser" />
<plugin name="cordova-plugin-firebasex" spec="^18.0.7"/>
<variable name="ANDROID_FIREBASE_CONFIG_FILEPATH" value="resources/google-services.json" />
<variable name="IOS_FIREBASE_CONFIG_FILEPATH" value="resources/GoogleService-Info.plist" />
</widget>
@artlogic
Did you got a chance to take a look to my config file? I’d really appreciate it.