google/promises

iOS build issue with 2.4.0

Opened this issue ยท 5 comments

Xcode 15.0.1
Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.1.0
pod version = 1.15.2

Facing the below error only with 2.4.0, works fine with 2.2.0.

Build input file cannot be found: '/Users/{name}/Library/Developer/Xcode/DerivedData/{projectname}-brbmyykxxcfpfdckweowrqgiwaod/Build/Products/BetaDebug-iphonesimulator/PromisesObjC/FBLPromises_Privacy.bundle/FBLPromises_Privacy'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Any idea how to fix this?
Have tried the following:

  1. Deleted derived data
  2. Deleted podfile.lock, pod deintegrate
  3. pod install, pod update

Not sure, but this might be related to this change from Apple (https://developer.apple.com/support/third-party-SDK-requirements/)

Thanks in advance

Experiencing the same issue for us as well. We use the Firebase SDK which relies on PromisesObjC under the hood. Most recent 2.4.0 version with the privacy manifest changes seems to not be backwards compatible?

We're seeing this issue in firebase and I've reported it in KMP as well with detailed reproduction steps KT-66278.

so as a workaround, adding this in the podfile fixes it for now
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = '$(inherited)'
OR
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'