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:
- Deleted derived data
- Deleted podfile.lock, pod deintegrate
- 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?
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'
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