200+ warnings generating dSYM in xcode 7
jontlancaster
Posted on
Sep 29 2015
When compiling our app in xcode 7, using raygun4ios 2.1.1 cocoapod we get 200+ compiler warnings when generating the dSYM file for the app. They're all variations of the following:
while processing /<projectPath>/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(protobuf-c.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/PCU6HXEUU2LP/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /<projectPath>/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(protobuf-c.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/PCU6HXEUU2LP/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
while processing /<projectPath>/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: Could not resolve external type c:objc(cs)NSString
while processing /<projectPath>/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(RaygunErrorFormatter.o):
warning: Could not resolve external type c:objc(cs)NSObject
Not sure whether this is because I've got our project set up wrongly. Stack overflow and the apple forums suggest that maybe there's some issue with how external libraries have been compiled, but I'd sooner assume that it's something i've gotten wrong than blame others!
Is anyone able to suggest how to fix this?
Jason Fauchelle
Raygun
Posted on
Sep 29 2015
Thanks for reporting this.
I'll look into it and get back to you with what I find.
-Jason Fauchelle
cryptojuice
Posted on
Oct 07 2015
+1, I'm experiencing the same issue as jontlancaster.
nhart12
Posted on
Oct 07 2015
+1 here. Hard to see real warnings with all of these listed.
Jason Fauchelle
Raygun
Posted on
Oct 07 2015
I've looked into this today but haven't got a solution yet. I'll continue looking into this and get back to you when the issue is resolved.
-Jason Fauchelle
Jason Fauchelle
Raygun
Posted on
Oct 08 2015
Hello,
I looked into this more today but have not been able to reproduce these warnings. I have however pushed a new version of Raygun4iOS (v2.1.2) which does fix the version-mismatch warnings that some of you may be having and so could help to reduce the flood of warnings. Regardless, I recommend updating to this version.
To help me reproduce these warnings, please let me know: what version of XCode are you using? Does your app use Swift or Obj-C? Do you have bitcode enabled? does your project have a pch file? If possible, please send us a repro project.
-Jason Fauchelle
nhart12
Posted on
Oct 10 2015
I created a test project that reproduces these warnings. It is a swift project in the latest version of xcode. Raygun is added via CocoaPods. I cannot attach the project since it exceeds the attachment length. It is just a blank project with Raygun installed. To get the warnings to appear you just need to build with the release configuration so you might need to edit the scheme or Archive.
Jason Fauchelle
Raygun
Posted on
Oct 12 2015
Thanks nhart12,
I am able to reproduce the warnings now. I'll work on releasing a new version with this fixed within the next 2 weeks.
-Jason Fauchelle
Jason Fauchelle
Raygun
Posted on
Oct 27 2015
Hello,
Are any of you still seeing this issue? These warnings have stopped occurring for me in my repro project - Swift project with Raygun4iOS installed via CocoaPods and the schema set to release. Try updating to the latest XCode, then uninstall and install Raygun4iOS again and let me know if the problem persists.
-Jason Fauchelle
nhart12
Posted on
Oct 28 2015
Yes I have duplicated this in the latest version of Xcode when Archiving an IPA
jontlancaster
Posted on
Oct 28 2015
Still happening for us, too. Xcode 7.1 cocoapods 0.39.0
davidshakelaw
Posted on
Oct 28 2015
Still happening here too. Using Cocoapods 0.38.2 with Raygun for iOS v 2.1.2 during a release build or archive build. Here is a portion of the error message we're getting while the GenerateDSYMFile is running on XCode:
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(protobuf-c.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/3IH39CV0THXGL/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(protobuf-c.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/3IH39CV0THXGL/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(crash_report.pb-c.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/3IH39CV0THXGL/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(crash_report.pb-c.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/3IH39CV0THXGL/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/ObjectiveC-2CD0WTQVXITO7.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: Could not resolve external type c:objc(cs)NSObject
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: Could not resolve external type c:objc(cs)NSString
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashReportExceptionInfo.o):
warning: Could not resolve external type c:objc(cs)NSArray
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/1YU2CB3PE5OY0/ObjectiveC-2CD0WTQVXITO7.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: Could not resolve external type c:objc(cs)NSObject
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: Could not resolve external type c:objc(cs)NSString
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashHostInfo.o):
warning: Could not resolve external type c:objc(cs)NSScanner
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashAsyncMachExceptionInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/3IH39CV0THXGL/Darwin-MI6WZSG1PNOM.pcm: No such file or directory
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashAsyncMachExceptionInfo.o):
warning: /var/folders/04/18dv6_xd73s8wqbcss674qtr0000gn/C/org.llvm.clang.quantumnightmare/ModuleCache/3IH39CV0THXGL/Darwin-MI6WZSG1PNOM.pcm: No object file for requested architecture
while processing /Users/dave/src/shake.ios/Pods/Raygun4iOS/Raygun4iOS.framework/Raygun4iOS(PLCrashAsyncMachExceptionInfo.o):
warning: Could not resolve external type c:@S@__siginfo
Jason Fauchelle
Raygun
Posted on
Oct 28 2015
Thanks,
Despite starting from scratch, I still haven't been able to reproduce this again. I have however followed the leads I have regarding solving this issue, and have released version 2.1.3 with a possible fix to this issue. Please try it out and let me know if the problem persists.
-Jason Fauchelle
jontlancaster
Posted on
Oct 29 2015
seems to have done the trick!
nhart12
Posted on
Oct 29 2015
Can confirm. I was able to successfully build an ipa with dSym using this version. Thanks for the quick resolution!
Jason Fauchelle
Raygun
Posted on
Oct 29 2015
No worries, great to hear this is working for you now!
-Jason Fauchelle
yotam
Posted on
Jan 13 2016
Hi Jason,
I'm seeing the same problem and I can't seem to make it go away. Do you mind sharing how you solved it?
I tried setting 'Precompile Prefix Header' to 'NO' which solved the problem on my machine, but not on others.
Many thanks, Yotam
Jason Fauchelle
Raygun
Posted on
Jan 13 2016
Hi Yotam,
From what I remember, this was solved by setting DEPLOYMENTPOSTPROCESSING = YES, GCCGENERATEDEBUGGINGSYMBOLS = NO and KEEPPRIVATEEXTERNS = YES. Note that these are what they are called inside pbxproj buildSettings, can't remember their names in XCode, but should be similar. These setting disable all debug symbols for the framework, which for us is not a problem. We did not disable precompiling the prefix header - I did see that as a possible solution, but didn't work for us.
Hope that helps!
-Jason Fauchelle
yotam
Posted on
Jan 21 2016
I only had to set DEPLOYMENTPOSTPROCESSING = YES, thanks a lot!