[Firebase Mobile] Error while generating iOS build | MABS 6.0 | Firebase Mobile 1.0.7

Forge Component
(19)
Published on 6 Jan by David Sousa
19 votes
Published on 6 Jan by David Sousa

Hi,

I have installed Firebase Mobile 1.0.7 to use with MABS 6.0 [Platform Version 11.7.2].

For Android the build is successful by for iOS it is showing error while the build generates.

Error on Service Center :


iOS
Error: Error compiling Cordova plugin: /Users/mabs02/NativeBuilder/builds/7ae1d8e6-e184-440d-a194-ede0802d2db2/source/platforms/ios/TIGER/Plugins/cordova-plugin-firebase/FirebasePlugin.m.


iOSError: Error compiling Cordova plugin: /Users/mabs04/NativeBuilder/builds/18d1a93c-5d6e-4a06-9774-98e62f94b00c/source/platforms/ios/TIGER/Plugins/cordova-plugin-firebase/FirebasePlugin.m.


Note: The configuration zip is already created according to the configuration guide. I was using the old version of this plugin in-app & it was working well. Because of the update, I upgrade the plugin to 1.0.7
Also, I am not using any other plugin, with what this Plugin is Incompatible, as per description.


Any help much appreciated.

assif

Hi,

I've successfully generated an iOS build with the 1.0.7 version and MABS 6.0. However I'm using my personal environment with version 11.0.606.0.

Can you try to generate the Firebase Mobile Sample app?

From the error detail you shared I can't help you much more.


Best regards,

David


Thanks David,

Let me try to install the sample,

Also I will try to remove configuration-zip n then again add n publish, I see one thread where you discuss same use-case.

I am facing the same issue, was using the previous version and now it has a build error.


https://github.com/TruewindIT/cordova-plugin-firebase#1.9

[2020-01-23T05:02:37.369Z] [INFO] Plugin Action: add

[2020-01-23T05:03:24.506Z] [INFO] Getting signing keys...

[2020-01-23T05:03:24.534Z] [INFO] Building application package...

[2020-01-23T05:04:46.366Z] [ERROR]


** ARCHIVE FAILED **



The following build commands failed:

/tmp/build/source/platforms/ios/AppName/Plugins/cordova-plugin-firebase/FirebasePlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

Error: xcodebuild: Command failed with exit code 65


[2020-01-23T05:04:46.367Z] [ERROR] Build failed with the following error: Error compiling Cordova plugin: App/IntermediateBuildFilesPath/AppName.

[2020-01-23T05:04:46.367Z] [INFO] Zipping application source...

[2020-01-23T05:05:19.811Z] [INFO] Application was not successfully generated!

[2020-01-23T05:05:19.812Z] [INFO] Execution time: 255173ms

Edward Teo wrote:

I am facing the same issue, was using the previous version and now it has a build error.


https://github.com/TruewindIT/cordova-plugin-firebase#1.9

[2020-01-23T05:02:37.369Z] [INFO] Plugin Action: add

[2020-01-23T05:03:24.506Z] [INFO] Getting signing keys...

[2020-01-23T05:03:24.534Z] [INFO] Building application package...

[2020-01-23T05:04:46.366Z] [ERROR]


** ARCHIVE FAILED **



The following build commands failed:

/tmp/build/source/platforms/ios/AppName/Plugins/cordova-plugin-firebase/FirebasePlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

Error: xcodebuild: Command failed with exit code 65


[2020-01-23T05:04:46.367Z] [ERROR] Build failed with the following error: Error compiling Cordova plugin: App/IntermediateBuildFilesPath/AppName.

[2020-01-23T05:04:46.367Z] [INFO] Zipping application source...

[2020-01-23T05:05:19.811Z] [INFO] Application was not successfully generated!

[2020-01-23T05:05:19.812Z] [INFO] Execution time: 255173ms

What is your MABS & Platform Server & Plugin Version ?
Btw I tried multiple times but no luck & hence roll-back to the MABS-5.2, with Firebase Plugin 1.0.6.


I am using mabs 6 with 1.0.7


assif_tiger wrote:

What is your MABS & Platform Server & Plugin Version ?

Btw I tried multiple times but no luck & hence roll-back to the MABS-5.2, with Firebase Plugin 1.0.6.




this is also happened to me. so i have to use the MABS on 5.2 version to generate the native platforms.

Hi all,

I was able to reproduce this on another environment running version 11.0.614.0.

I've made a change to the plugin's code that fixes the issue. Afterwards I was able to build an iOS app using MABS 6.0 and plugin 1.0.7 in the environment where the issue was happening.

Can you please try to build your iOS apps again using the versions mentioned above?

Best regards,

David

Thanks David,

Sure will try to replicate same on personal environment.

I've moved to 1.0.7 and MABS 6.0.  Notifications are coming in fine on android but not on IOS.  I can see the app registering for the IOS build on firebase but notifications are not arriving for app open or app closed.  It's possible that the APN key is incorrectly configured but wanted to check if anyone else is experiencing similar issue?  

Thanks David, I am able to build with MABS 6 now.