Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook SDK produces hundreds of warnings while generating DSYM information

I updated my app with the new Crashlytics/Fabric SDK and also Facebook SDK and now i am getting hundreds of warnings while generating debug information for crashlytics. I searched around and changed many build settings but still getting warnings. The debug information format is set to "DWARF with dSYM" that i think is required by crashlytcs. I have $(inherited) set in Other Linker Flags. Bit code is set to No. Not sure which other settings I should change to get rid of the warnings and be able to generate the proper dSYM file. I am using Xcode 7.2 and building for iOS 9.2.

Here is a warning sample:

while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: /var/folders/h9/zf2xtlkd12z1_ygkj8hplkhh17xrbq/C/org.llvm.clang.dzhuowen/ModuleCache/1VMMO06OSVUBF/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: /var/folders/h9/zf2xtlkd12z1_ygkj8hplkhh17xrbq/C/org.llvm.clang.dzhuowen/ModuleCache/1VMMO06OSVUBF/Foundation-3DFYNEBRQSXST.pcm: No object file for requested architecture
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: /var/folders/h9/zf2xtlkd12z1_ygkj8hplkhh17xrbq/C/org.llvm.clang.dzhuowen/ModuleCache/1VMMO06OSVUBF/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: /var/folders/h9/zf2xtlkd12z1_ygkj8hplkhh17xrbq/C/org.llvm.clang.dzhuowen/ModuleCache/1VMMO06OSVUBF/UIKit-1V5UHAPTOD24G.pcm: No object file for requested architecture
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: /var/folders/h9/zf2xtlkd12z1_ygkj8hplkhh17xrbq/C/org.llvm.clang.dzhuowen/ModuleCache/1VMMO06OSVUBF/Darwin-38I6DLZ5IH61J.pcm: No such file or directory 
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: Could not resolve external type c:objc(cs)NSCache
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: Could not resolve external type c:objc(cs)NSMapTable
while processing /Users/Yan/Documents/FacebookSDK/FBAudienceNetwork.framework/FBAudienceNetwork(FBCache.o):
warning: Could not resolve external type c:objc(cs)NSObject
like image 201
Yan Avatar asked Oct 19 '22 19:10

Yan


2 Answers

This mean this SDK need some more files which are missing. Did you update the latest one?

By my experience I too face this issue before. I was add FBSDK alone then it shows this kind of bugs in my log., finally I found some more framework which is bolt need to add.. You can see in every files of header files in framework, search it which are present or not. This is one of the solution I found...

like image 121
S. Karthik Avatar answered Oct 31 '22 01:10

S. Karthik


For the errors:

warning: Could not resolve external type c:objc(cs)NSObject

The problem happens when you have a Xcode 6 project updated to 7. The short answer is to change the Debug Information Format to "DWARF", on the target, for the Debug configuration only.

  • Go to Build Settings and search for Debug Information Format
  • Change the Debug setting from "DWARF with dSYM File" to "DWARF"
  • Leave the Release setting at "DWARF with dSYM File"

This is safe because you don't need dSYM files for Debug builds

like image 32
lucianoenrico Avatar answered Oct 31 '22 00:10

lucianoenrico