facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

Missing local directory .pcm files from joesusnick on latest FacebookSDK

Open jakesquareone opened this issue 3 years ago • 11 comments

Checklist before submitting a bug report

Xcode version

13.4.1

Facebook iOS SDK version

14.1.0

Dependency Manager

SPM

SDK Framework

Core

Goals

Not to have warnings in my local build and CI

Expected results

No warnings when I compile my project with the FacebookSDK

Actual results

/Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/FBSDKCoreKit-3D3JA1F3KLL0X.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/Foundation-1WNHHKZMYIHTY.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/FBSDKCoreKit_Basics-91J2MY4HXLCF.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/UIKit-WCPHL3VVNKME.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/SwiftShims-FFJMKQ44QOWK.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/FBAEMKit-2SLX2GSKWBGNP.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/FBSDKCoreKit_Basics-1N7EQ6S6YGZTK.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/CommonCrypto-2K3I0ABSS54XF.pcm: No such file or directory /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/35QDORLDX1QGG/ObjectiveC-2J1HDE7VRLV6I.pcm: No such file or directory

Steps to reproduce

No response

Code samples & details

No response

jakesquareone avatar Jul 21 '22 00:07 jakesquareone

@joesus these warnings started showing after I updated my SPM libraries, and it pulled the latest FacebookSDK

jakesquareone avatar Jul 21 '22 00:07 jakesquareone

I have same issue

lionhylra avatar Aug 03 '22 06:08 lionhylra

I didn't see the warning in Xcode 13.4, but Xcode 14 beta start showing this.

lionhylra avatar Aug 03 '22 07:08 lionhylra

+1, Xcode: 13.4.1

dantish avatar Aug 04 '22 10:08 dantish

@joesus any update on this? Really would like all these warnings gone from my project...

jakesquareone avatar Aug 18 '22 03:08 jakesquareone

+1

Jonas-Storytel avatar Aug 23 '22 08:08 Jonas-Storytel

Same here... Again :)

zeusent avatar Aug 31 '22 17:08 zeusent

+1

thomasdelgado avatar Sep 05 '22 20:09 thomasdelgado

+1

AlexNsbmr avatar Sep 08 '22 08:09 AlexNsbmr

@joesus

jakesquareone avatar Sep 08 '22 23:09 jakesquareone

Fixed and will be in the next release. Digging into this we found additional hardcoded paths in the binary related to debug symbols. For anyone interested, fixing this involved a couple build flags.

Under OTHER_CFLAGS: -ffile-prefix-map=/PathToSourceCode=

Under OTHER_SWIFT_FLAGS: -debug-prefix-map /PathToSourceCode= -Xfrontend -no-clang-module-breadcrumbs

Now when you run dwarfdump binary | grep /Users it will not find any paths.

Thank you for the feedback! 😃

joesus avatar Sep 20 '22 16:09 joesus

Thanks @joesus! When can we expect the next release?

jakesquareone avatar Sep 26 '22 22:09 jakesquareone

We made some updates in the v15.0.0 release that we're hoping will fix this issue. Can anyone currently experiencing this please try that version to see if is solved for them?

samodom avatar Oct 17 '22 20:10 samodom

Yes all good for me, thanks team.

jakesquareone avatar Oct 17 '22 20:10 jakesquareone