iOS Question Download PDF file [solved]

ThePuiu

Active Member
Licensed User
Longtime User
Something strange is happening after installing XCode 11 ...

I have added to the existing project that compiles without problems the iPhone library and the code below

B4X:
Dim j As HttpJob
        j.Initialize("pdf", Me)
    
        j.Download2(Main.Server & "/mobile/DownLoadFile", Array As String("aidi", "4bd78c75-126b-466b-bb0c-490c31a1d996", "aidiUser", Main.aidiUser))

        Wait For (j) JobDone(j As HttpJob)
        If j.Success Then
            Dim out As OutputStream = File.OpenOutput(File.DirDocuments, "extras.pdf", False)
            File.Copy2(j.GetInputStream, out)
            out.Close
            di.Initialize("di", File.DirDocuments, "extras.pdf")
            di.PreviewFile(pg)
            'Log("Size: " & File.Size(File.DirDocuments,"extras.pdf"))
        Else
            Msgbox(j.ErrorMessage, "Error")
        End If
        j.Release
        
    End If

After this I can no longer compile and receive the errors from the attached file. I restarted the Mac, the phone and the PC, I modified User_id, I deleted the contents of the UploadedProjects folder on the Mac but the result it's the same. I specify that the iPhone.h file exists in the Libs folder on the Mac.
 

Attachments

  • error.txt
    50.4 KB · Views: 173
Upvote 0
Top