google / promises

Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
Apache License 2.0
3.8k stars 295 forks source link

iOS build issue with 2.4.0 #229

Open nobin97 opened 7 months ago

nobin97 commented 7 months ago

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

dtumer commented 7 months ago

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?

MinceMan commented 7 months ago

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

MinceMan commented 7 months ago

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

nobin97 commented 7 months ago

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'

MinceMan commented 7 months ago

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