iOS Question Strange debug compilation error with hosted builder

MitchBu

Well-Known Member
Licensed User
Longtime User
I don't see what I am doing wrong, but this morning, I cannot run or compile my project. See attached the content of the red window.

It ends with

B4X:
Error: ** BUILD FAILED **


The following build commands failed:
    CompileC /Users/erel/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/b4i_main.o /Users/erel/Documents/UploadedProjects/<user id>/B4iProject/b4i_main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I tried to compile the release app with the same result.

Will appreciate any help. TIA
 

Attachments

  • build_failed.txt
    115.4 KB · Views: 53

MitchBu

Well-Known Member
Licensed User
Longtime User
Where does this line come from: NSlogg(@"Failed to send reports: %@", error); ?

Inline OBJC code?

It is in CreateReporter. See below. I tried to comment that sub, but no joy.


B4X:
Sub CreateReporter
    log("-- Create reporter")
    reporter = reporter.Initialize("KSCrashInstallationEmail").RunMethod("sharedInstance", Null)
    Dim recipients As List = Array("bugreport@checkwriterplus.com") '<-------------------------------------------  change!!!!!!!!!!!!!
    reporter.SetField("recipients", recipients)
    reporter.SetField("reportStyle", 1) 'KSCrashEmailReportStyleApple
    reporter.SetField("subject", "Crash Report")
    reporter.SetField("message", "This Is a crash report")
    reporter.SetField("filenameFmt", "crash-report-%d.txt.gz")
    reporter.RunMethod("install", Null)
End Sub

#if OBJC
#import <KSCrash/KSCrashFramework.h>

- (void) sendReports:(KSCrashInstallation*)installation {
[installation sendAllReportsWithCompletion:^(NSArray* reports, BOOL completed, NSError* error)
     {
         if(completed)
         {
             NSlogg(@"Sent %d reports", (int)[reports count]);
         }
         else
         {
             NSlogg(@"Failed to send reports: %@", error);
         }
     }];
}
#End If
 
Upvote 0
Top