Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS build issue with 2.4.0 #229

Open
nobin97 opened this issue Mar 1, 2024 · 5 comments
Open

iOS build issue with 2.4.0 #229

nobin97 opened this issue Mar 1, 2024 · 5 comments

Comments

@nobin97
Copy link

nobin97 commented Mar 1, 2024

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
Copy link

dtumer commented Mar 5, 2024

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
Copy link

MinceMan commented Mar 5, 2024

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

@MinceMan
Copy link

MinceMan commented Mar 5, 2024

Dup google/GoogleUtilities#146

@nobin97
Copy link
Author

nobin97 commented Mar 6, 2024

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
Copy link

MinceMan commented Mar 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants