Facebook SDK generates hundreds of alerts when generating DSYM information

I updated my application with the new Crashlytics / Fabric SDK, as well as the Facebook SDK, and now I get hundreds of warnings when creating debugging information for crash tests. I searched around and changed many build settings, but still got warnings. The debugging information format is set to "DWARF with dSYM", which, it seems to me, requires crashlytcs. I have $ (inherited) set in other Linker flags. The bit code is set to None. Not sure what 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 an example warning:

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 
+5
source share
2 answers

This means that this SDK requires a few more files that are missing. Have you updated the latest version?

In my experience, I also come across this issue before. I added only FBSDK, then it shows such errors in my log. Finally, I found some more frameworks that you need to add a bolt to. You can see in each file header files within, look for it that are present or not, This is one of the solutions that I found ...

+1
source

For errors:

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

The problem occurs if you have upgraded your Xcode 6 project to 7. The short answer is to change the debug information format to "DWARF" on the target server for Debug configuration only.

  • Go to build settings and find the debugging information format
  • Change the Debug option from “DWARF with dSYM file” to “DWARF”
  • Leave the Release parameter in "DWARF with dSYM file"

This is safe because you do not need dSYM files to build Debug

+1
source

Source: https://habr.com/ru/post/1239182/


All Articles