question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Error: file type is Invalid] iOS

See original GitHub issue

My app shows up correctly in the share menu and it opens the app fine, but I’m getting an log {"url": "ShareMedia://dataUrl=ShareKey#text"} (same with #media) and error Error: file type is Invalid for both simulator iphone 11 pro and a real iphone 8. It works great on Android.

I don’t think I missed any steps in the installation-- Did the “ShareKey” in ios/{share extension/ShareViewController.swift needed to be replaced by anything?

I’m using “react-native”: “^0.62.2”, “react-native-receive-sharing-intent”: “^1.0.4”, xcode 11.5. Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vjanncommented, Jun 16, 2020

You were right, my bundle id was wrong in the app groups. Thank you!

0reactions
luigbrencommented, Dec 16, 2021

Am still having this problem , could we get an updated example that works , they are all about 8 months old , or some help to fix this issue on IOS

hello, I spent many hours trying to make it work on iOS and nothing, until I got it to work, I read that it was a problem with the group.name, simply I opened the file “ShareViewController.swift”, search and replace all values that said "group.\(this.hostAppBundleIdentifier)" and I set them manual "group.com.myappidname" and that solved the problem and no longer gives more error [Error: file type is Invalid] iOS

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid file type for photos and videos w… - Apple Community
I'm trying to upload from iPhone to my iMac but sometimes the photos/videos won't transfer because there's an issue with the file type....
Read more >
How to Solve “the File Format Is Invalid” Issue - CBackup
Way 1. Change the File Extension ... Very often, “the file format is invalid” error occurs due to incompatible file extensions. If this...
Read more >
"object file format unrecognized, invalid, or unsuitable" Xcode ...
How can I fix this error? I am desperate, all my certificates and profiles are valid, the app itself has no bugs at...
Read more >
[iOS-12.x] Error uploading audio or video (invalid file type)
Description: I am using an iPhone (iOS-12.5). And I am trying to record a short video and/or an audio to send to any...
Read more >
Unable to upload a picture from my iPhone due to an invalid ...
Hello,. I tried my form. from my iPhone and i'm not able to upload picture. It says the format is no available (.jpeg...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found