Facebook-ios-sdk: Distributed FacebookSDK includes references to absolute paths on Facebook developer's machine

Created on 27 Jan 2020  路  12Comments  路  Source: facebook/facebook-ios-sdk

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Xcode Version: 11.3.1
  • Swift Version: 5.1 (if issue is Swift related)
  • Installation Platform & Version: Cocoapods 1.8.4
  • FacebookSDK 5.15.0

Goals

What do you want to achieve?

_Integrate the FBSDK without build errors or warnings._

Expected Results

What do you expect to happen?

_Build after integrating the FBSDK without build errors or warnings._

Actual Results

What actually happened? Can you provide a stack trace?

_Found the following warnings when building to a device:_

warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/Foundation-1QUL043V10AT7.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/Foundation-1QUL043V10AT7.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/UIKit-HWV4L6XRVBUZ.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/UIKit-HWV4L6XRVBUZ.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/FBSDKCoreKit-28B9JFVI8GLTI.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/FBSDKCoreKit-28B9JFVI8GLTI.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/Darwin-MCQCCTWUE75U.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/Darwin-MCQCCTWUE75U.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/AudioToolbox-3DT0KD50MMF00.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/AudioToolbox-3DT0KD50MMF00.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/QuartzCore-89HL8EAOP4HX.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/QuartzCore-89HL8EAOP4HX.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/CoreGraphics-1NN3OG1WTZTHF.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/CoreGraphics-1NN3OG1WTZTHF.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/ObjectiveC-IRM8WCWFLXB6.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/ObjectiveC-IRM8WCWFLXB6.pcm
warning: /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/CommonCrypto-36H2196YH4W7Q.pcm: No such file or directory
note: while processing /Users/joesusnick/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3OKIDRHISYIQA/CommonCrypto-36H2196YH4W7Q.pcm 

Steps to Reproduce

What are the steps necessary to reproduce this issue?

_Integrate the FBSDK_
_Build to a device_

Code Samples & Details

_None should be required._

Stale

Most helpful comment

Unfortunately, this is still reproducible in v6.0 when installed using Cocoapods

All 12 comments

This is interesting.

Couple questions:
Are you able to share the Podfile?
Are you seeing this output in the developer console of Xcode?

@joesus Here is the relevant section of my Podfile with the target name obscured:

source 'https://cdn.cocoapods.org/'
platform :ios, '10.0'

use_frameworks!
inhibit_all_warnings!

target 'TargetName' do
  #integrate a lot of non-Facebook pods here
  pod 'FacebookSDK'
end

Here is the relevant section of my Podfile.lock:

  - FacebookSDK (5.15.0):
    - FacebookSDK/CoreKit (= 5.15.0)
    - FacebookSDK/MarketingKit (= 5.15.0)
  - FacebookSDK/CoreKit (5.15.0):
    - FBSDKCoreKit (~> 5.0)
  - FacebookSDK/MarketingKit (5.15.0):
    - FacebookSDK/CoreKit
    - FBSDKMarketingKit (~> 5.0)
  - FBSDKCoreKit (5.13.1):
    - FBSDKCoreKit/Basics (= 5.13.1)
    - FBSDKCoreKit/Core (= 5.13.1)
  - FBSDKCoreKit/Basics (5.13.1)
  - FBSDKCoreKit/Core (5.13.1):
    - FBSDKCoreKit/Basics
  - FBSDKMarketingKit (5.14.0):
    - FBSDKCoreKit (~> 5.5)

Finally, the warnings were produced in the build logs during the "Generate dSYM" step.

I was building on the desktop in the Xcode 11.3.1 IDE using the Build option (command-B).

Configuration for my active scheme's Build action is Debug, target device was a physical 64-bit iOS device.

I'm encountering the exact same issue. Were you able to resolve?

This seems to be only reproducible when:

  1. You have FacebookSDK/MarketingKit as a dependency.
  2. You have Debug Information Format set to DWARF + DSYM for your debug configuration, as required by Crashlytics

It turns out the all the FacebookSDKs installed by cocoapods were 5.15. Switched to using Xcode鈥檚 built in Swift Package Manager which installed version 6.0 which solved the issue.

Unfortunately, this is still reproducible in v6.0 when installed using Cocoapods

Same problem as well.

How can I resolve without changing the 'DWARF with dySYM File' to 'DWARF?

Same problem as well.

How can I resolve without changing the 'DWARF with dySYM File' to 'DWARF?

I solved by using Swift Package Manager (SPM) to install the FacebookSDK v6.0. However as @kjen93 mentioned, what may actually have fixed the issue is the fact that cocoapods may have been installing Facebooks MarketingKit (which I wasn鈥檛 actually using) whereas SPM didn鈥檛 - and this the issue may exist in MarketingKit rather than being an issue with v5.15 itself.

I didn't need all functionality, just CoreKit, so I change:

pod 'FacebookSDK'

for

pod 'FBSDKCoreKit'

And every warning disappeared.

@KylinChang After you release the last facebookSDK for CocoaPods https://github.com/facebook/facebook-ios-sdk/issues/1298 , now the warning show up your name path. Could you help to take a look?
image

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings