Build fails when updating FirebaseUI-iOS CocoaPod to 4.1.x


#1

FirebaseUI-iOS 4.0.0 works with the following in our Podfile

pod 'FirebaseUI/Auth', '4.0.0'
pod 'FirebaseUI/Google', '4.0.0'

When we update to 4.1.0 or 4.1.1 we get this (shortened) error

PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /.../Debug-iphonesimulator/mobile.build/Script-12345.sh
    cd /Users/me/Projects/myapp/mobile/platforms/ios
    /bin/sh -c /.../Debug-iphonesimulator/mobile.build/Script-12345.sh
error: Resource "/.../Build/Products/Debug-iphonesimulator/FirebaseUI/FirebaseAuthUI.bundle" not found. Run 'pod install' to update the copy resources script.

** BUILD FAILED **

The following build commands failed:
	PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /.../Debug-iphonesimulator/mobile.build/Script-12345.sh
(1 failure)
Unable to apply changes on device: XXX. Error is: Command xcodebuild failed with exit code 65.

The script in the above error simply references another script …/platforms/ios/Pods/Target Support Files/Pods-mobile/Pods-mobile-resources.sh. It’s this script that throws the error. The build produces this customized script with the specific resources to be installed. Here is a small extract - the first line is what fails when it invokes the install_resource function.

  install_resource "$PODS_CONFIGURATION_BUILD_DIR/FirebaseUI/FirebaseAuthUI.bundle"
  install_resource "$PODS_CONFIGURATION_BUILD_DIR/FirebaseUI/FirebaseGoogleAuthUI.bundle"
  install_resource "${PODS_ROOT}/GoogleSignIn/Resources/GoogleSignIn.bundle"

The same script that works for FirebaseUI-iOS 4.0.0 looks like this extract

  install_resource "${PODS_ROOT}/FirebaseUI/FirebaseUIFrameworks/FirebaseAuthUI/Frameworks/FirebaseAuthUI.framework/FUIAccountSettingsViewController.nib"
  install_resource "${PODS_ROOT}/FirebaseUI/FirebaseUIFrameworks/FirebaseAuthUI/Frameworks/FirebaseAuthUI.framework/FUIAuthPickerViewController.nib"
  install_resource "${PODS_ROOT}/FirebaseUI/FirebaseUIFrameworks/FirebaseAuthUI/Frameworks/FirebaseAuthUI.framework/ic_email.png"
  install_resource "${PODS_ROOT}/FirebaseUI/FirebaseUIFrameworks/FirebaseAuthUI/Frameworks/FirebaseAuthUI.framework/en.lproj"
  install_resource "${PODS_ROOT}/FirebaseUI/FirebaseUIFrameworks/FirebaseGoogleAuthUI/Frameworks/FirebaseGoogleAuthUI.framework/ic_google.png"
  install_resource "${PODS_ROOT}/FirebaseUI/FirebaseUIFrameworks/FirebaseGoogleAuthUI/Frameworks/FirebaseGoogleAuthUI.framework/en.lproj"
  install_resource "${PODS_ROOT}/GoogleSignIn/Resources/GoogleSignIn.bundle"

It doesn’t feel like it’s a problem with FirebaseUI-iOS. Version 4.1.1 was published June 19 and doesn’t seem to have any related errors reported.

What tool is responsible for producing the customized script (and should get the bug report)?

  • NativeScript CLI 3.1.3
  • CocoaPods 1.3.1
  • Xcode 8.3.3
  • ?

Thanks