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

Distributed FacebookSDK includes references to absolute paths on Facebook developer's machine #1203

Closed
5 tasks done
jbelkins opened this issue Jan 27, 2020 · 16 comments
Closed
5 tasks done
Labels

Comments

@jbelkins
Copy link

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.

@joesus
Copy link
Contributor

joesus commented Jan 27, 2020

This is interesting.

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

@jbelkins
Copy link
Author

@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.

@gavinbiesheuvel
Copy link

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

@kjen93
Copy link

kjen93 commented Feb 11, 2020

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

@gavinbiesheuvel
Copy link

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

@kjen93
Copy link

kjen93 commented Feb 13, 2020

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

@MJDMike
Copy link

MJDMike commented Feb 13, 2020

Same problem as well.

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

@gavinbiesheuvel
Copy link

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’t actually using) whereas SPM didn’t - and this the issue may exist in MarketingKit rather than being an issue with v5.15 itself.

@alvaroblazmon
Copy link

alvaroblazmon commented Mar 26, 2020

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

pod 'FacebookSDK'

for

pod 'FBSDKCoreKit'

And every warning disappeared.

@bestwnh
Copy link

bestwnh commented Mar 30, 2020

@KylinChang After you release the last facebookSDK for CocoaPods #1298 , now the warning show up your name path. Could you help to take a look?
image

@stale
Copy link

stale bot commented Jun 28, 2020

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.

@stale stale bot added the Stale label Jun 28, 2020
@stale
Copy link

stale bot commented Jul 5, 2020

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.

@stale stale bot closed this as completed Jul 5, 2020
@sasmyk
Copy link

sasmyk commented Jul 19, 2021

I found it here Pods/FBSDKMarketingKit/FBSDKMarketingKit.framework/FBSDKMarketingKit
It's binary file
I replaced "pod 'FacebookSDK'" with "pod 'FBSDKCoreKit'"
Removed FBSDKMarketingKit from the project file.
Reinstalled Pods and this problem gone.

@dflems
Copy link

dflems commented Aug 30, 2021

I'm still seeing this with manual non-cocoapods integration of the prebuilt frameworks:

warning: /var/folders/bq/mjrgbpkx5h1g_b22fpv0tlzc0000gn/C/org.llvm.clang.distiller/ModuleCache/L7WOQBBXRBP7/FBSDKCoreKit-221ALPJ6B2MUH.pcm: No such file or directory
note: while processing /var/folders/bq/mjrgbpkx5h1g_b22fpv0tlzc0000gn/C/org.llvm.clang.distiller/ModuleCache/L7WOQBBXRBP7/FBSDKCoreKit-221ALPJ6B2MUH.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.

@joesus You can get rid of this by setting CLANG_ENABLE_MODULE_DEBUGGING=NO for the release binary builds ("Enable Clang Module Debugging" build setting)

@AlexeyYarmolovich
Copy link

I have same issue using SPM (I import only FacebookCore target), sdk version 14.1.0

@dougboberg
Copy link

image 2024 checking in. SPM

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

No branches or pull requests