Skip to content

StorageReference::PutFile and GetFile don't work on iOS #65

@mark-grimes

Description

@mark-grimes

Please fill in the following fields:

Pre-built SDK from the website or open-source from this repo: Website
Firebase C++ SDK version: 6.15.0
Firebase plugins in use (Auth, Database, etc.): Storage, Auth, Firestore
Additional SDKs you are using (Facebook, AdMob, etc.): N/A
Platform you are using the C++ SDK on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): iOS and desktop

Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Try and upload a file using fileRef.PutFile( localPath ).OnCompletion( .... ) results in "No object exists at the desired reference" on iOS, works on Mac desktop. There's also a log warning of "CFURLResourceIsReachable failed because it was passed an URL which has no scheme" directly before hand. The local filename is absolute and readable. PutBytes works fine.

It's not a permission error on either the local file or firebase storage location since it works fine if I load the file myself into a buffer and use PutBytes.

GetFile doesn't work either, I have to load into a buffer with GetBytes and save out myself. This isn't ideal because I first need to find out the required buffer size with GetMetadata, resulting in a two step process.

Please answer the following, if applicable:

Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?

No. GetFile and PutFile are not used in the quickstart, only GetBytes/PutBytes which work fine.

What's the issue repro rate? (eg 100%, 1/5 etc)

100%.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions