promises icon indicating copy to clipboard operation
promises copied to clipboard

iOS build issue with 2.4.0

Open nobin97 opened this issue 11 months ago • 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

nobin97 avatar Mar 01 '24 14:03 nobin97

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?

dtumer avatar Mar 05 '24 17:03 dtumer

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

MinceMan avatar Mar 05 '24 21:03 MinceMan

Dup https://github.com/google/GoogleUtilities/issues/146

MinceMan avatar Mar 05 '24 21:03 MinceMan

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'

nobin97 avatar Mar 06 '24 09:03 nobin97

I've tried adding that to my Sample broken KMP project and it didn't work 😞. https://youtrack.jetbrains.com/issue/KT-66278/KMP-Cocoapods-dependencies-not-found-with-unexpected-SPM-interaction#focus=Comments-27-9396955.0-0

MinceMan avatar Mar 06 '24 22:03 MinceMan