Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: `UIActivityViewConroller.completionHandler` has been [deprecated](https://developer.apple.com/reference/uikit/uiactivityviewcontroller/1622010-completionhandler) since iOS 8, when it was replaced by `completionWithItemsHandler`. Tested the build using `UIExplorer` and XCode 8.2 but I've never seen and can't work out how to activate the `UIActivityViewController` this method relates to, so I haven't tested a real run. Closes #11798 Differential Revision: D4396618 fbshipit-source-id: 92a993c434637ede2d5779f4154feb00d2c78d06
- Loading branch information
453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this change was made, I always get an error running
react-native run-ios
, and always have to revert back this on my node_modules. Please fix.453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same story. Fails to compile because of this.
453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What version of Xcode are you using? Perhaps it is old?
453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually figured out you cannot run the latest stable react-native version if you are not running on OS Sierra, (for you to have the latest version of Xcode)
453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, React Native usually supports and sometimes requires the latest version of macOS and Xcode, so update frequently.
453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a breaking change for me too. I use Xode 7.3 and iOS 9.0:
and
453e70d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this changed in RN 0.42 -- I added a mention of this breaking change to the release notes. I think the release maintainers didn't encounter this issue because they (and the test suites) are using the latest version of Xcode. https://github.com/facebook/react-native/releases/tag/v0.42.3
Generally speaking, the latest major version of Xcode (e.g. the 8.x releases) is the only supported version. Sometimes when a new version of Xcode has just come out, the older version is supported for awhile but you should upgrade in a timely manner.